public class EJBReplicableBase extends EntityBase implements IPropertiesContainer
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; } }
Constructor and Description |
---|
EJBReplicableBase() |
Modifier and Type | Method and Description |
---|---|
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.
|
ejbActivate, ejbLoad, ejbPassivate, ejbRemove, ejbStore, getEntityContext, setEntityContext, unsetEntityContext
getCallerPrincipal, getConnection, getConnection, getContext, getPortableContext, getProperty, isCallerInRole, isTrue, setDefaultDataSource, setEJBContext
public java.util.Map executeGets(java.lang.String propertiesToReplicate)
IPropertiesContainer
executeGets
in interface IPropertiesContainer
propertiesToReplicate
- Names of properties to obtain separated by
a colon (:). The properties have to exists in the object.public void executeSets(java.util.Map propertiesToUpdate) throws ValidationException
IPropertiesContainer
executeSets
in interface IPropertiesContainer
propertiesToUpdate
- Map with String propertyName:Object value. Null is like a empty map.ValidationException
- Some problem validating the data