|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.axiondb.engine.BaseDatabase
org.axiondb.engine.DiskDatabase
public class DiskDatabase
A disk-resident Database
.
Field Summary |
---|
Fields inherited from class org.axiondb.engine.BaseDatabase |
---|
SYSTABLE_DB_LINKS, SYSTABLE_INDEX_INFO |
Fields inherited from interface org.axiondb.Database |
---|
COMMIT_SIZE |
Constructor Summary | |
---|---|
DiskDatabase(File dbDir)
|
|
DiskDatabase(String name,
File dbDir)
|
|
DiskDatabase(String name,
File dbDir,
Properties props)
|
Method Summary | |
---|---|
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(String name)
|
void |
defrag()
|
int |
defragTable(String tableName)
|
File |
getDBDirectory()
Get the directory into which table information is stored, or null. |
TableFactory |
getTableFactory(String name)
Get the TableFactory currently registered for the given name, or
null. |
void |
remount(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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.axiondb.Database |
---|
addDatabaseModificationListener, addIndex, addIndex, addTable, canResolveSelectable, createDatabaseLink, dropDatabaseLink, dropIndex, dropSequence, dropTable, getDatabaseLink, getDatabaseModificationListeners, getDataType, getGlobalVariable, getIndexFactory, getName, getSequence, getTable, getTable, getTransactionManager, hasDatabaseLink, hasIndex, hasSequence, hasTable, hasTable, isReadOnly, renameTable, resolveFromNode, resolveSelectable, resolveSelectable, tableAltered |
Constructor Detail |
---|
public DiskDatabase(File dbDir) throws AxionException
AxionException
public DiskDatabase(String name, File dbDir) throws AxionException
AxionException
public DiskDatabase(String name, File dbDir, Properties props) throws AxionException
AxionException
Method Detail |
---|
public void checkpoint() throws AxionException
Database
checkpoint
in interface Database
checkpoint
in class BaseDatabase
AxionException
public void createSequence(Sequence seq) throws AxionException
Database
createSequence
in interface Database
createSequence
in class BaseDatabase
AxionException
public void defrag() throws AxionException
AxionException
public int defragTable(String tableName) throws AxionException
AxionException
public File getDBDirectory()
Database
getDBDirectory
in interface Database
public TableFactory getTableFactory(String name)
Database
TableFactory
currently registered for the given name, or
null.
getTableFactory
in interface Database
getTableFactory
in class BaseDatabase
public void remount(File newdir) throws AxionException
Database
remount
in interface Database
remount
in class BaseDatabase
AxionException
public void shutdown() throws AxionException
Database
shutdown
in interface Database
shutdown
in class BaseDatabase
AxionException
protected Table createSystemTable(String name)
createSystemTable
in class BaseDatabase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |