public class JcoResourceHolder
extends org.springframework.transaction.support.ResourceHolderSupport
based on org.springframework.jms.connection.JmsResourceHolder
Note: This is an SPI class, not intended to be used by applications.
| Constructor and Description |
|---|
JcoResourceHolder()
Create 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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDestination(com.sap.conn.jco.JCoDestination destination) |
void |
addTid(String tid,
com.sap.conn.jco.JCoDestination destination) |
void |
commitAll() |
boolean |
containsDestination(com.sap.conn.jco.JCoDestination destination) |
boolean |
containsTid(String tid) |
com.sap.conn.jco.JCoDestination |
getDestination() |
String |
getTid(com.sap.conn.jco.JCoDestination destination) |
boolean |
isFrozen() |
clear, getDeadline, getTimeToLiveInMillis, getTimeToLiveInSeconds, hasTimeout, isOpen, isRollbackOnly, isSynchronizedWithTransaction, isVoid, released, requested, reset, resetRollbackOnly, setRollbackOnly, setSynchronizedWithTransaction, setTimeoutInMillis, setTimeoutInSeconds, unboundpublic JcoResourceHolder()
public JcoResourceHolder(SapSystemImpl sapSystem)
sapSystem - the SapSystem that this
resource holder is associated with (may be null)public JcoResourceHolder(SapSystemImpl sapSystem, com.sap.conn.jco.JCoDestination destination)
sapSystem - the SapSystem that this
resource holder is associated with (may be null)destination - the JCoDestinationpublic JcoResourceHolder(com.sap.conn.jco.JCoDestination destination,
String tid)
destination - the JCoDestinationtid - the TIDpublic JcoResourceHolder(SapSystemImpl sapSystem, com.sap.conn.jco.JCoDestination destination, String tid)
sapSystem - the SapSystem that this
resource holder is associated with (may be null)destination - the JCoDestinationtid - the TIDpublic final boolean isFrozen()
public final void addDestination(com.sap.conn.jco.JCoDestination destination)
public final void addTid(String tid, com.sap.conn.jco.JCoDestination destination)
public boolean containsDestination(com.sap.conn.jco.JCoDestination destination)
public boolean containsTid(String tid)
public com.sap.conn.jco.JCoDestination getDestination()
public String getTid(com.sap.conn.jco.JCoDestination destination)
public void commitAll()
throws SapException
SapExceptionCopyright © 2023 Frank!Framework. All rights reserved.