From a9be4bc4ef2556ed520758022bcb0340e3415866 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sat, 18 Jul 2026 10:10:42 +0000 Subject: [PATCH] =?UTF-8?q?[framework]=20TxCore=20=E2=86=92=20common-frame?= =?UTF-8?q?work=20(ACM-FW-001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../klaro/acquirecore/framework/TxConfig.java | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 boot/common-framework/src/main/java/com/klaro/acquirecore/framework/TxConfig.java diff --git a/boot/common-framework/src/main/java/com/klaro/acquirecore/framework/TxConfig.java b/boot/common-framework/src/main/java/com/klaro/acquirecore/framework/TxConfig.java new file mode 100644 index 0000000..95220fd --- /dev/null +++ b/boot/common-framework/src/main/java/com/klaro/acquirecore/framework/TxConfig.java @@ -0,0 +1,30 @@ +package com.klaro.acquirecore.framework; + +/** + * Transaction configuration DTO. Migrated from txcore.h tx_config_t. + */ +public class TxConfig { + private int timeoutSeconds = 30; + private int maxRetries = 3; + private boolean autoCommit = false; + private String isolationLevel = "READ_COMMITTED"; + private boolean rollbackOnException = true; + + public TxConfig() {} + + public TxConfig(int timeoutSeconds, int maxRetries) { + this.timeoutSeconds = timeoutSeconds; + this.maxRetries = maxRetries; + } + + public int getTimeoutSeconds() { return timeoutSeconds; } + public void setTimeoutSeconds(int timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; } + public int getMaxRetries() { return maxRetries; } + public void setMaxRetries(int maxRetries) { this.maxRetries = maxRetries; } + public boolean isAutoCommit() { return autoCommit; } + public void setAutoCommit(boolean autoCommit) { this.autoCommit = autoCommit; } + public String getIsolationLevel() { return isolationLevel; } + public void setIsolationLevel(String isolationLevel) { this.isolationLevel = isolationLevel; } + public boolean isRollbackOnException() { return rollbackOnException; } + public void setRollbackOnException(boolean rollbackOnException) { this.rollbackOnException = rollbackOnException; } +}