Modifier and Type | Method and Description |
---|---|
PersistentState |
PersistenceManager.getState(Object obj)
Creates a persistent state from an Persistent object.
|
PersistentState |
PersistenceManager.getState(Object obj,
boolean collectAllErrors)
Creates a persistent state from an Persistent object.
|
PersistentState |
PersistenceManager.loadState(InputStream in)
De-serializes an state from the data read from the provided
reader . |
Modifier and Type | Method and Description |
---|---|
Object |
PersistenceManager.create(PersistentState state)
Instantiates an object from a persistent state.
|
Object |
PersistenceFactory.createFromState(PersistentState state)
Create an instance of the object represented by the state.
|
PersistenceFactory |
PersistenceManager.Factories.get(PersistentState state)
Return factory associated to the object stored in the state.
|
Class |
AbstractMultiPersistenceFactory.getManagedClass(PersistentState state) |
Class |
AbstractSinglePersistenceFactory.getManagedClass(PersistentState state) |
Class |
PersistenceFactory.getManagedClass(PersistentState state)
Return the class or interface the factory asociate to
the object.
|
void |
Persistent.loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
AbstractMultiPersistenceFactory.loadFromState(PersistentState state,
Object object) |
void |
AbstractSinglePersistenceFactory.loadFromState(PersistentState state,
Object object) |
void |
PersistenceFactory.loadFromState(PersistentState state,
Object object)
Load a instance of
classToUse from state data. |
boolean |
AbstractMultiPersistenceFactory.manages(PersistentState state) |
boolean |
AbstractSinglePersistenceFactory.manages(PersistentState state) |
boolean |
PersistenceFactory.manages(PersistentState state)
Informs if this factory can recreate the object represented by
state . |
void |
PersistenceManager.saveState(PersistentState state,
OutputStream out)
Serializes the
PersistentState and writes the serialized data in
the provided OutputStream . |
void |
Persistent.saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
PersistenceFactory.saveToState(PersistentState state,
Object obj)
Fill
state with data to persist of obj . |
void |
PersistenceManager.validate(PersistentState state,
int mode)
Validates persistent state by using the corresponding registered
attribute definition.
|
void |
PersistenceManager.validateAll(PersistentState state,
int mode)
Validates all persistent state related to the
state by using
the corresponding registered attribute definition. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractPersistentState |
Modifier and Type | Method and Description |
---|---|
PersistentState |
DefaultPersistentContext.getState(Integer id) |
PersistentState |
AbstractPersistenceManager.getState(Object obj) |
PersistentState |
DefaultPersistentContext.getState(Object obj) |
PersistentState |
AbstractPersistenceManager.getState(Object obj,
boolean collectAllErrors) |
Modifier and Type | Method and Description |
---|---|
PersistentContextServices.ObjectReference |
DefaultPersistentContext.add(PersistentState state,
Object obj) |
Object |
AbstractPersistenceManager.create(PersistentState state) |
Object |
DynObjectPersistenceFactory.createFromState(PersistentState state) |
Object |
SimplePersistenceFactory.createFromState(PersistentState state) |
PersistenceFactory |
DefaultFactories.get(PersistentState state) |
PersistentContextServices.ObjectReference |
DefaultPersistentContext.get(PersistentState state) |
Class |
DynObjectPersistenceFactory.getManagedClass(PersistentState state) |
Class |
SimplePersistenceFactory.getManagedClass(PersistentState state) |
void |
DynObjectPersistenceFactory.loadFromState(PersistentState state,
Object object) |
void |
SimplePersistenceFactory.loadFromState(PersistentState state,
Object object) |
boolean |
DynObjectPersistenceFactory.manages(PersistentState state) |
boolean |
SimplePersistenceFactory.manages(PersistentState state) |
void |
DynObjectPersistenceFactory.saveToState(PersistentState state,
Object obj) |
void |
SimplePersistenceFactory.saveToState(PersistentState state,
Object obj) |
void |
AbstractPersistenceManager.validate(PersistentState state,
int mode) |
void |
AbstractPersistenceManager.validateAll(PersistentState state,
int mode) |
Modifier and Type | Interface and Description |
---|---|
interface |
PersistentStateServices |
Modifier and Type | Method and Description |
---|---|
PersistentState |
PersistentContextServices.ObjectReference.getState()
Return the state associated to this object reference.
|
PersistentState |
PersistentContextServices.getState(Integer id)
Deprecated.
|
PersistentState |
PersistentContextServices.getState(Object obj)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
PersistentContextServices.ObjectReference |
PersistentContextServices.add(PersistentState state,
Object obj)
Add a reference to the object associated to the state.
|
PersistentContextServices.ObjectReference |
PersistentContextServices.get(PersistentState state)
Return the object reference associated to the state passed as parameter.
|
Modifier and Type | Method and Description |
---|---|
PersistentState |
ZipXMLPersistenceManager.loadState(InputStream in) |
PersistentState |
XMLPersistenceManager.loadState(InputStream in) |
Modifier and Type | Method and Description |
---|---|
void |
ZipXMLPersistenceManager.saveState(PersistentState state,
OutputStream out) |
void |
XMLPersistenceManager.saveState(PersistentState state,
OutputStream out) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
AbstractPersistentService.doLoadFromState(PersistentState state)
Set the state of the child class persistent attributes from the state
passed as parameter.
|
protected abstract void |
AbstractPersistentService.doSaveToState(PersistentState state)
Saves the internal state of the child class persistent attributes on the
provided PersistentState object.
|
void |
AbstractPersistentService.loadFromState(PersistentState state) |
void |
AbstractPersistentService.saveToState(PersistentState state) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
AbstractPersistentProviderServices.doLoadFromState(PersistentState state)
Set the state of the child class persistent attributes from the state
passed as parameter.
|
protected abstract void |
AbstractPersistentProviderServices.doSaveToState(PersistentState state)
Saves the internal state of the child class persistent attributes on the
provided PersistentState object.
|
void |
AbstractPersistentProviderServices.loadFromState(PersistentState state) |
void |
AbstractPersistentProviderServices.saveToState(PersistentState state) |
Copyright © 2013 gvSIG Association. All Rights Reserved.