|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Database
Interface Database provides a general proposed database, you
can travel all tables in the database.
Workspace,
Tables,
Table| Method Summary | |
|---|---|
boolean |
backup(java.lang.String bkVolume)
Backups the database into an archive. |
void |
checkIntegrality(java.util.Map exPathMap)
Checks the integrity of database. |
boolean |
cutdownTable(Table tbl,
java.lang.String bkVolume,
java.lang.String where)
Cut down data in a table and store those data to an archive. |
Workspace |
getWorkspace()
Gets the Workspace of the database in the
JReport Server. |
boolean |
importsTable(Table tbl,
java.lang.String bkVolume)
Imports cut down data from an archive to a table. |
boolean |
isOpened()
Tests whether the database is open. |
Tables |
ProfileTables()
Gets the profiling database's tables container in the database. |
Tables |
Realmtables()
Gets the realm database's tables container in the database. |
boolean |
restore(java.lang.String bkVolume)
Restores the database from an archive. |
Tables |
Systemtables()
Gets the system database's tables container in the database. |
Tables |
tables()
Gets a Tables instance, which is a tables container in this database
and all tables of the database are contained in it. |
Table |
tables(int index)
Gets the table specified by the index. |
Table |
tables(java.lang.String tblName)
Gets the table specified by the 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
JReport Server.
Workspace instance which is not null.boolean isOpened()
Tables tables()
Tables instance, which is a tables container in this database
and all tables of the database are contained in it.
Tables instance which is not null.TablesTable tables(int index)
index - The table index, its legal value is arranged from 0 to tables().size() - 1.
Table instance, which is not null.TableTable tables(java.lang.String tblName)
tblName - The name of the table, which can not be null.
Table instance if there is a table specified by tblName, otherwise return null.TableTables Systemtables()
Tables instance which is a tables container, and all system tables are contained in it.TablesTables Realmtables()
Tables instance which is a tables container, and all realm tables are contained in it.TablesTables ProfileTables()
Tables instance which is a tables container, and all profiling tables are contained in it.Tables
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 whose data you want to cut down.bkVolume - The full path name of the archive where you want to store the cut
down data.where - The sql condition 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 into which you want to import cut down data.bkVolume - The archive name that you want to import cut down data from 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
map is used 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 | ||||||||