public class Database extends Object
| コンストラクタと説明 |
|---|
Database(Config config,
Connection connection,
DatabaseMetaData meta,
String name,
String schema,
Properties properties,
SchemaMeta schemaMeta) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Table |
addRemoteTable(String remoteSchema,
String remoteTableName,
String baseSchema,
Properties properties,
Pattern excludeIndirectColumns,
Pattern excludeColumns) |
Connection |
getConnection() |
String |
getConnectTime() |
String |
getDatabaseProduct() |
String |
getDescription()
Details of the database type that's running under the covers.
|
DatabaseMetaData |
getMetaData() |
String |
getName() |
String |
getOptionalString(ResultSet rs,
String columnName)
Some databases don't play nice with their metadata.
|
String |
getQuotedIdentifier(String id)
Return
id quoted if required, otherwise return id |
Collection<Table> |
getRemoteTables() |
String |
getSchema() |
Set<String> |
getSqlKeywords()
Return an uppercased
Set of all SQL keywords used by a database |
Collection<Table> |
getTables() |
Map<String,Table> |
getTablesByName()
|
Collection<View> |
getViews() |
PreparedStatement |
prepareStatement(String sql,
String tableName)
Create a
PreparedStatement from the specified SQL. |
public Database(Config config, Connection connection, DatabaseMetaData meta, String name, String schema, Properties properties, SchemaMeta schemaMeta) throws SQLException, MissingResourceException
public String getName()
public String getSchema()
public String getDescription()
public Collection<Table> getTables()
public Collection<View> getViews()
public Collection<Table> getRemoteTables()
public Connection getConnection()
public DatabaseMetaData getMetaData()
public String getConnectTime()
public String getDatabaseProduct()
public String getOptionalString(ResultSet rs, String columnName)
public PreparedStatement prepareStatement(String sql, String tableName) throws SQLException
PreparedStatement from the specified SQL.
The SQL can contain these named parameters (but not question marks).
sql - String - SQL without question markstableName - String - null if the statement doesn't deal with Table-level details.SQLExceptionpublic Table addRemoteTable(String remoteSchema, String remoteTableName, String baseSchema, Properties properties, Pattern excludeIndirectColumns, Pattern excludeColumns) throws SQLException
SQLExceptionpublic Set<String> getSqlKeywords() throws SQLException
Set of all SQL keywords used by a databaseSQLExceptionpublic String getQuotedIdentifier(String id) throws SQLException
id quoted if required, otherwise return idid - SQLExceptionCopyright © 2016. All Rights Reserved.