public abstract class AbstractFinalConnection extends AbstractFinalCommonHandler
| 限定符和类型 | 字段和说明 |
|---|---|
protected DataSource |
dataSource |
protected SqlConfig |
sqlConfig |
protected SqlGenerate |
sqlGenerate |
IS_START, PAGE_INFO_THREAD_LOCAL| 构造器和说明 |
|---|
AbstractFinalConnection(SqlConfig sqlConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
applyStatementSettings(PreparedStatement statement) |
protected void |
begin() |
protected void |
close(AutoCloseable closeable) |
protected void |
commit() |
protected Connection |
getConnection() |
protected DataSource |
getDataSource() |
protected PreparedStatement |
getPreparedStatement(Connection connection,
String sql) |
protected PreparedStatement |
getPreparedStatement(Connection connection,
String sql,
List param) |
protected PreparedStatement |
getPreparedStatement(Connection connection,
String sql,
Object... param) |
protected PreparedStatement |
getPreparedStatementInsert(Connection connection,
String sql,
List param) |
protected void |
ignoreTransactionClose(AutoCloseable closeable) |
protected boolean |
isOpenTransaction() |
protected void |
rollback() |
protected void |
setParamValue(PreparedStatement statement,
List list) |
protected void |
setParamValue(PreparedStatement statement,
Object... param) |
getPageInfo, startPageprotected DataSource dataSource
protected SqlGenerate sqlGenerate
protected final SqlConfig sqlConfig
public AbstractFinalConnection(SqlConfig sqlConfig)
protected DataSource getDataSource()
protected Connection getConnection()
protected void begin()
protected void commit()
protected void rollback()
protected boolean isOpenTransaction()
protected void ignoreTransactionClose(AutoCloseable closeable)
protected void close(AutoCloseable closeable)
protected PreparedStatement getPreparedStatement(Connection connection, String sql) throws SQLException
SQLExceptionprotected PreparedStatement getPreparedStatement(Connection connection, String sql, Object... param) throws SQLException
SQLExceptionprotected PreparedStatement getPreparedStatement(Connection connection, String sql, List param) throws SQLException
SQLExceptionprotected PreparedStatement getPreparedStatementInsert(Connection connection, String sql, List param) throws SQLException
SQLExceptionprotected void setParamValue(PreparedStatement statement, List list) throws SQLException
SQLExceptionprotected void setParamValue(PreparedStatement statement, Object... param) throws SQLException
SQLExceptionprotected void applyStatementSettings(PreparedStatement statement) throws SQLException
SQLExceptionCopyright © 2022 lingkang. All rights reserved.