Class SapLUWHandle
java.lang.Object
org.frankframework.extensions.sap.jco3.SapLUWHandle
- All Implemented Interfaces:
AutoCloseable
Wrapper for SAP sessions, used to control Logical Units of Work (LUWs).
- Since:
- 5.0
- Author:
- Gerrit van Brakel, Jaco de Groot
-
Method Summary
Modifier and TypeMethodDescriptionvoid
begin()
void
close()
void
commit()
static SapLUWHandle
createHandle
(PipeLineSession session, String sessionKey, SapSystemImpl sapSystem, boolean useTid) void
release()
static void
releaseHandle
(PipeLineSession session, String sessionKey) static SapLUWHandle
retrieveHandle
(PipeLineSession session, String sessionKey) static SapLUWHandle
retrieveHandle
(PipeLineSession session, String sessionKey, boolean create, SapSystemImpl sapSystem, boolean useTid) void
rollback()
-
Method Details
-
createHandle
public static SapLUWHandle createHandle(PipeLineSession session, String sessionKey, SapSystemImpl sapSystem, boolean useTid) throws com.sap.conn.jco.JCoException - Throws:
com.sap.conn.jco.JCoException
-
retrieveHandle
-
retrieveHandle
public static SapLUWHandle retrieveHandle(PipeLineSession session, String sessionKey, boolean create, SapSystemImpl sapSystem, boolean useTid) throws com.sap.conn.jco.JCoException - Throws:
com.sap.conn.jco.JCoException
-
releaseHandle
public static void releaseHandle(PipeLineSession session, String sessionKey) throws com.sap.conn.jco.JCoException - Throws:
com.sap.conn.jco.JCoException
-
begin
public void begin() throws com.sap.conn.jco.JCoException- Throws:
com.sap.conn.jco.JCoException
-
commit
public void commit() throws com.sap.conn.jco.JCoException- Throws:
com.sap.conn.jco.JCoException
-
rollback
public void rollback() -
release
public void release() throws com.sap.conn.jco.JCoException- Throws:
com.sap.conn.jco.JCoException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
PipeRunException
-