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

    Constructors
    Constructor
    Description
    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.
    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 Type
    Method
    Description
    final void
    addDestination(com.sap.conn.jco.JCoDestination destination)
     
    final void
    addTid(String tid, com.sap.conn.jco.JCoDestination destination)
     
    void
     
    boolean
    containsDestination(com.sap.conn.jco.JCoDestination destination)
     
    boolean
     
    com.sap.conn.jco.JCoDestination
     
    getTid(com.sap.conn.jco.JCoDestination destination)
     
    final boolean
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JcoResourceHolder

      public JcoResourceHolder()
      Create a new JcoResourceHolder that is open for resources to be added.
      See Also:
    • JcoResourceHolder

      public JcoResourceHolder(SapSystemImpl sapSystem)
      Create a new JcoResourceHolder that is open for resources to be added.
      Parameters:
      sapSystem - the SapSystem that this resource holder is associated with (may be null)
    • JcoResourceHolder

      public JcoResourceHolder(SapSystemImpl sapSystem, com.sap.conn.jco.JCoDestination destination)
      Create a new JcoResourceHolder for the given JCoDestination.
      Parameters:
      sapSystem - the SapSystem that this resource holder is associated with (may be null)
      destination - the JCoDestination
    • JcoResourceHolder

      public JcoResourceHolder(com.sap.conn.jco.JCoDestination destination, String tid)
      Create a new JcoResourceHolder for the given JCO resources.
      Parameters:
      destination - the JCoDestination
      tid - 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 be null)
      destination - the JCoDestination
      tid - the TID
  • Method Details

    • isFrozen

      public final boolean isFrozen()
    • addDestination

      public final void addDestination(com.sap.conn.jco.JCoDestination destination)
    • addTid

      public final void addTid(String tid, com.sap.conn.jco.JCoDestination destination)
    • containsDestination

      public boolean containsDestination(com.sap.conn.jco.JCoDestination destination)
    • containsTid

      public boolean containsTid(String tid)
    • getDestination

      public com.sap.conn.jco.JCoDestination getDestination()
    • getTid

      public String getTid(com.sap.conn.jco.JCoDestination destination)
    • commitAll

      public void commitAll() throws SapException
      Throws:
      SapException