public abstract class AbstractDbConnection extends Object implements DbConnection
DbConnection
Modifier and Type | Field and Description |
---|---|
protected Connection |
delegate |
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
Constructor and Description |
---|
AbstractDbConnection(Connection delegate,
TransactionalAction transactionalAction,
DefaultDbConnectionReleaser connectionReleaseListener,
ParamTypeResolverFactory paramTypeResolverFactory) |
Modifier and Type | Method and Description |
---|---|
Map<Integer,DbType> |
getParamTypes(QueryTemplate queryTemplate)
Determines actual parameter types for the parameters defined in a
query template.
|
StatementResultIteratorFactory |
getStatementResultIteratorFactory(ResultSetHandler resultSetHandler)
Returns the
StatementResultIteratorFactory used to create
the StatementResultIterator for this connection. |
TransactionalAction |
getTransactionalAction()
Indicates which
TransactionalAction used to create this connection |
void |
release()
Indicates that the connection is not used anymore
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
abort, clearWarnings, close, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, isValid, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap
isWrapperFor, unwrap
protected final Connection delegate
public AbstractDbConnection(Connection delegate, TransactionalAction transactionalAction, DefaultDbConnectionReleaser connectionReleaseListener, ParamTypeResolverFactory paramTypeResolverFactory)
public StatementResultIteratorFactory getStatementResultIteratorFactory(ResultSetHandler resultSetHandler)
DbConnection
StatementResultIteratorFactory
used to create
the StatementResultIterator
for this connection.getStatementResultIteratorFactory
in interface DbConnection
resultSetHandler
- used to process resultSets created from this connectionStatementResultIterator
for this connection.public Map<Integer,DbType> getParamTypes(QueryTemplate queryTemplate) throws SQLException
DbConnection
getParamTypes
in interface DbConnection
queryTemplate
- query template that needing parameter resolutionSQLException
- when there are error processing the querypublic TransactionalAction getTransactionalAction()
DbConnection
TransactionalAction
used to create this connectiongetTransactionalAction
in interface DbConnection
public void release()
DbConnection
release
in interface DbConnection
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.