Package org.h2.bnf.context
Class DbTableOrView
java.lang.Object
org.h2.bnf.context.DbTableOrView
Contains meta data information about a table or a view.
This class is used by the H2 Console.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDbColumn[]getName()booleanisView()voidreadColumns(DatabaseMetaData meta, PreparedStatement ps) Read the column for this table from the database meta data.
-
Constructor Details
-
DbTableOrView
- Throws:
SQLException
-
-
Method Details
-
getSchema
- Returns:
- The schema this table belongs to.
-
getColumns
- Returns:
- The column list.
-
getName
- Returns:
- The table name.
-
isView
public boolean isView()- Returns:
- True if this represents a view.
-
getQuotedName
- Returns:
- The quoted table name.
-
readColumns
Read the column for this table from the database meta data.- Parameters:
meta- the database meta dataps- prepared statement with custom query for H2 database, null for others- Throws:
SQLException- on failure
-