org.openxava.ejbx
Class EJBReplicableBase
java.lang.Object
org.openxava.ejbx.EJBBase
org.openxava.ejbx.EntityBase
org.openxava.ejbx.EJBReplicableBase
- All Implemented Interfaces:
- java.io.Serializable, IPropertiesContainer
public class EJBReplicableBase
- extends EntityBase
- implements IPropertiesContainer
Implementation base class for a EntityBean that can be replicated.
A example of a EntityBean replicable:
public class PersonBean extends EJBReplicableBase {
public String name;
public int age;
public PersonaPK ejbCreate(Map properties) {
executeSets(properties);
return null;
}
public void ejbPostCreate(Map properties) {
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
- Author:
- Javier Paniza
- See Also:
- Serialized Form
|
Method Summary |
java.util.Map |
executeGets(java.lang.String propertiesToReplicate)
Obtain the values of properties in a Map. |
void |
executeSets(java.util.Map propertiesToUpdate)
Update the properties from a map. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EJBReplicableBase
public EJBReplicableBase()
executeGets
public java.util.Map executeGets(java.lang.String propertiesToReplicate)
- Description copied from interface:
IPropertiesContainer
- Obtain the values of properties in a Map.
- Specified by:
executeGets in interface IPropertiesContainer
- Parameters:
propertiesToReplicate - Names of properties to obtain separated by
a colon (:). The properties have to exists in the object.
- Returns:
- Map withString propertyName:Object value. Not null
executeSets
public void executeSets(java.util.Map propertiesToUpdate)
throws ValidationException
- Description copied from interface:
IPropertiesContainer
- Update the properties from a map.
- Specified by:
executeSets in interface IPropertiesContainer
- Parameters:
propertiesToUpdate - Map with String propertyName:Object value. Null is like a empty map.
- Throws:
ValidationException - Some problem validating the data