|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Database
An Axion database.
Field Summary | |
---|---|
static String |
COMMIT_SIZE
|
Method Summary | |
---|---|
void |
addDatabaseModificationListener(DatabaseModificationListener l)
Adds a listener to receive events on this database |
void |
addIndex(Index index,
Table table)
Add the given Index to this database, associated with the given table. |
void |
addIndex(Index index,
Table table,
boolean doPopulate)
Add the given Index to this database, associating it with the given table
and (optionally) populating it. |
void |
addTable(Table table)
Add the given Table to this database. |
boolean |
canResolveSelectable(Selectable selectable,
TableIdentifier[] tables)
|
void |
checkpoint()
Make sure any modified state or data has been written to disk. |
void |
createDatabaseLink(DatabaseLink dblink)
|
void |
createSequence(Sequence seq)
Create a numeric sequence |
void |
dropDatabaseLink(String name)
|
void |
dropIndex(String name)
Drop the given Index from this database. |
void |
dropSequence(String name)
Drop the specified Sequence from this database. |
void |
dropTable(String name)
Drop the specified Table from this database. |
DatabaseLink |
getDatabaseLink(String name)
|
List |
getDatabaseModificationListeners()
Returns all listeners set to receive events on this database |
DataType |
getDataType(String name)
Get the DataType currently registered for the given name, or null. |
File |
getDBDirectory()
Get the directory into which table information is stored, or null. |
Object |
getGlobalVariable(String key)
|
IndexFactory |
getIndexFactory(String name)
Get the IndexFactory currently registered for the given name, or
null. |
String |
getName()
Returns the name of this Database . |
Sequence |
getSequence(String name)
Get the specified Sequence , or null if no such sequence can be
found. |
Table |
getTable(String name)
Get the specified Table , or null if no such table can be found. |
Table |
getTable(TableIdentifier table)
Get the specified Table , or null if no such table can be found. |
TableFactory |
getTableFactory(String name)
Get the TableFactory currently registered for the given name, or
null. |
TransactionManager |
getTransactionManager()
Get the TransactionManager for this database. |
boolean |
hasDatabaseLink(String name)
|
boolean |
hasIndex(String name)
Returns true iff the given Index exists. |
boolean |
hasSequence(String name)
|
boolean |
hasTable(String name)
|
boolean |
hasTable(TableIdentifier table)
|
boolean |
isReadOnly()
Is this database read-only? |
void |
remount(File newdir)
Notify this database that its root directory has been moved to the given location. |
void |
renameTable(String oldName,
String newName)
|
void |
resolveFromNode(FromNode from,
List aliasList)
|
Selectable |
resolveSelectable(Selectable selectable,
List aliasList,
TableIdentifier[] tables)
|
Selectable |
resolveSelectable(Selectable selectable,
TableIdentifier[] tables)
"Resolve" the given Selectable relative to the given list of
tables , converting aliased or relative references into
absolute ones. |
void |
shutdown()
Close this database and free any resources associated with it. |
void |
tableAltered(Table t)
Update metadata tables since this table has changed. |
Field Detail |
---|
static final String COMMIT_SIZE
Method Detail |
---|
void addDatabaseModificationListener(DatabaseModificationListener l)
void addIndex(Index index, Table table) throws AxionException
Index
to this database, associated with the given table.
AxionException
void addIndex(Index index, Table table, boolean doPopulate) throws AxionException
Index
to this database, associating it with the given table
and (optionally) populating it.
index
- Index to be added and (optionally) populatedtable
- Table to be indexeddoPopulate
- true if index
should be populated by the
appropriate column in table
; false if index
should be left as-is.
AxionException
- if error occurs during addition and/or population of
index
void addTable(Table table) throws AxionException
Table
to this database.
AxionException
boolean canResolveSelectable(Selectable selectable, TableIdentifier[] tables)
void checkpoint() throws AxionException
AxionException
void createDatabaseLink(DatabaseLink dblink) throws AxionException
AxionException
void createSequence(Sequence seq) throws AxionException
AxionException
void dropDatabaseLink(String name) throws AxionException
AxionException
void dropIndex(String name) throws AxionException
Index
from this database.
AxionException
void dropSequence(String name) throws AxionException
Sequence
from this database.
Sequence name matching is case-insensitive.
AxionException
void dropTable(String name) throws AxionException
Table
from this database.
Table name matching is case-insensitive.
AxionException
List getDatabaseModificationListeners()
DataType getDataType(String name)
DataType
currently registered for the given name, or null.
File getDBDirectory()
DatabaseLink getDatabaseLink(String name)
Object getGlobalVariable(String key)
IndexFactory getIndexFactory(String name)
IndexFactory
currently registered for the given name, or
null.
String getName()
Database
.
Sequence getSequence(String name)
Sequence
, or null if no such sequence can be
found.
Sequence name matching is case-insensitive.
Table getTable(String name) throws AxionException
Table
, or null if no such table can be found.
Table name matching is case-insensitive.
AxionException
Table getTable(TableIdentifier table) throws AxionException
Table
, or null if no such table can be found.
Table name matching is case-insensitive.
AxionException
TableFactory getTableFactory(String name)
TableFactory
currently registered for the given name, or
null.
TransactionManager getTransactionManager()
TransactionManager
for this database.
boolean hasDatabaseLink(String name) throws AxionException
AxionException
boolean hasIndex(String name) throws AxionException
true
iff the given Index
exists.
AxionException
boolean hasSequence(String name) throws AxionException
AxionException
boolean hasTable(String name) throws AxionException
AxionException
boolean hasTable(TableIdentifier table) throws AxionException
AxionException
boolean isReadOnly()
void remount(File newdir) throws AxionException
AxionException
void renameTable(String oldName, String newName) throws AxionException
AxionException
void resolveFromNode(FromNode from, List aliasList) throws AxionException
AxionException
Selectable resolveSelectable(Selectable selectable, List aliasList, TableIdentifier[] tables) throws AxionException
AxionException
Selectable resolveSelectable(Selectable selectable, TableIdentifier[] tables) throws AxionException
Selectable
relative to the given list of
tables
, converting aliased or relative references into
absolute ones.
AxionException
void shutdown() throws AxionException
AxionException
void tableAltered(Table t) throws AxionException
AxionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |