|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Database interface provides control over a database (that is, the stored data and the files the data are stored in), operations on the database such as backup and recovery, and all other things that are associated with the database itself.
IBM Corp. reserves the right to change, rename, or remove this interface at any time.
Factory
Method Summary | |
void |
backup(java.io.File backupDir)
Backup the database to a backup directory. |
void |
backup(java.lang.String backupDir)
Backup the database to a backup directory. |
void |
backupAndEnableLogArchiveMode(java.io.File backupDir,
boolean deleteOnlineArchivedLogFiles)
Backup the database to a backup directory and enable the log archive mode that will keep the archived log files required for roll-forward from this version backup. |
void |
backupAndEnableLogArchiveMode(java.lang.String backupDir,
boolean deleteOnlineArchivedLogFiles)
Backup the database to a backup directory and enable the log archive mode that will keep the archived log files required for roll-forward from this version backup. |
void |
checkpoint()
Checkpoints the database, that is, flushes all dirty data to disk. |
void |
disableLogArchiveMode(boolean deleteOnlineArchivedLogFiles)
Disables the log archival process, i.e No old log files will be kept around for a roll-forward recovery. |
void |
dropAllJDBCMetaDataSPSes()
Delete all stored prepared statements that were created for JDBC MetaData queries. |
void |
freeze()
Freeze the database temporarily so a backup can be taken. |
UUID |
getId()
Deprecated. No longer supported. |
java.util.Locale |
getLocale()
Get the Locale for this database. |
boolean |
isReadOnly()
Tells whether the Database is configured as read-only, or the Database was started in read-only mode. |
void |
unfreeze()
Unfreeze the database after a backup has been taken. |
Method Detail |
public boolean isReadOnly()
public void dropAllJDBCMetaDataSPSes() throws java.sql.SQLException
java.sql.SQLException
- thrown on error deleting
the stored prepared statements, most likely
a deadlock or timeout.public void backup(java.lang.String backupDir) throws java.sql.SQLException
backupDir
- the directory name where the database backup should
go. This directory will be created if not it does not exist.
java.sql.SQLException
- Thrown on errorpublic void backup(java.io.File backupDir) throws java.sql.SQLException
backupDir
- the directory where the database backup should
go. This directory will be created if not it does not exist.
java.sql.SQLException
- Thrown on errorpublic void backupAndEnableLogArchiveMode(java.lang.String backupDir, boolean deleteOnlineArchivedLogFiles) throws java.sql.SQLException
backupDir
- the directory name where the database backup should
go. This directory will be created if not it does not exist.deleteOnlineArchivedLogFiles
- If true deletes online archived log files
that exist before this backup; otherwise they will not be deleted.
Deletion will occur only after backup is complete.
java.sql.SQLException
- Thrown on errorpublic void backupAndEnableLogArchiveMode(java.io.File backupDir, boolean deleteOnlineArchivedLogFiles) throws java.sql.SQLException
backupDir
- the directory name where the database backup should
go. This directory will be created if not it does not exist.deleteOnlineArchivedLogFiles
- If true deletes online archived log files
that exist before this backup; otherwise they will not be deleted.
Deletion will occur only after backup is complete.
java.sql.SQLException
- Thrown on errorpublic void disableLogArchiveMode(boolean deleteOnlineArchivedLogFiles) throws java.sql.SQLException
deleteOnlineArchivedLogFiles
- If true deletes all online archived log files
that exist before this call immediately; otherwise they will not be deleted.
java.sql.SQLException
- Thrown on errorpublic void freeze() throws java.sql.SQLException
Please see Cloudscape on line documentation on backup and restore.
java.sql.SQLException
- Thrown on errorpublic void unfreeze() throws java.sql.SQLException
Please see Cloudscape on line documentation on backup and restore.
java.sql.SQLException
- Thrown on errorpublic void checkpoint() throws java.sql.SQLException
java.sql.SQLException
- Thrown on errorpublic java.util.Locale getLocale()
public UUID getId()
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |