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 |
abortActiveLobStreams()
Resets the count of the returned results that are streams that still need to be consumed.
|
void |
begin() |
void |
beginStreaming()
Starts streaming.
|
void |
close() |
void |
commit() |
Array |
createArray(String typeName,
Object[] values)
|
void |
decrementActiveLobStreams()
Decrements the count of the returned results that are streams that need to be consumed.
|
void |
endStreaming()
Marks that the streaming is over
|
com.github.benmanes.caffeine.cache.Cache<String,QueryTemplate> |
getCacheTemplates() |
List<DbType> |
getCustomDataTypes() |
Optional<DbType> |
getDbTypeByVendor(String typeName,
ResultSet procedureColumns) |
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 that need to be consumed.
|
void |
incrementActiveLobStreams()
Increments the count of the returned results that are streams that need to be consumed.
|
boolean |
isStreaming() |
boolean |
isTransactionActive() |
void |
release()
Closes the underlying JDBC connection, provided that
DbConnection.isStreaming() is false |
void |
releaseIfInactive()
Closes the underlying JDBC connection, provided that
DbConnection.isTransactionActive() is false |
void |
rollback() |
boolean |
supportsContentStreaming() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateArray, createArrayOf, createArrayOf, createStruct, 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 releaseIfInactive()
DbConnectionDbConnection.isTransactionActive() is falsereleaseIfInactive 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 incrementActiveLobStreams()
DbConnectionincrementActiveLobStreams in interface DbConnectionpublic void decrementActiveLobStreams()
DbConnectiondecrementActiveLobStreams in interface DbConnectionpublic void abortActiveLobStreams()
DbConnectionabortActiveLobStreams in interface DbConnectionpublic boolean hasActiveLobStreams()
DbConnectionhasActiveLobStreams in interface DbConnectionpublic com.github.benmanes.caffeine.cache.Cache<String,QueryTemplate> getCacheTemplates()
getCacheTemplates in interface DbConnectionpublic Array createArray(String typeName, Object[] values) throws SQLException
DbConnectioncreateArray in interface DbConnectiontypeName - The Array type namevalues - The values to convert to an ArrayArraySQLException - if an error occurs trying to create the array.public Optional<DbType> getDbTypeByVendor(String typeName, ResultSet procedureColumns) throws SQLException
getDbTypeByVendor in interface DbConnectionSQLExceptionCopyright © 2024. All rights reserved.