Package com.mckoi.database
Class SequenceManager.SequenceInternalTableInfo
- java.lang.Object
-
- com.mckoi.database.SequenceManager.SequenceInternalTableInfo
-
- All Implemented Interfaces:
InternalTableInfo
- Enclosing class:
- SequenceManager
private static class SequenceManager.SequenceInternalTableInfo extends java.lang.Object implements InternalTableInfo
An object that models the list of sequences as table objects in a transaction.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Transactiontransaction
-
Constructor Summary
Constructors Constructor Description SequenceInternalTableInfo(Transaction transaction)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsTableName(TableName name)Returns true if this container contains a table with the given name.private static DataTableDefcreateDataTableDef(java.lang.String schema, java.lang.String name)MutableTableDataSourcecreateInternalTable(int index)This is the factory method for generating the internal table for the given table in this container.intfindTableName(TableName name)Finds the index in this container of the given table name, otherwise returns -1.DataTableDefgetDataTableDef(int i)Returns the DataTableDef object that describes the table at the given index in this container.intgetTableCount()Returns the number of internal table sources that this object is maintaining.TableNamegetTableName(int i)Returns the name of the table at the given index in this container.java.lang.StringgetTableType(int i)Returns a String that describes the type of the table at the given index.
-
-
-
Field Detail
-
transaction
Transaction transaction
-
-
Constructor Detail
-
SequenceInternalTableInfo
SequenceInternalTableInfo(Transaction transaction)
-
-
Method Detail
-
createDataTableDef
private static DataTableDef createDataTableDef(java.lang.String schema, java.lang.String name)
-
getTableCount
public int getTableCount()
Description copied from interface:InternalTableInfoReturns the number of internal table sources that this object is maintaining.- Specified by:
getTableCountin interfaceInternalTableInfo
-
findTableName
public int findTableName(TableName name)
Description copied from interface:InternalTableInfoFinds the index in this container of the given table name, otherwise returns -1.- Specified by:
findTableNamein interfaceInternalTableInfo
-
getTableName
public TableName getTableName(int i)
Description copied from interface:InternalTableInfoReturns the name of the table at the given index in this container.- Specified by:
getTableNamein interfaceInternalTableInfo
-
containsTableName
public boolean containsTableName(TableName name)
Description copied from interface:InternalTableInfoReturns true if this container contains a table with the given name.- Specified by:
containsTableNamein interfaceInternalTableInfo
-
getTableType
public java.lang.String getTableType(int i)
Description copied from interface:InternalTableInfoReturns a String that describes the type of the table at the given index.- Specified by:
getTableTypein interfaceInternalTableInfo
-
getDataTableDef
public DataTableDef getDataTableDef(int i)
Description copied from interface:InternalTableInfoReturns the DataTableDef object that describes the table at the given index in this container.- Specified by:
getDataTableDefin interfaceInternalTableInfo
-
createInternalTable
public MutableTableDataSource createInternalTable(int index)
Description copied from interface:InternalTableInfoThis 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.
- Specified by:
createInternalTablein interfaceInternalTableInfo
-
-