|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Almost every concrete module must implement this interface if it cannot extend from the StorageManager class.
$Id: IStorageManager.java,v 1.9 2005/06/12 23:09:37 mokhov Exp $
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 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 retore 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 |
public static final int DUMP_GZIP_BINARY
public static final int DUMP_CSV_TEXT
public static final int DUMP_BINARY
public static final int DUMP_XML
public static final int DUMP_HTML
public static final int DUMP_SQL
public static final java.lang.String MARF_INTERFACE_CODE_REVISION
public 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.
Method Detail |
public void dump() throws StorageException
StorageException
- if there was a problem saving the objectpublic void restore() throws StorageException
StorageException
- if there was a problem (re)loading the objectpublic void dumpGzipBinary() throws StorageException
StorageException
- in case of I/O or otherwise errorpublic void dumpBinary() throws StorageException
StorageException
- in case of I/O or otherwise errorpublic void dumpCSV() throws StorageException
StorageException
- in case of I/O or otherwise errorpublic void dumpXML() throws StorageException
StorageException
- in case of I/O or otherwise errorpublic void dumpHTML() throws StorageException
StorageException
- in case of I/O or otherwise errorpublic void dumpSQL() throws StorageException
StorageException
- in case of I/O or otherwise errorpublic void restoreBinary() throws StorageException
StorageException
- in case of I/O or otherwise errorpublic void restoreGzipBinary() throws StorageException
StorageException
- in case of I/O or otherwise errorpublic void restoreCSV() throws StorageException
StorageException
- in case of I/O or otherwise errorpublic void restoreXML() throws StorageException
StorageException
- in case of I/O or otherwise errorpublic void restoreHTML() throws StorageException
StorageException
- in case of I/O or otherwise errorpublic 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 |