|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IStorageManager
Almost every concrete module must implement this interface
if it cannot extend from the StorageManager class. The interface
extends Serializable. Additionally, since 0.3.0.5
it also extends Cloneable.
Serializable,
Cloneable| Field Summary | |
|---|---|
static int |
DUMP_BINARY
Indicates to dump/restore set data as uncompressed binary file. |
static int |
DUMP_CSV_TEXT
Indicates to dump/restore data as CSV text file. |
static int |
DUMP_GZIP_BINARY
Indicates to dump/restore data as gzipped binary file. |
static int |
DUMP_HTML
Indicates to dump/restore data as an HTML file. |
static int |
DUMP_SQL
Indicates to dump/restore data as a set of SQL commands. |
static int |
DUMP_XML
Indicates to dump/restore data as XML file. |
static java.lang.String |
MARF_INTERFACE_CODE_REVISION
Interface source code revision. |
static long |
serialVersionUID
For serialization versioning. |
static java.lang.String[] |
STORAGE_FILE_EXTENSIONS
Maps DUMP_ constants to default filename extensions. |
| Method Summary | |
|---|---|
void |
dump()
An object must know how dump itself to a file. |
void |
dumpBinary()
Implement to save data structures as binary. |
void |
dumpCSV()
Implement to save data structures in CSV format. |
void |
dumpGzipBinary()
Implement to save data structures as compressed binary. |
void |
dumpHTML()
Implement to save data structures as HTML document. |
void |
dumpSQL()
Implement to save data structures as SQL script. |
void |
dumpXML()
Implement to save data structures as XML document. |
void |
restore()
An object must know how restore its non-transient data structures from a file. |
void |
restoreBinary()
Implement to load data structures in binary form. |
void |
restoreCSV()
Implement to load data structures in CSV format. |
void |
restoreGzipBinary()
Implement to load data structures in compressed binary form. |
void |
restoreHTML()
Implement to load data structures from an HTML document. |
void |
restoreSQL()
Implement to load data structures from an SQL script. |
void |
restoreXML()
Implement to load data structures from an XML document. |
| Field Detail |
|---|
static final int DUMP_GZIP_BINARY
static final int DUMP_CSV_TEXT
static final int DUMP_BINARY
static final int DUMP_XML
static final int DUMP_HTML
static final int DUMP_SQL
static final java.lang.String MARF_INTERFACE_CODE_REVISION
static final java.lang.String[] STORAGE_FILE_EXTENSIONS
DUMP_ constants to default filename extensions.
The order must follow the order of the constants as they are
used as indices for this array.
static final long serialVersionUID
serialver tool that comes with JDK.
| Method Detail |
|---|
void dump()
throws StorageException
StorageException - if there was a problem saving the object
void restore()
throws StorageException
StorageException - if there was a problem (re)loading the object
void dumpGzipBinary()
throws StorageException
StorageException - in case of I/O or otherwise error
void dumpBinary()
throws StorageException
StorageException - in case of I/O or otherwise error
void dumpCSV()
throws StorageException
StorageException - in case of I/O or otherwise error
void dumpXML()
throws StorageException
StorageException - in case of I/O or otherwise error
void dumpHTML()
throws StorageException
StorageException - in case of I/O or otherwise error
void dumpSQL()
throws StorageException
StorageException - in case of I/O or otherwise error
void restoreBinary()
throws StorageException
StorageException - in case of I/O or otherwise error
void restoreGzipBinary()
throws StorageException
StorageException - in case of I/O or otherwise error
void restoreCSV()
throws StorageException
StorageException - in case of I/O or otherwise error
void restoreXML()
throws StorageException
StorageException - in case of I/O or otherwise error
void restoreHTML()
throws StorageException
StorageException - in case of I/O or otherwise error
void restoreSQL()
throws StorageException
StorageException - in case of I/O or otherwise error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||