|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.pimento.io.TypeHandler<EntitySnapshot,Entity>
org.spicefactory.pimento.io.EntityHandler
public class EntityHandler
Responsible for managing a particular entity type.
| Method Summary | |
|---|---|
protected void |
applyUpdates(PropertyChangeSet changeSet)
Applies the specified change set to the entity managed by this instance. |
static Object |
convertEntityId(Object value,
Entity entity)
Convert the specified value to the corresponding target type of the id property of the specified entity type. |
static Object |
getEntityId(Object instance,
Entity entity)
Retrieves the id for the specified entity. |
void |
invalidateSnapshot()
Invalidates the snapshot managed by this instance. |
boolean |
isRefreshable()
Indicates whether the entity type managed by this handler contains refreshable properties. |
void |
populateSnapshot(SnapshotEncoder encoder,
FetchPlan fetchPlan)
Populates the snapshot of the entity managed by this instance. |
void |
setSnapshotId()
Sets the id for the snapshot managed by this instance. |
| Methods inherited from class org.spicefactory.pimento.io.TypeHandler |
|---|
assertUpdatePermitted, getInstance, getSnapshot, getState, getType, getValueForSnapshot, populateSnapshot, prepareChangeSet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Object getEntityId(Object instance,
Entity entity)
instance - the entity to retrieve the id forentity - the metamodel for the entity
public static Object convertEntityId(Object value,
Entity entity)
value - the property value to convertentity - the metamodel for the entity
public boolean isRefreshable()
protected void applyUpdates(PropertyChangeSet changeSet)
TypeHandler
applyUpdates in class TypeHandler<EntitySnapshot,Entity>changeSet - the change set to applypublic void setSnapshotId()
public void invalidateSnapshot()
public void populateSnapshot(SnapshotEncoder encoder,
FetchPlan fetchPlan)
TypeHandler
populateSnapshot in class TypeHandler<EntitySnapshot,Entity>encoder - the encoder to use for encoding associationsfetchPlan - the effective fetch plan
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||