|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.pimento.transaction.TransactionContext
public class TransactionContext
The context for a single transaction.
| Method Summary | |
|---|---|
void |
addDetachedEntity(EntityHandler entity)
Adds a handler for a detached entity to this context. |
void |
addLoadedEntity(EntityHandler entity)
Adds a handler for an entity to be sent to the client to this context. |
void |
addModifiedEntity(EntityHandler entity)
Adds a handler for a modified persistent entity to this context. |
void |
addTransientEntity(EntityHandler entity)
Adds a handler for a transient entity to this context. |
List<EntityHandler> |
getDetachedEntities()
Returns the handlers for all detached entities of this transaction. |
List<EntityHandler> |
getLoadedEntities()
Returns the handlers for all entities to be sent to the client. |
List<EntityHandler> |
getModifiedEntities()
Returns the handlers for all modified persistent entities of this transaction. |
TransactionRequest |
getRequest()
Returns the request sent by the client. |
TransactionResponse |
getResponse()
Returns the response to be sent to the client. |
List<EntityHandler> |
getTransientEntities()
Returns the handlers for all transient entities of this transaction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public TransactionRequest getRequest()
public TransactionResponse getResponse()
public void addTransientEntity(EntityHandler entity)
entity - a handler for a transient entitypublic void addDetachedEntity(EntityHandler entity)
entity - a handler for a detached entitypublic void addModifiedEntity(EntityHandler entity)
entity - a handler for a modified persistent entitypublic void addLoadedEntity(EntityHandler entity)
entity - a handler for an entity to be sent to the client to this contextpublic List<EntityHandler> getTransientEntities()
public List<EntityHandler> getDetachedEntities()
public List<EntityHandler> getModifiedEntities()
public List<EntityHandler> getLoadedEntities()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||