Package com.mckoi.database
Class ViewManager.ViewInternalTableInfo
- java.lang.Object
-
- com.mckoi.database.AbstractInternalTableInfo2
-
- com.mckoi.database.ViewManager.ViewInternalTableInfo
-
- All Implemented Interfaces:
InternalTableInfo
- Enclosing class:
- ViewManager
private static class ViewManager.ViewInternalTableInfo extends AbstractInternalTableInfo2
An object that models the list of views as table objects in a transaction.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.HashMap
view_cache
(package private) ViewManager
view_manager
-
Fields inherited from class com.mckoi.database.AbstractInternalTableInfo2
table_name, transaction
-
-
Constructor Summary
Constructors Constructor Description ViewInternalTableInfo(ViewManager manager, Transaction transaction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableTableDataSource
createInternalTable(int i)
This is the factory method for generating the internal table for the given table in this container.DataTableDef
getDataTableDef(int i)
Returns the DataTableDef object that describes 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.-
Methods inherited from class com.mckoi.database.AbstractInternalTableInfo2
containsTableName, findTableName, getTableCount, getTableName
-
-
-
-
Field Detail
-
view_manager
ViewManager view_manager
-
view_cache
java.util.HashMap view_cache
-
-
Constructor Detail
-
ViewInternalTableInfo
ViewInternalTableInfo(ViewManager manager, Transaction transaction)
-
-
Method Detail
-
getTableType
public java.lang.String getTableType(int i)
Description copied from interface:InternalTableInfo
Returns a String that describes the type of the table at the given index.- Specified by:
getTableType
in interfaceInternalTableInfo
- Specified by:
getTableType
in classAbstractInternalTableInfo2
-
getDataTableDef
public DataTableDef getDataTableDef(int i)
Description copied from interface:InternalTableInfo
Returns the DataTableDef object that describes the table at the given index in this container.- Specified by:
getDataTableDef
in interfaceInternalTableInfo
- Specified by:
getDataTableDef
in classAbstractInternalTableInfo2
-
createInternalTable
public MutableTableDataSource createInternalTable(int i)
Description copied from interface:InternalTableInfo
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.
- Specified by:
createInternalTable
in interfaceInternalTableInfo
- Specified by:
createInternalTable
in classAbstractInternalTableInfo2
-
-