public interface Persistor
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPersistenceName()
The name of the persistence material holding the content of an Object.
It can be a file name or a variable name etc. It could be useful when deleting the persistence. |
PersistenceType |
getType()
The persistence Type.
|
void |
persist(Persistable persistable)
Persist a Persistable object.
|
void |
unpersist()
Delete the persistence (a file, the variables etc.)
|
Persistable |
unpickle(java.util.Map<java.lang.String,java.util.List<java.lang.String>> ignoredFields)
Convert the contents stored in a persistence substance into a Persistable object.
|
void persist(Persistable persistable) throws SAFSException
persistable
- Persistable, the object to persistSAFSException
- when persistence fails or something wrong happens.void unpersist() throws SAFSException
SAFSException
- when failing to delete the persistence or something wrong happens.Persistable unpickle(java.util.Map<java.lang.String,java.util.List<java.lang.String>> ignoredFields) throws SAFSException
ignoredFields
- Map<String, List<String>>, a Map containing the fields of each class to be ignored when un-pickling.SAFSException
PersistenceType getType()
java.lang.String getPersistenceName()
unpersist()
Copyright © SAS Institute. All Rights Reserved.