public abstract class AbstractDatabaseQuery extends Object implements DatabaseQuery
| 限定符和类型 | 字段和说明 |
|---|---|
protected Connection |
connection
Connection 双重锁,线程安全
|
| 构造器和说明 |
|---|
AbstractDatabaseQuery(DataSource dataSource) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
getCatalog()
获取 getCatalog
|
protected DatabaseMetaData |
getMetaData()
获取 DatabaseMetaData
|
List<? extends PrimaryKey> |
getPrimaryKeys()
根据表名获取主键
|
protected String |
getSchema()
获取 getSchema
|
protected PreparedStatement |
prepareStatement(String sql)
准备声明
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataBase, getPrimaryKeys, getTableColumns, getTableColumns, getTablesprotected volatile Connection connection
public AbstractDatabaseQuery(DataSource dataSource)
protected String getCatalog() throws QueryException
StringQueryException - QueryExceptionprotected String getSchema() throws QueryException
StringQueryException - QueryExceptionprotected DatabaseMetaData getMetaData() throws QueryException
DatabaseMetaDataQueryException - QueryExceptionprotected PreparedStatement prepareStatement(String sql) throws QueryException
sql - String SQLPreparedStatementQueryException - QueryExceptionpublic List<? extends PrimaryKey> getPrimaryKeys() throws QueryException
getPrimaryKeys 在接口中 DatabaseQueryListQueryException - QueryExceptionCopyright © 2020. All rights reserved.