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, setCollectErrors
void setRootId(PersistentIdentifier id)
PersistentContextServices.ObjectReference getRoot() throws PersistenceException
PersistenceException
PersistentContextServices.ObjectReference get(PersistentIdentifier id)
id
- PersistentContextServices.ObjectReference get(java.lang.Object obj)
obj
- PersistentContextServices.ObjectReference get(PersistentState state) throws PersistenceException
state
- PersistenceException
void update(PersistentContextServices.ObjectReference ref) throws PersistenceException
ref
- PersistenceException
PersistentContextServices.ObjectReference add(PersistentState state, java.lang.Object obj) throws PersistenceException
state
- obj
- PersistenceException
PersistentContextServices.ObjectReference add(PersistentIdentifier id) throws PersistenceException
id
- PersistenceException
void clear()
PersistentState getState(java.lang.Integer id) throws PersistenceException
PersistenceException
PersistentState getState(java.lang.Object obj) throws PersistenceException
PersistenceException
PersistentIdentifier getId(java.lang.Object obj) throws PersistenceException
obj
- PersistenceException
java.lang.Object getObject(java.lang.Integer id) throws PersistenceException
PersistenceException
PersistentIdentifier getNewIdentifier()
PersistentIdentifier getIdentifier(java.lang.String id) throws PersistenceException
id
- PersistenceException
void validate(int mode) throws PersistenceValidateExceptions
PersistenceValidateExceptions