Class JcoResourceHolder
java.lang.Object
org.springframework.transaction.support.ResourceHolderSupport
org.frankframework.extensions.sap.jco3.tx.JcoResourceHolder
- All Implemented Interfaces:
org.springframework.transaction.support.ResourceHolder
public class JcoResourceHolder
extends org.springframework.transaction.support.ResourceHolderSupport
Connection holder, wrapping a Jco destination.
based on org.springframework.jms.connection.JmsResourceHolder
Note: This is an SPI class, not intended to be used by applications.
- Since:
- 5.0
- Author:
- Gerrit van Brakel, Jaco de Groot
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new JcoResourceHolder that is open for resources to be added.JcoResourceHolder
(com.sap.conn.jco.JCoDestination destination, String tid) Create a new JcoResourceHolder for the given JCO resources.JcoResourceHolder
(SapSystemImpl sapSystem) Create a new JcoResourceHolder that is open for resources to be added.JcoResourceHolder
(SapSystemImpl sapSystem, com.sap.conn.jco.JCoDestination destination) Create a new JcoResourceHolder for the given JCoDestination.JcoResourceHolder
(SapSystemImpl sapSystem, com.sap.conn.jco.JCoDestination destination, String tid) Create a new JcoResourceHolder for the given JCO resources. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addDestination
(com.sap.conn.jco.JCoDestination destination) final void
void
boolean
containsDestination
(com.sap.conn.jco.JCoDestination destination) boolean
containsTid
(String tid) com.sap.conn.jco.JCoDestination
getTid
(com.sap.conn.jco.JCoDestination destination) final boolean
isFrozen()
Methods inherited from class org.springframework.transaction.support.ResourceHolderSupport
clear, getDeadline, getTimeToLiveInMillis, getTimeToLiveInSeconds, hasTimeout, isOpen, isRollbackOnly, isSynchronizedWithTransaction, isVoid, released, requested, reset, resetRollbackOnly, setRollbackOnly, setSynchronizedWithTransaction, setTimeoutInMillis, setTimeoutInSeconds, unbound
-
Constructor Details
-
JcoResourceHolder
public JcoResourceHolder()Create a new JcoResourceHolder that is open for resources to be added.- See Also:
-
JcoResourceHolder
Create a new JcoResourceHolder that is open for resources to be added.- Parameters:
sapSystem
- the SapSystem that this resource holder is associated with (may benull
)
-
JcoResourceHolder
Create a new JcoResourceHolder for the given JCoDestination.- Parameters:
sapSystem
- the SapSystem that this resource holder is associated with (may benull
)destination
- the JCoDestination
-
JcoResourceHolder
Create a new JcoResourceHolder for the given JCO resources.- Parameters:
destination
- the JCoDestinationtid
- the TID
-
JcoResourceHolder
public JcoResourceHolder(SapSystemImpl sapSystem, com.sap.conn.jco.JCoDestination destination, String tid) Create a new JcoResourceHolder for the given JCO resources.- Parameters:
sapSystem
- the SapSystem that this resource holder is associated with (may benull
)destination
- the JCoDestinationtid
- the TID
-
-
Method Details
-
isFrozen
public final boolean isFrozen() -
addDestination
public final void addDestination(com.sap.conn.jco.JCoDestination destination) -
addTid
-
containsDestination
public boolean containsDestination(com.sap.conn.jco.JCoDestination destination) -
containsTid
-
getDestination
public com.sap.conn.jco.JCoDestination getDestination() -
getTid
-
commitAll
- Throws:
SapException
-