public abstract class PersistStorage
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected PersistPolicy |
persistPolicy
Persistence policy
|
Constructor and Description |
---|
PersistStorage() |
Modifier and Type | Method and Description |
---|---|
PersistPolicy |
getPersistPolicy()
Returns persistence policy
|
abstract PersistEntryScalar |
getPersistScalar(FID id)
Returns persistent scalar entry or null if not exist.
|
abstract PersistEntryScalar[] |
getPersistScalars()
Returns array of persistent entries with scalars
in this persistence storage.
|
abstract PersistEntryTable |
getPersistTable(FID id)
Returns persistent scalar entry or null if not exist.
|
abstract PersistEntryTable[] |
getPersistTables()
Returns array of persistent entries with scalars
in this persistence storage.
|
abstract void |
put(FScalar scalar)
Saves scalar in persistence storage.
|
abstract void |
put(FTable table)
Saves table in persistence storage.
|
abstract void |
remove(FID id)
Removes object from persistence storage.
|
abstract void |
save()
Saves persistence storage.
|
void |
setPersistPolicy(PersistPolicy p)
Sets persistence policy
|
void |
shutdown()
Shutdowns persistence storage.
|
protected PersistPolicy persistPolicy
public abstract void put(FScalar scalar) throws FException
scalar
- scalar to be saved in persistent storage.FException
- exception thrown in derived class.public abstract PersistEntryScalar getPersistScalar(FID id)
id
- id of the stored object.public abstract PersistEntryScalar[] getPersistScalars()
public abstract void put(FTable table) throws FException
table
- table to be saved in persistent storage.FException
- exception thrown in derived class.public abstract PersistEntryTable getPersistTable(FID id)
id
- id of the stored objectpublic abstract PersistEntryTable[] getPersistTables()
public abstract void remove(FID id) throws FException
id
- object ID.FException
- exception thrown in derived class.public abstract void save() throws FException
FException
- exception thrown in derived class.public void setPersistPolicy(PersistPolicy p)
p
- persistence policypublic PersistPolicy getPersistPolicy()
public void shutdown() throws FException
FException
- exception thrown in derived class.