java.lang.Object
org.tentackle.sql.metadata.DatabaseMetaDataTableHeader
Describes the table name and some major properties for an existing database table.
-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseMetaDataTableHeader(DatabaseMetaData metaData, String catalog, String schema, String name, String type, String comment) Creates a table header. -
Method Summary
Modifier and TypeMethodDescriptionThe optional catalog.The optional comment.Gets the metadata root object this table header was retrieved from.getName()The optional schema.getType()The table's name.booleanReturns whether this is a reserved table.booleanReturns whether this is a user-defined table.toString()
-
Constructor Details
-
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 Details
-
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
Gets the metadata root object this table header was retrieved from.- Returns:
- the metadata, never null
-
getCatalog
The optional catalog.- Returns:
- the catalog, may be null
-
getSchema
The optional schema.- Returns:
- the schema, may be null
-
getName
-
getType
The table's name.- Returns:
- the tablename, never null
-
getComment
The optional comment.- Returns:
- the comment, may be null
-
toString
-