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, waitabort, 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, setTypeMapisWrapperFor, unwrapprotected final Connection delegate
public AbstractDbConnection(Connection delegate, TransactionalAction transactionalAction, DefaultDbConnectionReleaser connectionReleaseListener, ParamTypeResolverFactory paramTypeResolverFactory)
public StatementResultIteratorFactory getStatementResultIteratorFactory(ResultSetHandler resultSetHandler)
DbConnectionStatementResultIteratorFactory used to create
the StatementResultIterator for this connection.getStatementResultIteratorFactory in interface DbConnectionresultSetHandler - used to process resultSets created from this connectionStatementResultIterator for this connection.public Map<Integer,DbType> getParamTypes(QueryTemplate queryTemplate) throws SQLException
DbConnectiongetParamTypes in interface DbConnectionqueryTemplate - query template that needing parameter resolutionSQLException - when there are error processing the querypublic TransactionalAction getTransactionalAction()
DbConnectionTransactionalAction used to create this connectiongetTransactionalAction in interface DbConnectionpublic void release()
DbConnectionrelease in interface DbConnectionCopyright © 2003–2018 MuleSoft, Inc.. All rights reserved.