| Modifier and Type | Method and Description |
|---|---|
boolean |
backup(String bkVolume)
Backups the database into an archive.
|
void |
checkIntegrality(Map exPathMap)
Checks the integrity of database.
|
boolean |
cutdownTable(Table tbl,
String bkVolume,
Date before,
Date after)
Cut down data in a table and store those data to an archive.
|
boolean |
cutdownTable(Table tbl,
String bkVolume,
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,
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(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(String tblName)
Gets the table specified by the table name.
|
getName, getProperties, getProperty, getProperty, getUCName, setPropertyWorkspace 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(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.Tablesboolean backup(String bkVolume) throws SQLException, IOException
bkVolume - The full path name of the archive.SQLExceptionIOExceptionboolean restore(String bkVolume) throws SQLException, IOException
bkVolume - The full path name of the archive.SQLExceptionIOExceptionboolean cutdownTable(Table tbl, String bkVolume, String where) throws SQLException, 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.SQLExceptionIOExceptionimportsTable(jet.server.api.db.Table, java.lang.String)boolean cutdownTable(Table tbl, String bkVolume, Date before, Date after) throws SQLException, 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.before - the Date that all records before it will be cut downafter - the Date that all records after it will be cut downSQLExceptionIOExceptionimportsTable(jet.server.api.db.Table, java.lang.String)boolean importsTable(Table tbl, String bkVolume) throws SQLException, 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.SQLExceptionIOExceptioncutdownTable(jet.server.api.db.Table, java.lang.String, java.lang.String)void checkIntegrality(Map exPathMap) throws 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.SQLException© insightsoftware. All rights reserved.