| Modifier and Type | Method and Description |
|---|---|
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.util.Date before,
java.util.Date after)
Cut down data in a table and store those data to an archive.
|
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.
|
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(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.Tablesboolean backup(java.lang.String bkVolume)
throws java.sql.SQLException,
java.io.IOException
bkVolume - The full path name of the archive.java.sql.SQLExceptionjava.io.IOExceptionboolean restore(java.lang.String bkVolume)
throws java.sql.SQLException,
java.io.IOException
bkVolume - The full path name of the archive.java.sql.SQLExceptionjava.io.IOExceptionboolean 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.SQLExceptionjava.io.IOExceptionimportsTable(jet.server.api.db.Table, java.lang.String)boolean cutdownTable(Table tbl, java.lang.String bkVolume, java.util.Date before, java.util.Date after) 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.before - the Date that all records before it will be cut downafter - the Date that all records after it will be cut downjava.sql.SQLExceptionjava.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.SQLExceptionjava.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