|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.bnf.context.DbContents
public class DbContents
Keeps meta data information about a database. This class is used by the H2 Console.
| Constructor Summary | |
|---|---|
DbContents()
|
|
| Method Summary | |
|---|---|
static int |
findColumn(java.sql.ResultSet rs,
java.lang.String columnName,
int defaultColumnIndex)
Get the column index of a column in a result set. |
DbSchema |
getDefaultSchema()
|
DbSchema[] |
getSchemas()
|
boolean |
isDerby()
|
boolean |
isFirebird()
|
boolean |
isH2()
|
boolean |
isH2ModeMySQL()
|
boolean |
isMSSQLServer()
|
boolean |
isMySQL()
|
boolean |
isOracle()
|
boolean |
isPostgreSQL()
|
boolean |
isSQLite()
|
java.lang.String |
quoteIdentifier(java.lang.String identifier)
Add double quotes around an identifier if required. |
void |
readContents(java.sql.DatabaseMetaData meta)
Read the contents of this database from the database meta data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbContents()
| Method Detail |
|---|
public DbSchema getDefaultSchema()
public boolean isDerby()
public boolean isFirebird()
public boolean isH2()
public boolean isH2ModeMySQL()
public boolean isMSSQLServer()
public boolean isMySQL()
public boolean isOracle()
public boolean isPostgreSQL()
public boolean isSQLite()
public DbSchema[] getSchemas()
public static int findColumn(java.sql.ResultSet rs,
java.lang.String columnName,
int defaultColumnIndex)
rs - the result setcolumnName - the column namedefaultColumnIndex - the default column index
public void readContents(java.sql.DatabaseMetaData meta)
throws java.sql.SQLException
meta - the database meta data
java.sql.SQLExceptionpublic java.lang.String quoteIdentifier(java.lang.String identifier)
identifier - the identifier
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||