public class GenericCreator extends java.lang.Object implements SendableEntityCreator
NEW, REMOVE, REMOVE_YOU, SIMPLE, UPDATE| Constructor and Description |
|---|
GenericCreator() |
GenericCreator(java.lang.Object item) |
| Modifier and Type | Method and Description |
|---|---|
static GenericCreator |
create(IdMap map,
java.lang.Class<?> instance) |
static GenericCreator |
create(IdMap map,
java.lang.String className) |
protected java.lang.Class<?> |
getClassForName(java.lang.String className) |
java.lang.String[] |
getProperties()
Gets the properties.
|
java.lang.Object |
getSendableInstance(boolean prototype)
Gets the sendable instance.
|
java.lang.Object |
getValue(java.lang.Object entity,
java.lang.String attribute)
Gets the value.
|
boolean |
setValue(java.lang.Object entity,
java.lang.String attribute,
java.lang.Object value,
java.lang.String type)
Sets the value.
|
GenericCreator |
withClass(java.lang.Class<?> clazz) |
GenericCreator |
withClass(java.lang.String value) |
GenericCreator |
withItem(java.lang.Object value) |
public GenericCreator()
public GenericCreator(java.lang.Object item)
public GenericCreator withClass(java.lang.String value)
public GenericCreator withClass(java.lang.Class<?> clazz)
public GenericCreator withItem(java.lang.Object value)
public java.lang.String[] getProperties()
SendableEntityCreatorgetProperties in interface SendableEntityCreatorpublic java.lang.Object getSendableInstance(boolean prototype)
SendableEntityCreatorgetSendableInstance in interface SendableEntityCreatorprototype - the prototyppublic java.lang.Object getValue(java.lang.Object entity,
java.lang.String attribute)
SendableEntityCreatorgetValue in interface SendableEntityCreatorentity - the entityattribute - the attributepublic boolean setValue(java.lang.Object entity,
java.lang.String attribute,
java.lang.Object value,
java.lang.String type)
SendableEntityCreatorsetValue in interface SendableEntityCreatorentity - the entityattribute - the attributevalue - the valuetype - edit, update or remove operationprotected java.lang.Class<?> getClassForName(java.lang.String className)
public static GenericCreator create(IdMap map, java.lang.String className)
public static GenericCreator create(IdMap map, java.lang.Class<?> instance)