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,
java.lang.Object obj)
Add a reference to the object associated to the state.
|
void |
clear()
Clear the instances of references previously recreated
|
PersistentContextServices.ObjectReference |
get(java.lang.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.
|
PersistentIdentifier |
getId(java.lang.Object obj)
Deprecated.
|
PersistentIdentifier |
getIdentifier(java.lang.String id)
Create a new identifier based on the string passed as parameter
and return this.
|
PersistentIdentifier |
getNewIdentifier()
Get a valid new persistent identifier.
|
java.lang.Object |
getObject(java.lang.Integer id)
Deprecated.
|
PersistentContextServices.ObjectReference |
getRoot() |
PersistentState |
getState(java.lang.Integer id)
Deprecated.
|
PersistentState |
getState(java.lang.Object obj)
Deprecated.
|
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, getCollectErrors, getErrors, iterator, setCollectErrorsvoid setRootId(PersistentIdentifier id)
PersistentContextServices.ObjectReference getRoot() throws PersistenceException
PersistenceExceptionPersistentContextServices.ObjectReference get(PersistentIdentifier id)
id - PersistentContextServices.ObjectReference get(java.lang.Object obj)
obj - PersistentContextServices.ObjectReference get(PersistentState state) throws PersistenceException
state - PersistenceExceptionvoid update(PersistentContextServices.ObjectReference ref) throws PersistenceException
ref - PersistenceExceptionPersistentContextServices.ObjectReference add(PersistentState state, java.lang.Object obj) throws PersistenceException
state - obj - PersistenceExceptionPersistentContextServices.ObjectReference add(PersistentIdentifier id) throws PersistenceException
id - PersistenceExceptionvoid clear()
PersistentState getState(java.lang.Integer id) throws PersistenceException
PersistenceExceptionPersistentState getState(java.lang.Object obj) throws PersistenceException
PersistenceExceptionPersistentIdentifier getId(java.lang.Object obj) throws PersistenceException
obj - PersistenceExceptionjava.lang.Object getObject(java.lang.Integer id)
throws PersistenceException
PersistenceExceptionPersistentIdentifier getNewIdentifier()
PersistentIdentifier getIdentifier(java.lang.String id) throws PersistenceException
id - PersistenceExceptionvoid validate(int mode)
throws PersistenceValidateExceptions
PersistenceValidateExceptions