public class ZipXMLPersistenceManager extends XMLPersistenceManager
Modifier and Type | Class and Description |
---|---|
class |
ZipXMLPersistenceManager.CantGenerateXMLSchemaForDefinitionException |
class |
ZipXMLPersistenceManager.CantGenerateXMLSchemaForDomainException |
class |
ZipXMLPersistenceManager.CantSaveStateException |
PersistenceManager.Factories
DEFAULT_DOMAIN_NAME, DEFAULT_DOMAIN_URL, DISABLED, MANDATORY, MANDATORY_IF_DECLARED, PERSISTENCE_DYNOBJECT_NAMESPACE, PERSISTENCE_NAMESPACE
Constructor and Description |
---|
ZipXMLPersistenceManager() |
Modifier and Type | Method and Description |
---|---|
PersistentState |
loadState(InputStream in,
PersistentContext context)
De-serializes an state from the data read from the provided
reader . |
void |
saveState(PersistentState state,
OutputStream out,
boolean collectErrors) |
createPersistentState, getReaderInstance, getWriterInstance, saveState, version
addAlias, addDefinition, addDefinition, addDefinition, addDefinition, addDefinition, addDefinition, addDefinition, create, createPersistentState, createState, getAutoValidation, getDefinition, getDefinition, getDomainDefinitions, getDomains, getDynObjectDefinition, getFactories, getNewContext, getObject, getState, getState, getWrappedList, getWrappedMap, getWrappedSet, loadState, putObject, registerFactory, setAutoValidation, unregisterClass, unregisterClass, unregisterFactory, validate, validateAll
public PersistentState loadState(InputStream in, PersistentContext context) throws PersistenceException
PersistenceManager
De-serializes an state from the data read from the provided
reader
. Depending on the implementation the serialized data
may have different formats, such as XML or binary data.
Note that a particular implementation will only be able to de-serialize data which has been serialized by the same implementation.
loadState
in interface PersistenceManager
loadState
in class XMLPersistenceManager
PersistenceException
public void saveState(PersistentState state, OutputStream out, boolean collectErrors) throws PersistenceException, PersistenceValidateExceptions
saveState
in interface PersistenceManager
saveState
in class XMLPersistenceManager
PersistenceException
PersistenceValidateExceptions