Package com.mckoi.database
Interface InternalTableInfo
-
- All Known Implementing Classes:
AbstractInternalTableInfo
,AbstractInternalTableInfo2
,ConnectionTriggerManager.TriggerInternalTableInfo
,DatabaseConnection.ConnectionInternalTableInfo
,DatabaseConnection.OldAndNewInternalTableInfo
,ProcedureManager.ProcedureInternalTableInfo
,SequenceManager.SequenceInternalTableInfo
,Transaction.TransactionInternalTables
,ViewManager.ViewInternalTableInfo
interface InternalTableInfo
A class that acts as a container for any system tables that are generated from information inside the database engine. For example, the database statistics table is an internal system table, as well as the table that describes all database table information, etc.This object acts as a container and factory for generating such tables.
Note that implementations of this object should be thread-safe and immutable so we can create static global implementations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
containsTableName(TableName name)
Returns true if this container contains a table with the given name.MutableTableDataSource
createInternalTable(int index)
This is the factory method for generating the internal table for the given table in this container.int
findTableName(TableName name)
Finds the index in this container of the given table name, otherwise returns -1.DataTableDef
getDataTableDef(int i)
Returns the DataTableDef object that describes the table at the given index in this container.int
getTableCount()
Returns the number of internal table sources that this object is maintaining.TableName
getTableName(int i)
Returns the name of the table at the given index in this container.java.lang.String
getTableType(int i)
Returns a String that describes the type of the table at the given index.
-
-
-
Method Detail
-
getTableCount
int getTableCount()
Returns the number of internal table sources that this object is maintaining.
-
findTableName
int findTableName(TableName name)
Finds the index in this container of the given table name, otherwise returns -1.
-
getTableName
TableName getTableName(int i)
Returns the name of the table at the given index in this container.
-
getDataTableDef
DataTableDef getDataTableDef(int i)
Returns the DataTableDef object that describes the table at the given index in this container.
-
containsTableName
boolean containsTableName(TableName name)
Returns true if this container contains a table with the given name.
-
getTableType
java.lang.String getTableType(int i)
Returns a String that describes the type of the table at the given index.
-
createInternalTable
MutableTableDataSource createInternalTable(int index)
This is the factory method for generating the internal table for the given table in this container. This should return an implementation of MutableTableDataSource that is used to represent the internal data being modelled.This method is allowed to throw an exception for table objects that aren't backed by a MutableTableDataSource, such as a view.
-
-