public abstract class AbstractPersistor extends PersistableChecker implements Persistor
Constructor and Description |
---|
AbstractPersistor() |
Modifier and Type | Method and Description |
---|---|
void |
persist(Persistable persistable)
Persist a Persistable object.
|
void |
unpersist()
Provided default implementation, simply throw out a SAFSException.
|
Persistable |
unpickle(java.util.Map<java.lang.String,java.util.List<java.lang.String>> ignoredFields)
Provided default implementation, simply throw out a SAFSException.
|
validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPersistenceName, getType
public void persist(Persistable persistable) throws SAFSException
Persistor
persist
in interface Persistor
persistable
- Persistable, the object to persistSAFSException
- when persistence fails or something wrong happens.public void unpersist() throws SAFSException
unpersist
in interface Persistor
SAFSException
- when failing to delete the persistence or something wrong happens.public Persistable unpickle(java.util.Map<java.lang.String,java.util.List<java.lang.String>> ignoredFields) throws SAFSException
unpickle
in interface Persistor
ignoredFields
- Map<String, List<String>>, a Map containing the fields of each class to be ignored when un-pickling.SAFSException
Copyright © SAS Institute. All Rights Reserved.