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