public class PersistorToVariable extends AbstractRuntimeDataPersistor
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<java.lang.String> |
storedVariables |
protected java.lang.String |
variablePrefix |
runtime
Constructor and Description |
---|
PersistorToVariable(RuntimeDataInterface runtime,
java.lang.String variablePrefix) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
If they have the same filename, then we consider them equivalent
|
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()
Provided default implementation, simply throw out a SAFSException.
|
unpickle
validate
protected java.lang.String variablePrefix
protected java.util.Set<java.lang.String> storedVariables
public PersistorToVariable(RuntimeDataInterface runtime, java.lang.String variablePrefix)
public void persist(Persistable persistable) throws SAFSException
Persistor
persist
in interface Persistor
persist
in class AbstractPersistor
persistable
- Persistable, the object to persistSAFSException
- when persistence fails or something wrong happens.public void unpersist() throws SAFSException
AbstractPersistor
unpersist
in interface Persistor
unpersist
in class AbstractPersistor
SAFSException
- when failing to delete the persistence or something wrong happens.public PersistenceType getType()
Persistor
public java.lang.String getPersistenceName()
Persistor
Persistor.unpersist()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
Copyright © SAS Institute. All Rights Reserved.