BatchUtil { public static TransactionDefinition getTransactionDefinition() { return new DefaultTransactionDefinition(); } protected  BatchUtil(); static String cat(Object... args); static String getInfoLogStartMsg(String jobCd); static String getInfoLogEndMsg(String jobCd); static TransactionDefinition getTransactionDefinition(); static TransactionDefinition getTransactionDefinition(
            int propagationBehavior, int isolationLevel, int timeout,
            boolean readOnly); static TransactionStatus startTransaction(
            PlatformTransactionManager tran); static TransactionStatus startTransaction(
            PlatformTransactionManager tran, Log log); static TransactionStatus startTransaction(
            PlatformTransactionManager tran, int propagationBehavior,
            int isolationLevel, int timeout, boolean readOnly); static TransactionStatus startTransaction(
            PlatformTransactionManager tran, int propagationBehavior,
            int isolationLevel, int timeout, boolean readOnly, Log log); static TransactionStatus startTransaction(
            PlatformTransactionManager tran, TransactionDefinition def); static TransactionStatus startTransaction(
            PlatformTransactionManager tran, TransactionDefinition def, Log log); static Map<String, TransactionStatus> startTransactions(
            TransactionDefinition tranDef, Map<?, ?> tranMap); static Map<String, TransactionStatus> startTransactions(
            TransactionDefinition tranDef, Map<?, ?> tranMap, Log log); static void commitTransaction(PlatformTransactionManager tran,
            TransactionStatus stat); static void commitTransaction(PlatformTransactionManager tran,
            TransactionStatus stat, Log log); static void commitTransactions(Map<?, ?> tranMap,
            Map<String, TransactionStatus> statMap); static void commitTransactions(Map<?, ?> tranMap,
            Map<String, TransactionStatus> statMap, Log log); static void endTransaction(PlatformTransactionManager tran,
            TransactionStatus stat); static void endTransaction(PlatformTransactionManager tran,
            TransactionStatus stat, Log log); static boolean endTransactions(Map<?, ?> tranMap,
            Map<String, TransactionStatus> statMap); static boolean endTransactions(Map<?, ?> tranMap,
            Map<String, TransactionStatus> statMap, Log log); static Object setSavepoint(TransactionStatus stat); static Object setSavepoint(TransactionStatus stat, Log log); static void releaseSavepoint(TransactionStatus stat, Object savepoint); static void releaseSavepoint(TransactionStatus stat,
            Object savepoint, Log log); static void rollbackSavepoint(TransactionStatus stat,
            Object savepoint); static void rollbackSavepoint(TransactionStatus stat,
            Object savepoint, Log log); static void rollbackTransaction(PlatformTransactionManager tran,
            TransactionStatus stat); static void rollbackTransaction(PlatformTransactionManager tran,
            TransactionStatus stat, Log log); static TransactionStatus commitRestartTransaction(
            PlatformTransactionManager tran, TransactionStatus stat); static TransactionStatus commitRestartTransaction(
            PlatformTransactionManager tran, TransactionStatus stat, Log log); static TransactionStatus commitRestartTransaction(
            PlatformTransactionManager tran, TransactionStatus stat,
            TransactionDefinition def); static TransactionStatus commitRestartTransaction(
            PlatformTransactionManager tran, TransactionStatus stat,
            TransactionDefinition def, Log log); static TransactionStatus rollbackRestartTransaction(
            PlatformTransactionManager tran, TransactionStatus stat); static TransactionStatus rollbackRestartTransaction(
            PlatformTransactionManager tran, TransactionStatus stat, Log log); static TransactionStatus rollbackRestartTransaction(
            PlatformTransactionManager tran, TransactionStatus stat,
            TransactionDefinition def); static TransactionStatus rollbackRestartTransaction(
            PlatformTransactionManager tran, TransactionStatus stat,
            TransactionDefinition def, Log log); @SuppressWarnings({"rawtypes", "unchecked"}) static E[] changeListToArray(List<E> list, Class clazz); static List<String> getProperties(String propertyName, String grpKey); static String getMemoryInfo();  }
@Test public void testGetTransactionDefinition01() throws Exception { TransactionDefinition result = BatchUtil.getTransactionDefinition(); assertNotNull(result); }
@Test public void testGetTransactionDefinition02() throws Exception { TransactionDefinition result = BatchUtil.getTransactionDefinition( TransactionDefinition.PROPAGATION_REQUIRED, TransactionDefinition.ISOLATION_DEFAULT, TransactionDefinition.TIMEOUT_DEFAULT, false); assertNotNull(result); }