- java.lang.Object
-
- org.tentackle.sql.metadata.DatabaseMetaDataTableHeader
-
public class DatabaseMetaDataTableHeader extends Object
Describes the table name and some major properties for am existing database table.
-
-
Constructor Summary
Constructors Constructor Description DatabaseMetaDataTableHeader(DatabaseMetaData metaData, String catalog, String schema, String name, String type, String comment)Creates a table header.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCatalog()The optional catalog.StringgetComment()The optional comment.DatabaseMetaDatagetMetaData()Gets the metadata root object this table header was retrieved from.StringgetName()StringgetSchema()The optional schema.StringgetType()The table's name.booleanisReserved()Returns whether this is a reserved table.booleanisUserTable()Returns whether this is a user-defined table.StringtoString()
-
-
-
Constructor Detail
-
DatabaseMetaDataTableHeader
public DatabaseMetaDataTableHeader(DatabaseMetaData metaData, String catalog, String schema, String name, String type, String comment)
Creates a table header.- Parameters:
metaData- the database metadata root objectcatalog- the catalog nameschema- the schema namename- the table nametype- the table typecomment- the table remarks
-
-
Method Detail
-
isUserTable
public boolean isUserTable()
Returns whether this is a user-defined table.- Returns:
- true if standard table
-
isReserved
public boolean isReserved()
Returns whether this is a reserved table.- Returns:
- true if reserved table
-
getMetaData
public DatabaseMetaData getMetaData()
Gets the metadata root object this table header was retrieved from.- Returns:
- the metadata, never null
-
getCatalog
public String getCatalog()
The optional catalog.- Returns:
- the catalog, may be null
-
getSchema
public String getSchema()
The optional schema.- Returns:
- the schema, may be null
-
getName
public String getName()
-
getType
public String getType()
The table's name.- Returns:
- the tablename, never null
-
getComment
public String getComment()
The optional comment.- Returns:
- the comment, may be null
-
-