Modifier and Type | Method and Description |
---|---|
PersistenceException |
PersistentContext.getErrors()
Get all errors collected to the moment in this context.
|
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.
|
Object |
PersistentState.get(String name)
Gets an
Object property. |
Object[] |
PersistentState.getArray(String name,
Class valueClass)
Returns an array whose elements are of the class given.
|
boolean |
PersistentState.getBoolean(String name)
Gets a
boolean property. |
boolean[] |
PersistentState.getBooleanArray(String name)
Returns an array whose elements are of boolean basic type.
|
Date |
PersistentState.getDate(String name)
Gets a
Date property. |
Date[] |
PersistentState.getDateArray(String name)
Returns an array whose elements are of Date type.
|
double |
PersistentState.getDouble(String name)
Gets a
double property. |
double[] |
PersistentState.getDoubleArray(String name)
Returns an array whose elements are of double basic type.
|
File |
PersistentState.getFile(String name) |
float |
PersistentState.getFloat(String name)
Gets a
float property. |
float[] |
PersistentState.getFloatArray(String name)
Returns an array whose elements are of float basic type.
|
int |
PersistentState.getInt(String name)
Gets an
int property. |
int[] |
PersistentState.getIntArray(String name)
Returns an array whose elements are of int basic type.
|
Iterator |
PersistentState.getIterator(String name)
|
List |
PersistentState.getList(String name)
Gets a
List property. |
long |
PersistentState.getLong(String name)
Gets an
long property. |
long[] |
PersistentState.getLongArray(String name)
Returns an array whose elements are of long basic type.
|
Map |
PersistentState.getMap(String name)
Gets a
Map property. |
Set |
PersistentState.getSet(String name)
Gets a
Set property. |
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.
|
String |
PersistentState.getString(String name)
Gets a
String property. |
String[] |
PersistentState.getStringArray(String name)
Returns an array whose elements are of String type.
|
URI |
PersistentState.getURI(String name) |
URL |
PersistentState.getURL(String name) |
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. |
PersistentState |
PersistenceManager.loadState(InputStream in)
De-serializes an state from the data read from the provided
reader . |
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 |
PersistentState.set(String name,
boolean value)
Sets a property of type boolean.
|
void |
PersistentState.set(String name,
Boolean value)
Sets a property of type
Boolean . |
void |
PersistentState.set(String name,
boolean[] value)
Sets a property of type
List with an array of boolean. |
void |
PersistentState.set(String name,
Date value)
Sets a property of type
Date . |
void |
PersistentState.set(String name,
Date[] value)
Sets a property of type
List with an array of Date. |
void |
PersistentState.set(String name,
double value)
Sets a property of type double.
|
void |
PersistentState.set(String name,
Double value)
Sets a property of type
Double . |
void |
PersistentState.set(String name,
double[] value)
Sets a property of type
List with an array of double. |
void |
PersistentState.set(String name,
File value) |
void |
PersistentState.set(String name,
float value)
Sets a property of type float.
|
void |
PersistentState.set(String name,
Float value)
Sets a property of type
Float . |
void |
PersistentState.set(String name,
float[] value)
Sets a property of type
List with an array of float. |
void |
PersistentState.set(String name,
int value)
Sets a property of type int.
|
void |
PersistentState.set(String name,
int[] value)
Sets a property of type
List with an array of int. |
void |
PersistentState.set(String name,
Integer value)
Sets a property of type
Integer . |
void |
PersistentState.set(String name,
Iterator it)
Sets a property of type
List (like do
PersistentState.set(String, List) ) filled with the values provided by a
Iterator
The items of the iteration must be persistence supported types instance. |
void |
PersistentState.set(String name,
List value)
Sets a property of type
List . |
void |
PersistentState.set(String name,
long value)
Sets a property of type long.
|
void |
PersistentState.set(String name,
Long value)
Sets a property of type
Long . |
void |
PersistentState.set(String name,
long[] value)
Sets a property of type
List with an array of long. |
void |
PersistentState.set(String name,
Map value)
Sets a property of type
Map . |
void |
PersistentState.set(String name,
Object value)
Sets a property.
|
void |
PersistentState.set(String name,
Object[] value)
Sets a property of type
List with an array. |
void |
PersistentState.set(String name,
Persistent obj)
Sets a property of type Persistent.
|
void |
PersistentState.set(String name,
Set value)
Sets a property of type
Set . |
void |
PersistentState.set(String name,
String value)
Sets a property of type String.
|
void |
PersistentState.set(String name,
String[] value)
Sets a property of type
List with an array of String. |
void |
PersistentState.set(String name,
URI value) |
void |
PersistentState.set(String name,
URL value) |
void |
PersistenceManager.setAutoValidation(int validationMode)
Sets the validation which will be applied in
PersistenceManager.getState(Object) ,
PersistenceManager.create(PersistentState) methods. |
void |
PersistentState.setNull(String name) |
Modifier and Type | Class and Description |
---|---|
class |
FieldNotDeclaredException |
class |
PersistenceClassNotRegistered |
class |
PersistenceIdentifierException |
class |
PersistenceTypeNotSupportedException |
class |
PersistenceValidateExceptions |
Modifier and Type | Method and Description |
---|---|
PersistenceException |
DefaultPersistentContext.getErrors() |
Modifier and Type | Method and Description |
---|---|
PersistentContextServices.ObjectReference |
DefaultPersistentContext.add(PersistentIdentifier id) |
PersistentContextServices.ObjectReference |
DefaultPersistentContext.add(PersistentState state,
Object obj) |
Object |
AbstractPersistenceManager.create(PersistentState state) |
Object |
DynObjectPersistenceFactory.createFromState(PersistentState state) |
Object |
SimplePersistenceFactory.createFromState(PersistentState state) |
PersistentStateServices |
AbstractPersistenceManager.createState(Object object,
PersistentContextServices context) |
PersistentContextServices.ObjectReference |
DefaultPersistentContext.get(PersistentState state) |
Object |
AbstractPersistentState.get(String name) |
Object[] |
AbstractPersistentState.getArray(String name,
Class valueClass) |
boolean |
AbstractPersistentState.getBoolean(String name) |
boolean[] |
AbstractPersistentState.getBooleanArray(String name) |
Date |
AbstractPersistentState.getDate(String name) |
Date[] |
AbstractPersistentState.getDateArray(String name) |
double |
AbstractPersistentState.getDouble(String name) |
double[] |
AbstractPersistentState.getDoubleArray(String name) |
File |
AbstractPersistentState.getFile(String name) |
float |
AbstractPersistentState.getFloat(String name) |
float[] |
AbstractPersistentState.getFloatArray(String name) |
PersistentIdentifier |
DefaultPersistentContext.getId(Object obj) |
PersistentIdentifier |
DefaultPersistentContext.getIdentifier(String id) |
int |
AbstractPersistentState.getInt(String name) |
int[] |
AbstractPersistentState.getIntArray(String name) |
Iterator |
AbstractPersistentState.getIterator(String name) |
List |
AbstractPersistentState.getList(String name) |
long |
AbstractPersistentState.getLong(String name) |
long[] |
AbstractPersistentState.getLongArray(String name) |
Map |
AbstractPersistentState.getMap(String name) |
Object |
DefaultPersistentContext.getObject(Integer id) |
protected Object |
AbstractPersistentState.getObjectToPersist(Object theOriginal) |
PersistentContextServices.ObjectReference |
DefaultPersistentContext.getRoot() |
Set |
AbstractPersistentState.getSet(String name) |
PersistentState |
DefaultPersistentContext.getState(Integer id) |
PersistentState |
AbstractPersistenceManager.getState(Object obj) |
PersistentState |
DefaultPersistentContext.getState(Object obj) |
PersistentState |
AbstractPersistenceManager.getState(Object obj,
boolean collectAllErrors) |
String |
AbstractPersistentState.getString(String name) |
String[] |
AbstractPersistentState.getStringArray(String name) |
URI |
AbstractPersistentState.getURI(String name) |
URL |
AbstractPersistentState.getURL(String name) |
void |
DynObjectPersistenceFactory.loadFromState(PersistentState state,
Object object) |
void |
SimplePersistenceFactory.loadFromState(PersistentState state,
Object object) |
void |
DynObjectPersistenceFactory.saveToState(PersistentState state,
Object obj) |
void |
SimplePersistenceFactory.saveToState(PersistentState state,
Object obj) |
void |
AbstractPersistentState.set(String name,
boolean value) |
void |
AbstractPersistentState.set(String name,
Boolean obj) |
void |
AbstractPersistentState.set(String name,
boolean[] value) |
void |
AbstractPersistentState.set(String name,
Date obj) |
void |
AbstractPersistentState.set(String name,
Date[] values) |
void |
AbstractPersistentState.set(String name,
double value) |
void |
AbstractPersistentState.set(String name,
Double obj) |
void |
AbstractPersistentState.set(String name,
double[] value) |
void |
AbstractPersistentState.set(String name,
File value) |
void |
AbstractPersistentState.set(String name,
float value) |
void |
AbstractPersistentState.set(String name,
Float obj) |
void |
AbstractPersistentState.set(String name,
float[] value) |
void |
AbstractPersistentState.set(String name,
int value) |
void |
AbstractPersistentState.set(String name,
int[] value) |
void |
AbstractPersistentState.set(String name,
Integer obj) |
void |
AbstractPersistentState.set(String name,
Iterator obj) |
void |
AbstractPersistentState.set(String name,
List obj) |
void |
AbstractPersistentState.set(String name,
long value) |
void |
AbstractPersistentState.set(String name,
Long obj) |
void |
AbstractPersistentState.set(String name,
long[] value) |
void |
AbstractPersistentState.set(String name,
Map obj) |
void |
AbstractPersistentState.set(String name,
Object obj) |
void |
AbstractPersistentState.set(String name,
Object[] values) |
void |
AbstractPersistentState.set(String name,
Persistent obj) |
void |
AbstractPersistentState.set(String name,
Set obj) |
void |
AbstractPersistentState.set(String name,
String value) |
void |
AbstractPersistentState.set(String name,
String[] values) |
void |
AbstractPersistentState.set(String name,
URI value) |
void |
AbstractPersistentState.set(String name,
URL value) |
void |
AbstractPersistenceManager.setAutoValidation(int validationMode) |
void |
AbstractPersistentState.setNull(String name) |
void |
AbstractPersistentState.setValue(String name,
Object value) |
void |
DefaultPersistentContext.update(PersistentContextServices.ObjectReference ref) |
Modifier and Type | Class and Description |
---|---|
class |
ObjectNotFoundException |
class |
PersistenceIDNotLoadedException |
class |
PersistenceIllegalStateTheClassNameNotSetException |
class |
PersistenceInvalidTypeForPropertyException |
class |
PersistenceInvalidValidateModeException |
class |
PersistenceReferenceIDConflitException |
class |
PersistenceUnsuportedMapKeyTypeException |
class |
PersistenceValidateMissingDefinitionException |
class |
PersistenceValueNotFoundException |
Modifier and Type | Method and Description |
---|---|
PersistentContextServices.ObjectReference |
PersistentContextServices.add(PersistentIdentifier id)
Add a new reference associated to the identifier passed as
parameter.
|
PersistentContextServices.ObjectReference |
PersistentContextServices.add(PersistentState state,
Object obj)
Add a reference to the object associated to the state.
|
PersistentStateServices |
PersistenceManagerServices.createState(Object theOriginal,
PersistentContextServices context) |
PersistentContextServices.ObjectReference |
PersistentContextServices.get(PersistentState state)
Return the object reference associated to the state passed as parameter.
|
PersistentIdentifier |
PersistentContextServices.getId(Object obj)
Deprecated.
|
PersistentIdentifier |
PersistentContextServices.getIdentifier(String id)
Create a new identifier based on the string passed as parameter
and return this.
|
Object |
PersistentContextServices.getObject(Integer id)
Deprecated.
|
PersistentContextServices.ObjectReference |
PersistentContextServices.getRoot() |
PersistentState |
PersistentContextServices.getState(Integer id)
Deprecated.
|
PersistentState |
PersistentContextServices.getState(Object obj)
Deprecated.
|
void |
PersistentStateServices.setValue(String name,
Object value) |
void |
PersistentContextServices.update(PersistentContextServices.ObjectReference ref)
Update the object referenced by ref, recreating it with this
state,
|
Modifier and Type | Class and Description |
---|---|
class |
ZipXMLPersistenceManager.CantGenerateXMLSchemaForDefinitionException |
class |
ZipXMLPersistenceManager.CantGenerateXMLSchemaForDomainException |
class |
ZipXMLPersistenceManager.CantSaveStateException |
Modifier and Type | Method and Description |
---|---|
PersistentState |
ZipXMLPersistenceManager.loadState(InputStream in) |
PersistentState |
XMLPersistenceManager.loadState(InputStream in) |
void |
XMLPersistentStateReader.read(PersistentContextServices context,
org.xmlpull.v1.XmlPullParser parser) |
void |
ZipXMLPersistenceManager.saveState(PersistentState state,
OutputStream out) |
void |
XMLPersistenceManager.saveState(PersistentState state,
OutputStream out) |
void |
XMLPersistentStateWriter.write(PersistentStateServices state,
OutputStream out) |
void |
XMLPersistentStateWriter.write(PersistentStateServices state,
OutputStream out,
Map domains) |
Modifier and Type | Class and Description |
---|---|
class |
PersistenceMissingEntryInZIPException |
Modifier and Type | Method and Description |
---|---|
void |
AbstractPersistentService.loadFromState(PersistentState state) |
void |
AbstractPersistentService.saveToState(PersistentState state) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractPersistentProviderServices.loadFromState(PersistentState state) |
void |
AbstractPersistentProviderServices.saveToState(PersistentState state) |
Copyright © 2013 gvSIG Association. All Rights Reserved.