org.apache.derby.iapi.db.Factory
| Modifier and Type | Field and Description |
|---|---|
| public static final String |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | backupAndEnableLogArchiveMode(String
The directory name where the
database backup should go. This
directory will be created if it
does not exist. backupDir, boolean 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. deleteOnlineArchivedLogFiles, boolean if true, waits for all
the backup blocking operations in
progress to finish. 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. |
| public void | |
| public void | disableLogArchiveMode(boolean
If true deletes all online archived
log files that exist before this
call immediately; otherwise they
will not be deleted. deleteOnlineArchivedLogFiles)Disables the log archival process, i.e No old log files will be kept around for a roll-forward recovery. |
| public void | |
| public UUID | Returns: the UUID of this database.
Deprecated
No longer supported.
Return the UUID of this database. |
| public Locale | |
| public boolean | Returns: TRUE means the Database is read-only, FALSE means it is not read-only.Tells whether the Database is configured as read-only, or the Database was started in read-only mode. |
| public void |
| LUCENE_DIR | back to summary |
|---|---|
| public static final String LUCENE_DIR | |
| backup | back to summary |
|---|---|
| public void backup(String backupDir, boolean wait) throws SQLException Backup the database to a backup directory. See online documentation for more detail about how to use this feature.
| |
| backupAndEnableLogArchiveMode | back to summary |
|---|---|
| public void backupAndEnableLogArchiveMode(String backupDir, boolean deleteOnlineArchivedLogFiles, boolean wait) throws SQLException 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.
| |
| checkpoint | back to summary |
|---|---|
| public void checkpoint() throws SQLException Checkpoints the database, that is, flushes all dirty data to disk. Records a checkpoint in the transaction log, if there is a log.
| |
| disableLogArchiveMode | back to summary |
|---|---|
| public void disableLogArchiveMode(boolean deleteOnlineArchivedLogFiles) throws SQLException Disables the log archival process, i.e No old log files will be kept around for a roll-forward recovery. Only restore that can be performed after disabling log archive mode is version recovery.
| |
| freeze | back to summary |
|---|---|
| public void freeze() throws SQLException Freeze the database temporarily so a backup can be taken. Please see the Derby documentation on backup and restore.
| |
| getId | back to summary |
|---|---|
| public UUID getId()
Deprecated No longer supported. Return the UUID of this database.
| |
| getLocale | back to summary |
|---|---|
| public Locale getLocale() Get the Locale for this database.
| |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly() Tells whether the Database is configured as read-only, or the Database was started in read-only mode.
| |
| unfreeze | back to summary |
|---|---|
| public void unfreeze() throws SQLException Unfreeze the database after a backup has been taken. Please see the Derby documentation on backup and restore.
| |