public class DefaultDbConnection extends Object implements DbConnection
| Constructor and Description |
|---|
DefaultDbConnection(Connection jdbcConnection,
List<DbType> customDataTypes) |
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
beginStreaming()
Starts streaming.
|
void |
commit() |
void |
endStreaming()
Marks that the streaming is over
|
List<DbType> |
getCustomDataTypes() |
Connection |
getJdbcConnection() |
StatementResultIteratorFactory |
getStatementResultIteratorFactory(ResultSetHandler resultSetHandler)
Returns the
StatementResultIteratorFactory used to create the StatementResultIterator for this connection. |
List<DbType> |
getVendorDataTypes() |
boolean |
isStreaming() |
void |
release()
Closes the underlying JDBC connection, provided that
DbConnection.isStreaming() is false |
void |
rollback() |
public DefaultDbConnection(Connection jdbcConnection, List<DbType> customDataTypes)
public StatementResultIteratorFactory getStatementResultIteratorFactory(ResultSetHandler resultSetHandler)
StatementResultIteratorFactory used to create the StatementResultIterator for this connection.getStatementResultIteratorFactory in interface DbConnectionresultSetHandler - used to process resultSets created from this connectionStatementResultIterator for this connection.public List<DbType> getVendorDataTypes()
getVendorDataTypes in interface DbConnectionDbTypes which are specific to the Database vendorpublic Connection getJdbcConnection()
getJdbcConnection in interface DbConnectionpublic List<DbType> getCustomDataTypes()
getCustomDataTypes in interface DbConnectionDbTypespublic void begin()
throws Exception
begin in interface org.mule.runtime.extension.api.tx.TransactionalExceptionpublic void commit()
throws SQLException
commit in interface org.mule.runtime.extension.api.tx.TransactionalSQLExceptionpublic void rollback()
throws SQLException
rollback in interface org.mule.runtime.extension.api.tx.TransactionalSQLExceptionpublic void release()
DbConnection.isStreaming() is falserelease in interface DbConnectionpublic void beginStreaming()
DbConnectionthis connection is about to be
iteratedbeginStreaming in interface DbConnectionpublic boolean isStreaming()
isStreaming in interface DbConnectionDbConnection.beginStreaming() has been invoked on this instance but DbConnection.endStreaming() has notpublic void endStreaming()
DbConnectionendStreaming in interface DbConnectionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.