|
||||||||||
| 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(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)
|
|
| 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(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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DiskDatabase(java.io.File dbDir)
throws AxionException
AxionException
public DiskDatabase(java.lang.String name,
java.io.File dbDir)
throws AxionException
AxionException
public DiskDatabase(java.lang.String name,
java.io.File dbDir,
java.util.Properties props)
throws AxionException
AxionException| Method Detail |
|---|
protected java.io.File getDbFileName(java.lang.String extension)
public void checkpoint()
throws AxionException
Database
checkpoint in interface Databasecheckpoint in class BaseDatabaseAxionException
public void createSequence(Sequence seq)
throws AxionException
Database
createSequence in interface DatabasecreateSequence in class BaseDatabaseAxionException
public void defrag()
throws AxionException
AxionException
public int defragTable(java.lang.String tableName)
throws AxionException
AxionExceptionpublic java.io.File getDBDirectory()
Database
getDBDirectory in interface Databasepublic TableFactory getTableFactory(java.lang.String name)
DatabaseTableFactorycurrently registered for the given name, or
null.
getTableFactory in interface DatabasegetTableFactory in class BaseDatabase
public void migrate(int version)
throws AxionException
BaseDatabase
migrate in interface Databasemigrate in class BaseDatabaseAxionException
public void remount(java.io.File newdir)
throws AxionException
Database
remount in interface Databaseremount in class BaseDatabaseAxionException
public void shutdown()
throws AxionException
Database
shutdown in interface Databaseshutdown in class BaseDatabaseAxionExceptionprotected Table createSystemTable(java.lang.String name)
createSystemTable in class BaseDatabase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||