public class DbContents extends Object
Constructor and Description |
---|
DbContents() |
Modifier and Type | Method and Description |
---|---|
DbSchema |
getDefaultSchema() |
DbSchema[] |
getSchemas() |
boolean |
isDB2() |
boolean |
isDerby() |
boolean |
isFirebird() |
boolean |
isH2() |
boolean |
isH2ModeMySQL() |
boolean |
isMSSQLServer() |
boolean |
isMySQL() |
boolean |
isOracle() |
boolean |
isPostgreSQL() |
boolean |
isSQLite() |
String |
quoteIdentifier(String identifier)
Add double quotes around an identifier if required.
|
void |
readContents(String url,
Connection conn)
Read the contents of this database from the database meta data.
|
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 boolean isDB2()
public DbSchema[] getSchemas()
public void readContents(String url, Connection conn) throws SQLException
url
- the database URLconn
- the connectionSQLException
Copyright © 2020 JBoss by Red Hat. All rights reserved.