|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.pimento.io.SnapshotEncoder
public class SnapshotEncoder
Responsible for encoding entity instances to snapshot representations. Those snapshot representations may contain all property values of the entity or only a subset if a change set of a modified entity will be created. Snapshots instead of entities will be used for exchanging data between client and server.
| Constructor Summary | |
|---|---|
SnapshotEncoder(Metamodel metamodel,
TransactionContext txContext)
Creates a new instance. |
|
| Method Summary | |
|---|---|
EntitySnapshot |
getSnapshot(Object instance,
Entity entity,
FetchPlan fetchPlan)
Disassemble the specified entity to a snapshot representation. |
EntitySnapshot |
getSnapshot(Object instance,
Entity entity,
FetchPlan fetchPlan,
boolean lazy)
Disassemble the specified entity to a snapshot representation. |
boolean |
isUnitializedProxy(Object instance)
Checks whether the specified entity is an uninitialized proxy. |
boolean |
isUnitializedProxy(Object collection,
Object owner)
Checks whether the specified collection is an uninitialized proxy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SnapshotEncoder(Metamodel metamodel,
TransactionContext txContext)
metamodel - the metamodel of all entities managed by PimentotxContext - the context of the current transaction| Method Detail |
|---|
public EntitySnapshot getSnapshot(Object instance,
Entity entity,
FetchPlan fetchPlan)
instance - the entity to disassembleentity - the entity metamodelfetchPlan - the fetch plan to use
public EntitySnapshot getSnapshot(Object instance,
Entity entity,
FetchPlan fetchPlan,
boolean lazy)
instance - the entity to disassembleentity - the entity for the entityfetchPlan - the fetch plan to uselazy - whether the entity should be lazily fetched
public boolean isUnitializedProxy(Object instance)
instance - the entity to check
public boolean isUnitializedProxy(Object collection,
Object owner)
collection - the collection to checkowner - the entity that owns the collection
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||