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 String
private static final String
private final DbContents
The database content container.final boolean
True if this is the default schema for this database.final boolean
True if this is a system schema (for example the INFORMATION_SCHEMA).final String
The schema name.private DbProcedure[]
The procedures list.final String
The quoted schema name.private DbTableOrView[]
The table list. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static PreparedStatement
prepareColumnsQueryH2
(Connection connection) void
Read all procedures in the database.void
readTables
(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
-