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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDbColumn[]
getName()
boolean
isView()
void
readColumns
(DatabaseMetaData meta, PreparedStatement ps) Read the column for this table from the database meta data.
-
Field Details
-
schema
The schema this table belongs to. -
name
The table name. -
quotedName
The quoted table name. -
isView
private final boolean isViewTrue if this represents a view. -
columns
The column list.
-
-
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
-