public class DbContents
extends java.lang.Object
| Constructor and Description |
|---|
DbContents() |
| Modifier and Type | Method and Description |
|---|---|
DbSchema |
getDefaultSchema() |
DbSchema[] |
getSchemas() |
boolean |
isDB2() |
boolean |
isDerby() |
boolean |
isFirebird() |
boolean |
isH2() |
boolean |
isMSSQLServer() |
boolean |
isMySQL() |
boolean |
isOracle() |
boolean |
isPostgreSQL() |
boolean |
isSQLite() |
boolean |
mayHaveStandardViews()
Returns whether standard INFORMATION_SCHEMA.VIEWS may be supported.
|
java.lang.String |
quoteIdentifier(java.lang.String identifier)
Add double quotes around an identifier if required.
|
void |
readContents(java.lang.String url,
java.sql.Connection conn)
Read the contents of this database from the database meta data.
|
void |
setMayHaveStandardViews(boolean mayHaveStandardViews) |
public DbSchema getDefaultSchema()
public boolean isDerby()
public boolean isFirebird()
public boolean isH2()
public boolean isMSSQLServer()
public boolean isMySQL()
public boolean isOracle()
public boolean isPostgreSQL()
public boolean isSQLite()
public boolean isDB2()
public DbSchema[] getSchemas()
public boolean mayHaveStandardViews()
public void setMayHaveStandardViews(boolean mayHaveStandardViews)
mayHaveStandardViews - whether standard INFORMATION_SCHEMA.VIEWS is detected as
supportedpublic void readContents(java.lang.String url,
java.sql.Connection conn)
throws java.sql.SQLException
url - the database URLconn - the connectionjava.sql.SQLException - on failurepublic java.lang.String quoteIdentifier(java.lang.String identifier)
identifier - the identifier