DbContents
Keeps meta data information about a database.
This class is used by the H2 Console.
| Methods |
| DbSchema |
getDefaultSchema()
|
| DbSchema |
getDefaultSchema()
Returns:
The default schema.
|
| DbSchema[] |
getSchemas()
|
| DbSchema[] |
getSchemas()
Returns:
The list of schemas.
|
| boolean |
isDB2()
|
| boolean |
isDB2()
Returns:
True if this is an IBM DB2 database.
|
| boolean |
isDerby()
|
| boolean |
isDerby()
Returns:
True if this is an Apache Derby database.
|
| boolean |
isFirebird()
|
| boolean |
isFirebird()
Returns:
True if this is a Firebird database.
|
| boolean |
isH2()
|
| boolean |
isH2()
Returns:
True if this is a H2 database.
|
| boolean |
isH2ModeMySQL()
|
| boolean |
isH2ModeMySQL()
Returns:
True if this is a H2 database in MySQL mode.
|
| boolean |
isMSSQLServer()
|
| boolean |
isMSSQLServer()
Returns:
True if this is a MS SQL Server database.
|
| boolean |
isMySQL()
|
| boolean |
isMySQL()
Returns:
True if this is a MySQL database.
|
| boolean |
isOracle()
|
| boolean |
isOracle()
Returns:
True if this is an Oracle database.
|
| boolean |
isPostgreSQL()
|
| boolean |
isPostgreSQL()
Returns:
True if this is a PostgreSQL database.
|
| boolean |
isSQLite()
|
| boolean |
isSQLite()
Returns:
True if this is an SQLite database.
|
| String |
quoteIdentifier(String identifier)
Add double quotes around an identifier if required.
|
| String |
quoteIdentifier(String identifier)
Add double quotes around an identifier if required.
For the H2 database, all identifiers are quoted.
Parameters:
identifier - the identifier
Returns:
the quoted identifier
|
| void |
readContents(String url, Connection conn)
Read the contents of this database from the database meta data.
|
| void |
readContents(String url, Connection conn) throws SQLException
Read the contents of this database from the database meta data.
Parameters:
url - the database URL
conn - the connection
|
|