Package com.healthmarketscience.jackcess
Interface TableMetaData
-
public interface TableMetaDataBasic metadata about a single database Table. This is the top-level information stored in a (local) database which can be retrieved without attempting to load the Table itself.- Author:
- James Ahlborn
- Usage:
- Intermediate: This class requires moderate API knowledge.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTableMetaData.Type
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetConnectionName()The connection of this the linked database if this is a linked ODBC table,nullotherwise.StringgetLinkedDbName()The name of this the linked database if this is a linked table,nullotherwise.StringgetLinkedTableName()The name of this linked table in the linked database if this is a linked table,nullotherwise.StringgetName()The name of the table (as it is stored in the database)TableDefinitiongetTableDefinition(Database db)Gets the local table definition from the given Database instance if available.TableMetaData.TypegetType()The type of tablebooleanisLinked()trueif this is a linked table,falseotherwise.booleanisSystem()trueif this is a system table,falseotherwise.Tableopen(Database db)Opens this table from the given Database instance.
-
-
-
Method Detail
-
getType
TableMetaData.Type getType()
The type of table
-
getName
String getName()
The name of the table (as it is stored in the database)
-
isLinked
boolean isLinked()
trueif this is a linked table,falseotherwise.
-
isSystem
boolean isSystem()
trueif this is a system table,falseotherwise.
-
getLinkedTableName
String getLinkedTableName()
The name of this linked table in the linked database if this is a linked table,nullotherwise.
-
getLinkedDbName
String getLinkedDbName()
The name of this the linked database if this is a linked table,nullotherwise.
-
getConnectionName
String getConnectionName()
The connection of this the linked database if this is a linked ODBC table,nullotherwise.
-
open
Table open(Database db) throws IOException
Opens this table from the given Database instance.- Throws:
IOException
-
getTableDefinition
TableDefinition getTableDefinition(Database db) throws IOException
Gets the local table definition from the given Database instance if available. Only useful for linked ODBC tables.- Throws:
IOException
-
-