public class DiskDatabase extends BaseDatabase implements Database
Database.SYSTABLE_DB_LINKS, SYSTABLE_INDEX_INFOCOMMIT_SIZE| Constructor and Description |
|---|
DiskDatabase(java.io.File dbDir) |
DiskDatabase(java.lang.String name,
java.io.File dbDir) |
DiskDatabase(java.lang.String name,
java.io.File dbDir,
java.util.Properties props) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkpoint()
Make sure any modified state or data has been written to disk.
|
void |
createSequence(Sequence seq)
Create a numeric sequence
|
protected Table |
createSystemTable(java.lang.String name) |
void |
defrag() |
int |
defragTable(java.lang.String tableName) |
java.io.File |
getDBDirectory()
Get the directory into which table information is stored, or null.
|
protected java.io.File |
getDbFileName(java.lang.String extension) |
TableFactory |
getTableFactory(java.lang.String name)
Get the
TableFactorycurrently registered for the given name, or
null. |
void |
migrate(int version)
Migrate from older version to newer version for this database
|
void |
remount(java.io.File newdir)
Notify this database that its root directory has been moved to the given location.
|
void |
shutdown()
Close this database and free any resources associated with it.
|
addDatabaseModificationListener, addIndex, addIndex, addTable, createDatabaseLink, createMetaDataTables, dropDatabaseLink, dropDependentExternalDBTable, dropDependentViews, dropIndex, dropSequence, dropTable, getBaseProperties, getDatabaseLink, getDatabaseModificationListeners, getDataType, getDependentExternalDBTable, getDependentViews, getFunction, getGlobalVariable, getIndexFactory, getName, getSequence, getSequenceCount, getSequences, getTable, getTable, getTables, getTransactionManager, hasDatabaseLink, hasIndex, hasSequence, hasTable, hasTable, isReadOnly, loadProperties, removeDatabaseModificationListener, renameTable, resolveSelectSelectable, tableAlteredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddDatabaseModificationListener, addIndex, addIndex, addTable, createDatabaseLink, dropDatabaseLink, dropDependentExternalDBTable, dropDependentViews, dropIndex, dropSequence, dropTable, getDatabaseLink, getDatabaseModificationListeners, getDataType, getDependentExternalDBTable, getDependentViews, getFunction, getGlobalVariable, getIndexFactory, getName, getSequence, getTable, getTable, getTransactionManager, hasDatabaseLink, hasIndex, hasSequence, hasTable, hasTable, isReadOnly, renameTable, tableAlteredpublic DiskDatabase(java.io.File dbDir)
throws AxionException
AxionExceptionpublic DiskDatabase(java.lang.String name,
java.io.File dbDir)
throws AxionException
AxionExceptionpublic DiskDatabase(java.lang.String name,
java.io.File dbDir,
java.util.Properties props)
throws AxionException
AxionExceptionprotected java.io.File getDbFileName(java.lang.String extension)
public void checkpoint()
throws AxionException
Databasecheckpoint in interface Databasecheckpoint in class BaseDatabaseAxionExceptionpublic void createSequence(Sequence seq) throws AxionException
DatabasecreateSequence in interface DatabasecreateSequence in class BaseDatabaseAxionExceptionpublic void defrag()
throws AxionException
AxionExceptionpublic int defragTable(java.lang.String tableName)
throws AxionException
AxionExceptionpublic java.io.File getDBDirectory()
DatabasegetDBDirectory in interface Databasepublic TableFactory getTableFactory(java.lang.String name)
DatabaseTableFactorycurrently registered for the given name, or
null.getTableFactory in interface DatabasegetTableFactory in class BaseDatabasepublic void migrate(int version)
throws AxionException
BaseDatabasemigrate in interface Databasemigrate in class BaseDatabaseAxionExceptionpublic void remount(java.io.File newdir)
throws AxionException
Databaseremount in interface Databaseremount in class BaseDatabaseAxionExceptionpublic void shutdown()
throws AxionException
Databaseshutdown in interface Databaseshutdown in class BaseDatabaseAxionExceptionprotected Table createSystemTable(java.lang.String name)
createSystemTable in class BaseDatabase