Package org.alfresco.event.outbox
Interface ConnectionSource
public interface ConnectionSource
Integration point, exposing the JDBC
Connection/Transaction from the host system.-
Method Summary
Modifier and TypeMethodDescriptionMethod used to obtain the NON Transaction boundConnection.Method used to obtain the Transaction boundConnection.booleanProvides an information whether the Transaction bound Connection is available or not.
-
Method Details
-
isTxBoundConnectionAvailable
boolean isTxBoundConnectionAvailable()Provides an information whether the Transaction bound Connection is available or not.- Returns:
truewhen Tx bound Connection is available,falseotherwise.
-
getTxBoundConnection
Method used to obtain the Transaction boundConnection. It can fail, but only whenisTxBoundConnectionAvailable()returnsfalse.- Returns:
- Tx bound
Connection - Throws:
SQLException
-
getNonTxBoundConnection
Method used to obtain the NON Transaction boundConnection. It must return the non Tx bound connection even when a Tx bound one is available.- Returns:
- Non Tx bound
Connection - Throws:
SQLException
-