public class XADbConnection extends Object implements DbConnection, org.mule.runtime.extension.api.connectivity.XATransactionalConnection
| Constructor and Description |
|---|
XADbConnection(DbConnection connection,
XAConnection xaConnection) |
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
beginStreaming()
Starts streaming.
|
void |
close() |
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() |
XAResource |
getXAResource() |
boolean |
hasActiveLobStreams()
Finds out if there are open LOB streams in the results.
|
boolean |
isStreaming() |
boolean |
isTransactionActive() |
void |
release()
Closes the underlying JDBC connection, provided that
DbConnection.isStreaming() is false |
void |
rollback() |
void |
setActiveLobStreams(boolean value)
Specifies that in the returned results there are streams that still need to be consumed.
|
boolean |
supportsContentStreaming() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateArrayOf, createArrayOf, createStruct, getDbTypeByVendor, getProcedureColumns, getProcedureColumnType, getTablespublic XADbConnection(DbConnection connection, XAConnection xaConnection)
public XAResource getXAResource()
getXAResource in interface org.mule.runtime.extension.api.connectivity.XATransactionalConnectionpublic void close()
close in interface org.mule.runtime.extension.api.connectivity.XATransactionalConnectionpublic void begin()
throws org.mule.runtime.api.tx.TransactionException
begin in interface org.mule.runtime.extension.api.tx.Transactionalorg.mule.runtime.api.tx.TransactionExceptionpublic void commit()
throws org.mule.runtime.api.tx.TransactionException
commit in interface org.mule.runtime.extension.api.tx.Transactionalorg.mule.runtime.api.tx.TransactionExceptionpublic void rollback()
throws org.mule.runtime.api.tx.TransactionException
rollback in interface org.mule.runtime.extension.api.tx.Transactionalorg.mule.runtime.api.tx.TransactionExceptionpublic 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 List<DbType> getVendorDataTypes()
getVendorDataTypes in interface DbConnectionDbTypes which are specific to the Database vendorpublic List<DbType> getCustomDataTypes()
getCustomDataTypes in interface DbConnectionDbTypespublic Connection getJdbcConnection()
getJdbcConnection in interface DbConnectionpublic void release()
DbConnectionDbConnection.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 DbConnectionpublic boolean isTransactionActive()
isTransactionActive in interface DbConnectionpublic boolean supportsContentStreaming()
supportsContentStreaming in interface DbConnectionpublic void setActiveLobStreams(boolean value)
DbConnectionsetActiveLobStreams in interface DbConnectionvalue - A value indicating if there are open LOB streams in the returned results.public boolean hasActiveLobStreams()
DbConnectionhasActiveLobStreams in interface DbConnectionCopyright © 2021. All rights reserved.