- java.lang.Object
-
- org.redkale.source.DataJdbcConnection
-
- org.redkale.source.DataJdbcSource.JdbcConnection
-
- 所有已实现的接口:
AutoCloseable
- 封闭类:
- DataJdbcSource
protected class DataJdbcSource.JdbcConnection extends DataJdbcConnection implements AutoCloseable
-
-
字段概要
字段 修饰符和类型 字段 说明 Connection
conn
int
version
-
构造器概要
构造器 构造器 说明 JdbcConnection(Connection conn, boolean readFlag, int version)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
close()
void
commit()
Blob
createBlob()
Statement
createQueryStatement()
Statement
createStreamStatement()
Statement
createUpdateStatement()
Connection
getConnection()
DatabaseMetaData
getMetaData()
void
offerQueryStatement(PreparedStatement stmt)
void
offerQueryStatement(Statement stmt)
void
offerStreamStatement(Statement stmt)
void
offerUpdateStatement(PreparedStatement stmt)
void
offerUpdateStatement(Statement stmt)
void
offerUpdateStatement(Statement stmt, List<? extends Statement> stmts)
void
offerUpdateStatement(List<? extends Statement> stmts)
PreparedStatement
prepareQueryStatement(String sql)
PreparedStatement
prepareUpdateStatement(String sql)
PreparedStatement
prepareUpdateStatement(String sql, int resultSetType)
void
rollback(Statement stmt)
void
rollback(Statement stmt, List<? extends Statement> stmts)
void
rollback(List<? extends Statement> stmts)
void
setAutoCommit(boolean autoCommit)
-
-
-
字段详细资料
-
version
public int version
-
conn
public final Connection conn
-
-
构造器详细资料
-
JdbcConnection
public JdbcConnection(Connection conn, boolean readFlag, int version)
-
-
方法详细资料
-
getConnection
public Connection getConnection()
- 指定者:
getConnection
在类中DataJdbcConnection
-
createStreamStatement
public Statement createStreamStatement() throws SQLException
- 抛出:
SQLException
-
offerStreamStatement
public void offerStreamStatement(Statement stmt) throws SQLException
- 抛出:
SQLException
-
createQueryStatement
public Statement createQueryStatement() throws SQLException
- 抛出:
SQLException
-
offerQueryStatement
public void offerQueryStatement(Statement stmt) throws SQLException
- 抛出:
SQLException
-
createUpdateStatement
public Statement createUpdateStatement() throws SQLException
- 抛出:
SQLException
-
offerUpdateStatement
public void offerUpdateStatement(Statement stmt) throws SQLException
- 抛出:
SQLException
-
prepareQueryStatement
public PreparedStatement prepareQueryStatement(String sql) throws SQLException
- 抛出:
SQLException
-
offerQueryStatement
public void offerQueryStatement(PreparedStatement stmt) throws SQLException
- 抛出:
SQLException
-
prepareUpdateStatement
public PreparedStatement prepareUpdateStatement(String sql) throws SQLException
- 抛出:
SQLException
-
prepareUpdateStatement
public PreparedStatement prepareUpdateStatement(String sql, int resultSetType) throws SQLException
- 抛出:
SQLException
-
offerUpdateStatement
public void offerUpdateStatement(PreparedStatement stmt) throws SQLException
- 抛出:
SQLException
-
offerUpdateStatement
public void offerUpdateStatement(List<? extends Statement> stmts) throws SQLException
- 抛出:
SQLException
-
offerUpdateStatement
public void offerUpdateStatement(Statement stmt, List<? extends Statement> stmts) throws SQLException
- 抛出:
SQLException
-
setAutoCommit
public void setAutoCommit(boolean autoCommit) throws SQLException
- 抛出:
SQLException
-
commit
public void commit() throws SQLException
- 抛出:
SQLException
-
rollback
public void rollback(Statement stmt)
-
getMetaData
public DatabaseMetaData getMetaData() throws SQLException
- 抛出:
SQLException
-
createBlob
public Blob createBlob() throws SQLException
- 抛出:
SQLException
-
close
public void close() throws SQLException
- 指定者:
close
在接口中AutoCloseable
- 抛出:
SQLException
-
-