|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Database
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.
Factory
Method Summary | |
---|---|
void |
backup(java.lang.String backupDir,
boolean wait)
Backup the database to a backup directory. |
void |
backupAndEnableLogArchiveMode(java.lang.String backupDir,
boolean deleteOnlineArchivedLogFiles,
boolean wait)
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 |
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 |
---|
boolean isReadOnly()
void backup(java.lang.String backupDir, boolean wait) 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.wait
- if true, waits for all the backup blocking
operations in progress to finish.
java.sql.SQLException
- Thrown on errorvoid backupAndEnableLogArchiveMode(java.lang.String backupDir, boolean deleteOnlineArchivedLogFiles, boolean wait) throws java.sql.SQLException
backupDir
- The directory name where the
database backup should go. This
directory will be created if 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.wait
- if true, waits for all
the backup blocking operations in
progress to finish.
java.sql.SQLException
- Thrown on errorvoid 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 errorvoid freeze() throws java.sql.SQLException
Please see the Derby documentation on backup and restore.
java.sql.SQLException
- Thrown on errorvoid unfreeze() throws java.sql.SQLException
Please see the Derby documentation on backup and restore.
java.sql.SQLException
- Thrown on errorvoid checkpoint() throws java.sql.SQLException
java.sql.SQLException
- Thrown on errorjava.util.Locale getLocale()
UUID getId()
|
Built on Thu 2010-12-23 20:49:13+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |