|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.systemsx.cisd.openbis.dss.generic.shared.content.SimpleFileBasePersistenceManager
public class SimpleFileBasePersistenceManager
Simple implementation of IPersistenceManager
using a file. Persistence request are
processed immediately.
Constructor Summary | |
---|---|
SimpleFileBasePersistenceManager(java.io.File file,
java.lang.String nameOfObject)
Creates an instance for the specified file storing the object. |
Method Summary | |
---|---|
java.io.Serializable |
load(java.io.Serializable defaultObject)
Loads and returns the persistent object. |
void |
requestPersistence()
Requests for persisting the object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleFileBasePersistenceManager(java.io.File file, java.lang.String nameOfObject)
nameOfObject
- Name of the object. Will be used in exception messages.Method Detail |
---|
public java.io.Serializable load(java.io.Serializable defaultObject)
IPersistenceManager
load
in interface IPersistenceManager
defaultObject
- will be returned if loading failed.public void requestPersistence()
IPersistenceManager
requestPersistence
in interface IPersistenceManager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |