类 ConnectionProxy
java.lang.Object
com.baomidou.dynamic.datasource.tx.ConnectionProxy
- 所有已实现的接口:
AutoCloseable,Connection,Wrapper
- 作者:
- funkye
-
字段概要
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidvoidvoidclose()voidcommit()createArrayOf(String typeName, Object[] elements) createStatement(int resultSetType, int resultSetConcurrency) createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) createStruct(String typeName, Object[] attributes) booleanbooleangetClientInfo(String name) intintintinthashCode()booleanisClosed()booleanbooleanisValid(int timeout) booleanisWrapperFor(Class<?> iface) void通知事务管理器提交或回滚prepareCall(String sql) prepareCall(String sql, int resultSetType, int resultSetConcurrency) prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) prepareStatement(String sql) prepareStatement(String sql, int autoGeneratedKeys) prepareStatement(String sql, int[] columnIndexes) prepareStatement(String sql, int resultSetType, int resultSetConcurrency) prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) prepareStatement(String sql, String[] columnNames) voidreleaseSavepoint(Savepoint savepoint) voidrollback()voidvoidsetAutoCommit(boolean autoCommit) voidsetCatalog(String catalog) voidsetClientInfo(String name, String value) voidsetClientInfo(Properties properties) voidsetHoldability(int holdability) voidsetNetworkTimeout(Executor executor, int milliseconds) voidsetReadOnly(boolean readOnly) setSavepoint(String name) voidvoidsetTransactionIsolation(int level) voidsetTypeMap(Map<String, Class<?>> map) <T> T从接口继承的方法 java.sql.Connection
beginRequest, endRequest, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid
-
构造器详细资料
-
ConnectionProxy
init- 参数:
connection- 数据源链接ds- 数据源名称
-
-
方法详细资料
-
notify
通知事务管理器提交或回滚- 参数:
commit- 是否提交- 抛出:
SQLException- SQLException
-
commit
- 指定者:
commit在接口中Connection- 抛出:
SQLException
-
rollback
- 指定者:
rollback在接口中Connection- 抛出:
SQLException
-
close
- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Connection- 抛出:
SQLException
-
getAutoCommit
- 指定者:
getAutoCommit在接口中Connection- 抛出:
SQLException
-
setAutoCommit
- 指定者:
setAutoCommit在接口中Connection- 抛出:
SQLException
-
createStatement
- 指定者:
createStatement在接口中Connection- 抛出:
SQLException
-
prepareStatement
- 指定者:
prepareStatement在接口中Connection- 抛出:
SQLException
-
prepareCall
- 指定者:
prepareCall在接口中Connection- 抛出:
SQLException
-
nativeSQL
- 指定者:
nativeSQL在接口中Connection- 抛出:
SQLException
-
isClosed
- 指定者:
isClosed在接口中Connection- 抛出:
SQLException
-
getMetaData
- 指定者:
getMetaData在接口中Connection- 抛出:
SQLException
-
isReadOnly
- 指定者:
isReadOnly在接口中Connection- 抛出:
SQLException
-
setReadOnly
- 指定者:
setReadOnly在接口中Connection- 抛出:
SQLException
-
getCatalog
- 指定者:
getCatalog在接口中Connection- 抛出:
SQLException
-
setCatalog
- 指定者:
setCatalog在接口中Connection- 抛出:
SQLException
-
getTransactionIsolation
- 指定者:
getTransactionIsolation在接口中Connection- 抛出:
SQLException
-
setTransactionIsolation
- 指定者:
setTransactionIsolation在接口中Connection- 抛出:
SQLException
-
getWarnings
- 指定者:
getWarnings在接口中Connection- 抛出:
SQLException
-
clearWarnings
- 指定者:
clearWarnings在接口中Connection- 抛出:
SQLException
-
createStatement
- 指定者:
createStatement在接口中Connection- 抛出:
SQLException
-
prepareStatement
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException - 指定者:
prepareStatement在接口中Connection- 抛出:
SQLException
-
prepareCall
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException - 指定者:
prepareCall在接口中Connection- 抛出:
SQLException
-
getTypeMap
- 指定者:
getTypeMap在接口中Connection- 抛出:
SQLException
-
setTypeMap
- 指定者:
setTypeMap在接口中Connection- 抛出:
SQLException
-
getHoldability
- 指定者:
getHoldability在接口中Connection- 抛出:
SQLException
-
setHoldability
- 指定者:
setHoldability在接口中Connection- 抛出:
SQLException
-
setSavepoint
- 指定者:
setSavepoint在接口中Connection- 抛出:
SQLException
-
setSavepoint
- 指定者:
setSavepoint在接口中Connection- 抛出:
SQLException
-
rollback
- 指定者:
rollback在接口中Connection- 抛出:
SQLException
-
releaseSavepoint
- 指定者:
releaseSavepoint在接口中Connection- 抛出:
SQLException
-
createStatement
public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - 指定者:
createStatement在接口中Connection- 抛出:
SQLException
-
prepareStatement
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - 指定者:
prepareStatement在接口中Connection- 抛出:
SQLException
-
prepareCall
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - 指定者:
prepareCall在接口中Connection- 抛出:
SQLException
-
prepareStatement
- 指定者:
prepareStatement在接口中Connection- 抛出:
SQLException
-
prepareStatement
- 指定者:
prepareStatement在接口中Connection- 抛出:
SQLException
-
prepareStatement
- 指定者:
prepareStatement在接口中Connection- 抛出:
SQLException
-
createClob
- 指定者:
createClob在接口中Connection- 抛出:
SQLException
-
createBlob
- 指定者:
createBlob在接口中Connection- 抛出:
SQLException
-
createNClob
- 指定者:
createNClob在接口中Connection- 抛出:
SQLException
-
createSQLXML
- 指定者:
createSQLXML在接口中Connection- 抛出:
SQLException
-
isValid
- 指定者:
isValid在接口中Connection- 抛出:
SQLException
-
setClientInfo
- 指定者:
setClientInfo在接口中Connection- 抛出:
SQLClientInfoException
-
getClientInfo
- 指定者:
getClientInfo在接口中Connection- 抛出:
SQLException
-
getClientInfo
- 指定者:
getClientInfo在接口中Connection- 抛出:
SQLException
-
setClientInfo
- 指定者:
setClientInfo在接口中Connection- 抛出:
SQLClientInfoException
-
createArrayOf
- 指定者:
createArrayOf在接口中Connection- 抛出:
SQLException
-
createStruct
- 指定者:
createStruct在接口中Connection- 抛出:
SQLException
-
getSchema
- 指定者:
getSchema在接口中Connection- 抛出:
SQLException
-
setSchema
- 指定者:
setSchema在接口中Connection- 抛出:
SQLException
-
abort
- 指定者:
abort在接口中Connection- 抛出:
SQLException
-
setNetworkTimeout
- 指定者:
setNetworkTimeout在接口中Connection- 抛出:
SQLException
-
getNetworkTimeout
- 指定者:
getNetworkTimeout在接口中Connection- 抛出:
SQLException
-
unwrap
- 指定者:
unwrap在接口中Wrapper- 抛出:
SQLException
-
isWrapperFor
- 指定者:
isWrapperFor在接口中Wrapper- 抛出:
SQLException
-
equals
-
hashCode
public int hashCode()
-