org.mule.module.db.internal.domain.connection
Interface DbConnection

All Superinterfaces:
Connection, Wrapper
All Known Implementing Classes:
AbstractDbConnection, DefaultDbConnection

public interface DbConnection
extends Connection

Wraps a Connection adding connector's specific functionality


Field Summary
 
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
Method Summary
 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
 
Methods inherited from interface java.sql.Connection
clearWarnings, close, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, isValid, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 

Method Detail

getStatementResultIteratorFactory

StatementResultIteratorFactory getStatementResultIteratorFactory(ResultSetHandler resultSetHandler)
Returns the StatementResultIteratorFactory used to create the StatementResultIterator for this connection.

Parameters:
resultSetHandler - used to process resultSets created from this connection
Returns:
the StatementResultIterator for this connection.

getParamTypes

Map<Integer,DbType> getParamTypes(QueryTemplate queryTemplate)
                                  throws SQLException
Determines actual parameter types for the parameters defined in a query template.

Parameters:
queryTemplate - query template that needing parameter resolution
Returns:
a not null map containing the parameter type for each parameter index
Throws:
SQLException - when there are error processing the query

getTransactionalAction

TransactionalAction getTransactionalAction()
Indicates which TransactionalAction used to create this connection

Returns:
connection's transactional action

release

void release()
Indicates that the connection is not used anymore



Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.