public interface Database
Factory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LUCENE_DIR |
Modifier and Type | Method and Description |
---|---|
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.
|
static final java.lang.String LUCENE_DIR
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()
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.