org.axiondb.engine

Class BaseDatabase

public abstract class BaseDatabase extends Object implements Database

Abstract base Databaseimplementation.

Version: $Revision: 1.97 $ $Date: 2007/11/13 19:04:02 $

Author: Chuck Burdick Rodney Waldhoff Morgan Delagrange James Strachan Amrish Lal Rahul Dwivedi Dave Pekarek Krohn Ahimanikya Satapathy

Field Summary
static StringSYSTABLE_DB_LINKS
static StringSYSTABLE_INDEX_INFO
Constructor Summary
BaseDatabase(String name)
Method Summary
voidaddDatabaseModificationListener(DatabaseModificationListener l)
voidaddIndex(Index index, Table table)
voidaddIndex(Index index, Table table, boolean doPopulate)
voidaddTable(Table t)
voidcheckpoint()
voidcreateDatabaseLink(DatabaseLink dblink)
protected voidcreateMetaDataTables()
Should get called by subclasses in constructors
voidcreateSequence(Sequence seq)
protected abstract TablecreateSystemTable(String name)
voiddropDatabaseLink(String name)
voiddropDependentExternalDBTable(List tables)
voiddropDependentViews(List views)
voiddropIndex(String name)
voiddropSequence(String name)
voiddropTable(String name)
protected static PropertiesgetBaseProperties()
Callers should treat the returned Properties as immutable.
DatabaseLinkgetDatabaseLink(String name)
ListgetDatabaseModificationListeners()
DataTypegetDataType(String name)
ListgetDependentExternalDBTable(String name)
ListgetDependentViews(String tableName)
ConcreteFunctiongetFunction(String name)
ObjectgetGlobalVariable(String key)
IndexFactorygetIndexFactory(String name)
StringgetName()
SequencegetSequence(String name)
protected intgetSequenceCount()
protected Iterator<Sequence>getSequences()
TablegetTable(String name)
TablegetTable(TableIdentifier table)
TableFactorygetTableFactory(String name)
protected Iterator<Table>getTables()
TransactionManagergetTransactionManager()
booleanhasDatabaseLink(String name)
booleanhasIndex(String name)
booleanhasSequence(String name)
booleanhasTable(String name)
booleanhasTable(TableIdentifier id)
booleanisReadOnly()
protected voidloadProperties(Properties props)
voidmigrate(int version)
Migrate from older version to newer version for this database
voidremount(File newdir)
voidremoveDatabaseModificationListener(DatabaseModificationListener l)
voidrenameTable(String oldName, String newName)
SelectableresolveSelectSelectable(SubSelectCommand select, TableIdentifier[] tables)
voidshutdown()
voidtableAltered(Table t)

Field Detail

SYSTABLE_DB_LINKS

public static final String SYSTABLE_DB_LINKS

SYSTABLE_INDEX_INFO

public static final String SYSTABLE_INDEX_INFO

Constructor Detail

BaseDatabase

public BaseDatabase(String name)

Method Detail

addDatabaseModificationListener

public void addDatabaseModificationListener(DatabaseModificationListener l)

addIndex

public void addIndex(Index index, Table table)

addIndex

public void addIndex(Index index, Table table, boolean doPopulate)

addTable

public void addTable(Table t)

checkpoint

public void checkpoint()

createDatabaseLink

public void createDatabaseLink(DatabaseLink dblink)

createMetaDataTables

protected void createMetaDataTables()
Should get called by subclasses in constructors

createSequence

public void createSequence(Sequence seq)

createSystemTable

protected abstract Table createSystemTable(String name)

dropDatabaseLink

public void dropDatabaseLink(String name)

dropDependentExternalDBTable

public void dropDependentExternalDBTable(List tables)

dropDependentViews

public void dropDependentViews(List views)

dropIndex

public void dropIndex(String name)

dropSequence

public void dropSequence(String name)

dropTable

public void dropTable(String name)

getBaseProperties

protected static Properties getBaseProperties()
Callers should treat the returned Properties as immutable.

getDatabaseLink

public DatabaseLink getDatabaseLink(String name)

getDatabaseModificationListeners

public List getDatabaseModificationListeners()

getDataType

public DataType getDataType(String name)

getDependentExternalDBTable

public List getDependentExternalDBTable(String name)

getDependentViews

public List getDependentViews(String tableName)

getFunction

public ConcreteFunction getFunction(String name)

getGlobalVariable

public Object getGlobalVariable(String key)

getIndexFactory

public IndexFactory getIndexFactory(String name)

getName

public String getName()

getSequence

public Sequence getSequence(String name)

getSequenceCount

protected int getSequenceCount()

getSequences

protected Iterator<Sequence> getSequences()

getTable

public Table getTable(String name)

getTable

public Table getTable(TableIdentifier table)

getTableFactory

public TableFactory getTableFactory(String name)

getTables

protected Iterator<Table> getTables()

getTransactionManager

public TransactionManager getTransactionManager()

hasDatabaseLink

public boolean hasDatabaseLink(String name)

hasIndex

public boolean hasIndex(String name)

hasSequence

public boolean hasSequence(String name)

hasTable

public boolean hasTable(String name)

hasTable

public boolean hasTable(TableIdentifier id)

isReadOnly

public boolean isReadOnly()

loadProperties

protected void loadProperties(Properties props)

migrate

public void migrate(int version)
Migrate from older version to newer version for this database

remount

public void remount(File newdir)

removeDatabaseModificationListener

public void removeDatabaseModificationListener(DatabaseModificationListener l)

renameTable

public void renameTable(String oldName, String newName)

resolveSelectSelectable

public Selectable resolveSelectSelectable(SubSelectCommand select, TableIdentifier[] tables)

shutdown

public void shutdown()

tableAltered

public void tableAltered(Table t)