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
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidRead all procedures in the database.voidreadTables(DatabaseMetaData meta, String[] tableTypes) Read all tables for this schema from the database meta data.
-
Field Details
-
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.
-
-
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
-
readProcedures
Read all procedures in the database.- Parameters:
meta- the database meta data- Throws:
SQLException- Error while fetching procedures
-