Class TableMetaDataImpl
- java.lang.Object
-
- de.akquinet.jbosscc.guttenbase.meta.impl.TableMetaDataImpl
-
- All Implemented Interfaces:
InternalTableMetaData
,TableMetaData
,Serializable
,Comparable<TableMetaData>
public class TableMetaDataImpl extends Object implements InternalTableMetaData
Information about a table.© 2012-2034 akquinet tech@spree
- Author:
- M. Dahm
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TableMetaDataImpl(String tableName, DatabaseMetaData databaseMetaData, String tableType)
-
Method Summary
-
-
-
Constructor Detail
-
TableMetaDataImpl
public TableMetaDataImpl(String tableName, DatabaseMetaData databaseMetaData, String tableType)
-
-
Method Detail
-
getFilteredRowCount
public int getFilteredRowCount()
- Specified by:
getFilteredRowCount
in interfaceTableMetaData
-
setFilteredRowCount
public void setFilteredRowCount(int filteredRowCount)
- Specified by:
setFilteredRowCount
in interfaceInternalTableMetaData
-
getTotalRowCount
public int getTotalRowCount()
- Specified by:
getTotalRowCount
in interfaceTableMetaData
-
setTotalRowCount
public void setTotalRowCount(int rowCount)
- Specified by:
setTotalRowCount
in interfaceInternalTableMetaData
-
getColumnMetaData
public List<ColumnMetaData> getColumnMetaData()
- Specified by:
getColumnMetaData
in interfaceTableMetaData
-
getColumnMetaData
public ColumnMetaData getColumnMetaData(String columnName)
- Specified by:
getColumnMetaData
in interfaceTableMetaData
-
addColumn
public void addColumn(ColumnMetaData columnMetaData)
- Specified by:
addColumn
in interfaceInternalTableMetaData
-
removeColumn
public void removeColumn(ColumnMetaData columnMetaData)
- Specified by:
removeColumn
in interfaceInternalTableMetaData
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interfaceTableMetaData
-
getIndexMetaData
public IndexMetaData getIndexMetaData(String indexName)
- Specified by:
getIndexMetaData
in interfaceTableMetaData
-
getIndexes
public List<IndexMetaData> getIndexes()
- Specified by:
getIndexes
in interfaceTableMetaData
-
addIndex
public void addIndex(IndexMetaData indexMetaData)
- Specified by:
addIndex
in interfaceInternalTableMetaData
-
getExportedForeignKeys
public List<ForeignKeyMetaData> getExportedForeignKeys()
- Specified by:
getExportedForeignKeys
in interfaceTableMetaData
-
addExportedForeignKey
public void addExportedForeignKey(ForeignKeyMetaData fkMetaData)
- Specified by:
addExportedForeignKey
in interfaceInternalTableMetaData
-
getExportedForeignKey
public ForeignKeyMetaData getExportedForeignKey(String foreignKeyname)
- Specified by:
getExportedForeignKey
in interfaceInternalTableMetaData
-
getImportedForeignKey
public ForeignKeyMetaData getImportedForeignKey(String foreignKeyname)
- Specified by:
getImportedForeignKey
in interfaceInternalTableMetaData
-
getImportedForeignKeys
public List<ForeignKeyMetaData> getImportedForeignKeys()
- Specified by:
getImportedForeignKeys
in interfaceTableMetaData
-
addImportedForeignKey
public void addImportedForeignKey(ForeignKeyMetaData fkMetaData)
- Specified by:
addImportedForeignKey
in interfaceInternalTableMetaData
-
getPrimaryKeyColumns
public List<ColumnMetaData> getPrimaryKeyColumns()
- Specified by:
getPrimaryKeyColumns
in interfaceTableMetaData
-
getIndexesContainingColumn
public List<IndexMetaData> getIndexesContainingColumn(ColumnMetaData columnMetaData)
- Specified by:
getIndexesContainingColumn
in interfaceTableMetaData
-
getTableName
public String getTableName()
- Specified by:
getTableName
in interfaceTableMetaData
-
getTableType
public String getTableType()
- Specified by:
getTableType
in interfaceTableMetaData
- Returns:
- type such as "TABLE" or "VIEW"
-
getDatabaseMetaData
public DatabaseMetaData getDatabaseMetaData()
- Specified by:
getDatabaseMetaData
in interfaceTableMetaData
- Returns:
- containing data base
-
compareTo
public int compareTo(TableMetaData that)
- Specified by:
compareTo
in interfaceComparable<TableMetaData>
-
-