public interface PersistentContextServices extends PersistentContext
| Modifier and Type | Interface and Description |
|---|---|
static interface |
PersistentContextServices.ObjectReference |
| Modifier and Type | Method and Description |
|---|---|
PersistentContextServices.ObjectReference |
add(PersistentIdentifier id)
Add a new reference associated to the identifier passed as
parameter.
|
PersistentContextServices.ObjectReference |
add(PersistentState state,
Object obj)
Add a reference to the object associated to the state.
|
void |
clear()
Clear the instances of references previously recreated
|
PersistentContextServices.ObjectReference |
get(Object obj)
Return the object reference associated to the object
passed as parameter.
|
PersistentContextServices.ObjectReference |
get(PersistentIdentifier id)
Return the object reference associated to the id indicated
as parameter.
|
PersistentContextServices.ObjectReference |
get(PersistentState state)
Return the object reference associated to the state passed as parameter.
|
boolean |
getCollectErrors()
Get information about if collect errors or launch it
when produce.
|
PersistentIdentifier |
getId(Object obj)
Deprecated.
|
PersistentIdentifier |
getIdentifier(String id)
Create a new identifier based on the string passed as parameter
and return this.
|
PersistentIdentifier |
getNewIdentifier()
Get a valid new persistent identifier.
|
Object |
getObject(Integer id)
Deprecated.
|
PersistentContextServices.ObjectReference |
getRoot() |
PersistentState |
getState(Integer id)
Deprecated.
|
PersistentState |
getState(Object obj)
Deprecated.
|
void |
setCollectErrors(boolean collectErrors)
Set flag to collect errors.
|
void |
setRootId(PersistentIdentifier id) |
void |
update(PersistentContextServices.ObjectReference ref)
Update the object referenced by ref, recreating it with this
state,
|
void |
validate(int mode)
Validate al statetes en the context.
|
addError, getErrors, iteratorvoid setRootId(PersistentIdentifier id)
PersistentContextServices.ObjectReference getRoot() throws PersistenceException
PersistenceExceptionPersistentContextServices.ObjectReference get(PersistentIdentifier id)
id - PersistentContextServices.ObjectReference get(Object obj)
obj - PersistentContextServices.ObjectReference get(PersistentState state) throws PersistenceException
state - PersistenceExceptionvoid update(PersistentContextServices.ObjectReference ref) throws PersistenceException
ref - PersistenceExceptionPersistentContextServices.ObjectReference add(PersistentState state, Object obj) throws PersistenceException
state - obj - PersistenceExceptionPersistentContextServices.ObjectReference add(PersistentIdentifier id) throws PersistenceException
id - PersistenceExceptionvoid clear()
PersistentState getState(Integer id) throws PersistenceException
PersistenceExceptionPersistentState getState(Object obj) throws PersistenceException
PersistenceExceptionPersistentIdentifier getId(Object obj) throws PersistenceException
obj - PersistenceExceptionObject getObject(Integer id) throws PersistenceException
PersistenceExceptionPersistentIdentifier getNewIdentifier()
PersistentIdentifier getIdentifier(String id) throws PersistenceException
id - PersistenceExceptionvoid setCollectErrors(boolean collectErrors)
collectErrors - boolean getCollectErrors()
void validate(int mode)
throws PersistenceValidateExceptions
PersistenceValidateExceptions