Package org.h2.bnf.context
Class DbSchema
java.lang.Object
org.h2.bnf.context.DbSchema
Contains meta data information about a database schema.
This class is used by the H2 Console.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprivate final DbContentsThe database content container.final booleanTrue if this is the default schema for this database.final booleanTrue if this is a system schema (for example the INFORMATION_SCHEMA).final StringThe schema name.private DbProcedure[]The procedures list.final StringThe quoted schema name.private DbTableOrView[]The table list. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static PreparedStatementprepareColumnsQueryH2(Connection connection) voidRead all procedures in the database.voidreadTables(DatabaseMetaData meta, String[] tableTypes) Read all tables for this schema from the database meta data.
-
Field Details
-
COLUMNS_QUERY_H2_197
- See Also:
-
COLUMNS_QUERY_H2_202
- See Also:
-
name
The schema name. -
isDefault
public final boolean isDefaultTrue if this is the default schema for this database. -
isSystem
public final boolean isSystemTrue if this is a system schema (for example the INFORMATION_SCHEMA). -
quotedName
The quoted schema name. -
contents
The database content container. -
tables
The table list. -
procedures
The procedures list.
-
-
Constructor Details
-
DbSchema
DbSchema(DbContents contents, String name, boolean isDefault)
-
-
Method Details
-
getContents
- Returns:
- The database content container.
-
getTables
- Returns:
- The table list.
-
getProcedures
- Returns:
- The procedure list.
-
readTables
Read all tables for this schema from the database meta data.- Parameters:
meta- the database meta datatableTypes- the table types to read- Throws:
SQLException- on failure
-
prepareColumnsQueryH2
- Throws:
SQLException
-
readProcedures
Read all procedures in the database.- Parameters:
meta- the database meta data- Throws:
SQLException- Error while fetching procedures
-