|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Database
Interface Database provides a general propose database, you
can travel all tables in the database.
| Method Summary | |
|---|---|
boolean |
backup(java.lang.String bkVolume)
Backup the database to an archive. |
void |
checkIntegrality(java.util.Map exPathMap)
Check integrality of the database, all invalid data, include invalid data in database and invalid external file data would be clean up. |
boolean |
cutdownTable(Table tbl,
java.lang.String bkVolume,
java.lang.String where)
Cut down data in a table and stroe those data to an archive.Now, for "systables" database, only the result version table "RESULTVERSION_2" can be cut down. |
Workspace |
getWorkspace()
Retrieves the Workspace of the database in the
JREntServer. |
boolean |
importsTable(Table tbl,
java.lang.String bkVolume)
Imports cut down data from an archive to a table. |
boolean |
isOpened()
Test whether the database is opened. |
boolean |
restore(java.lang.String bkVolume)
Restore the database from an archive. |
Tables |
tables()
Gets the tables container in this database. |
Table |
tables(int index)
Gets the table that inindicated by an index. |
Table |
tables(java.lang.String tblName)
Gets the table that inindicated by a table name. |
| Methods inherited from interface jet.server.api.db.DBObject |
|---|
getName, getProperties, getProperty, getProperty, getUCName, setProperty |
| Method Detail |
|---|
Workspace getWorkspace()
Workspace of the database in the
JREntServer.
Workspace instance.boolean isOpened()
Tables tables()
Tables instance, it is a tables container.- See Also:
TablesTable tables(int index)
index - the sequence number of the table in the container.
Table instance.TableTable tables(java.lang.String tblName)
tblName - the name of the table.
Table instance.Table
boolean backup(java.lang.String bkVolume)
throws java.sql.SQLException,
java.io.IOException
bkVolume - the full path name of the archive.
java.sql.SQLException
java.io.IOException
boolean restore(java.lang.String bkVolume)
throws java.sql.SQLException,
java.io.IOException
bkVolume - the full path name of the archive.
java.sql.SQLException
java.io.IOException
boolean cutdownTable(Table tbl,
java.lang.String bkVolume,
java.lang.String where)
throws java.sql.SQLException,
java.io.IOException
tbl - the table that you want to cut down data.bkVolume - the full path name of the archive that you want to stroe cut
down data in it.where - the sql conditions that you cut down data.
java.sql.SQLException
java.io.IOExceptionimportsTable(jet.server.api.db.Table, java.lang.String)
boolean importsTable(Table tbl,
java.lang.String bkVolume)
throws java.sql.SQLException,
java.io.IOException
tbl - the table that you want to import cut down data.bkVolume - the archive name that you want to import cut down data for it.
java.sql.SQLException
java.io.IOExceptioncutdownTable(jet.server.api.db.Table, java.lang.String, java.lang.String)
void checkIntegrality(java.util.Map exPathMap)
throws java.sql.SQLException
Note: User should not invoke this method directly. Please invoke
jet.server.api.db.DBManager#checkIntegrality(String dbName).
exPathMap - a files list that stores all relational external files. Here,
we use map to store file name, and the File
object.
java.sql.SQLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||