public void registerInterposedSynchronization(@NotNull final Transaction transaction, @NotNull final Synchronization sync) throws IllegalArgumentException { // this is silly but for some reason they've locked this API up tight try { registerSynchronizationImple.invoke((TransactionImple) transaction, new SynchronizationImple(sync, true)); } catch (RuntimeException | Error e) { throw e; } catch (Throwable t) { throw Log.log.unexpectedFailure(t); } }
public void registerSynchronization(javax.transaction.Synchronization sync) throws javax.transaction.RollbackException, java.lang.IllegalStateException, javax.transaction.SystemException { if (sync == null) { throw new javax.transaction.SystemException( "TransactionImple.registerSynchronization - " + jtaLogger.i18NLogger.get_transaction_arjunacore_nullparam() ); } if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("TransactionImple.registerSynchronization - Class: " + sync.getClass() + " HashCode: " + sync.hashCode() + " toString: " + sync); } registerSynchronizationImple(new SynchronizationImple(sync, false)); }
public void registerSynchronization(javax.transaction.Synchronization sync) throws javax.transaction.RollbackException, java.lang.IllegalStateException, javax.transaction.SystemException { if (sync == null) { throw new javax.transaction.SystemException( "TransactionImple.registerSynchronization - " + jtaLogger.i18NLogger.get_transaction_arjunacore_nullparam() ); } if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("TransactionImple.registerSynchronization - Class: " + sync.getClass() + " HashCode: " + sync.hashCode() + " toString: " + sync); } registerSynchronizationImple(new SynchronizationImple(sync, false)); }
public void registerSynchronization(javax.transaction.Synchronization sync) throws javax.transaction.RollbackException, java.lang.IllegalStateException, javax.transaction.SystemException { if (sync == null) { throw new javax.transaction.SystemException( "TransactionImple.registerSynchronization - " + jtaLogger.i18NLogger.get_transaction_arjunacore_nullparam() ); } if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("TransactionImple.registerSynchronization - Class: " + sync.getClass() + " HashCode: " + sync.hashCode() + " toString: " + sync); } registerSynchronizationImple(new SynchronizationImple(sync, false)); }
public void registerSynchronization(javax.transaction.Synchronization sync) throws javax.transaction.RollbackException, java.lang.IllegalStateException, javax.transaction.SystemException { if (sync == null) { throw new javax.transaction.SystemException( "TransactionImple.registerSynchronization - " + jtaLogger.i18NLogger.get_transaction_arjunacore_nullparam() ); } if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("TransactionImple.registerSynchronization - Class: " + sync.getClass() + " HashCode: " + sync.hashCode() + " toString: " + sync); } registerSynchronizationImple(new SynchronizationImple(sync, false)); }
public void registerSynchronization(javax.transaction.Synchronization sync) throws javax.transaction.RollbackException, java.lang.IllegalStateException, javax.transaction.SystemException { if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("TransactionImple.registerSynchronization"); } if (sync == null) { throw new javax.transaction.SystemException( "TransactionImple.registerSynchronization - " + jtaLogger.i18NLogger.get_transaction_arjunacore_nullparam() ); } registerSynchronizationImple(new SynchronizationImple(sync, false)); }
public void registerSynchronization(javax.transaction.Synchronization sync) throws javax.transaction.RollbackException, java.lang.IllegalStateException, javax.transaction.SystemException { if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("TransactionImple.registerSynchronization"); } if (sync == null) { throw new javax.transaction.SystemException( "TransactionImple.registerSynchronization - " + jtaLogger.i18NLogger.get_transaction_arjunacore_nullparam() ); } registerSynchronizationImple(new SynchronizationImple(sync, false)); }
public void registerInterposedSynchronization(Synchronization synchronization) { if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("TransactionSynchronizationRegistryImple.registerInterposedSynchronization - Class: " + synchronization.getClass() + " HashCode: " + synchronization.hashCode() + " toString: " + synchronization); } TransactionImple transactionImple = getTransactionImple(); try { transactionImple.registerSynchronizationImple(new SynchronizationImple(synchronization, true)); } catch (RollbackException e) { throw new com.arjuna.ats.jta.exceptions.RollbackException(jtaLogger.i18NLogger.get_transaction_arjunacore_syncrollbackexception(), e); } catch (SystemException e) { throw new RuntimeException(jtaLogger.i18NLogger.get_transaction_arjunacore_systemexception(), e); } }
public void registerInterposedSynchronization(Synchronization synchronization) { if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("TransactionSynchronizationRegistryImple.registerInterposedSynchronization - Class: " + synchronization.getClass() + " HashCode: " + synchronization.hashCode() + " toString: " + synchronization); } TransactionImple transactionImple = getTransactionImple(); try { transactionImple.registerSynchronizationImple(new SynchronizationImple(synchronization, true)); } catch (RollbackException e) { throw new com.arjuna.ats.jta.exceptions.RollbackException(jtaLogger.i18NLogger.get_transaction_arjunacore_syncrollbackexception(), e); } catch (SystemException e) { throw new RuntimeException(jtaLogger.i18NLogger.get_transaction_arjunacore_systemexception(), e); } }
public void registerInterposedSynchronization(Synchronization synchronization) { if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("TransactionSynchronizationRegistryImple.registerInterposedSynchronization - Class: " + synchronization.getClass() + " HashCode: " + synchronization.hashCode() + " toString: " + synchronization); } TransactionImple transactionImple = getTransactionImple(); try { transactionImple.registerSynchronizationImple(new SynchronizationImple(synchronization, true)); } catch (RollbackException e) { throw new com.arjuna.ats.jta.exceptions.RollbackException(jtaLogger.i18NLogger.get_transaction_arjunacore_syncrollbackexception(), e); } catch (SystemException e) { throw new RuntimeException(jtaLogger.i18NLogger.get_transaction_arjunacore_systemexception(), e); } }
public void registerInterposedSynchronization(Synchronization synchronization) { if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("TransactionSynchronizationRegistryImple.registerInterposedSynchronization - Class: " + synchronization.getClass() + " HashCode: " + synchronization.hashCode() + " toString: " + synchronization); } TransactionImple transactionImple = getTransactionImple(); try { transactionImple.registerSynchronizationImple(new SynchronizationImple(synchronization, true)); } catch (RollbackException e) { throw new com.arjuna.ats.jta.exceptions.RollbackException(jtaLogger.i18NLogger.get_transaction_arjunacore_syncrollbackexception(), e); } catch (SystemException e) { throw new RuntimeException(jtaLogger.i18NLogger.get_transaction_arjunacore_systemexception(), e); } }
/** * @message com.arjuna.ats.internal.jta.transaction.arjunacore.syncrollbackexception * [com.arjuna.ats.internal.jta.transaction.arjunacore.syncrollbackexception] * The transaction implementation threw a RollbackException */ public void registerInterposedSynchronization(Synchronization synchronization) { if (jtaLogger.logger.isDebugEnabled()) { jtaLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jta.logging.FacilityCode.FAC_JTA, "TransactionSynchronizationRegistryImple.registerInterposedSynchronization"); } TransactionImple transactionImple = getTransactionImple(); try { transactionImple.registerSynchronizationImple(new SynchronizationImple(synchronization, true)); } catch (RollbackException e) { throw new RuntimeException(jtaLogger.logMesg.getString("com.arjuna.ats.internal.jta.transaction.arjunacore.syncrollbackexception"), e); } catch (SystemException e) { throw new RuntimeException(jtaLogger.logMesg.getString("com.arjuna.ats.internal.jta.transaction.arjunacore.systemexception"), e); } }
public void registerInterposedSynchronization(Synchronization synchronization) { if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("TransactionSynchronizationRegistryImple.registerInterposedSynchronization"); } TransactionImple transactionImple = getTransactionImple(); try { transactionImple.registerSynchronizationImple(new SynchronizationImple(synchronization, true)); } catch (RollbackException e) { throw new com.arjuna.ats.jta.exceptions.RollbackException(jtaLogger.i18NLogger.get_transaction_arjunacore_syncrollbackexception(), e); } catch (SystemException e) { throw new RuntimeException(jtaLogger.i18NLogger.get_transaction_arjunacore_systemexception(), e); } }
public void registerInterposedSynchronization(Synchronization synchronization) { if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("TransactionSynchronizationRegistryImple.registerInterposedSynchronization"); } TransactionImple transactionImple = getTransactionImple(); try { transactionImple.registerSynchronizationImple(new SynchronizationImple(synchronization, true)); } catch (RollbackException e) { throw new com.arjuna.ats.jta.exceptions.RollbackException(jtaLogger.i18NLogger.get_transaction_arjunacore_syncrollbackexception(), e); } catch (SystemException e) { throw new RuntimeException(jtaLogger.i18NLogger.get_transaction_arjunacore_systemexception(), e); } }
public void registerInterposedSynchronization(@NotNull final Transaction transaction, @NotNull final Synchronization sync) throws IllegalArgumentException { // this is silly but for some reason they've locked this API up tight try { registerSynchronizationImple.invoke((TransactionImple) transaction, new SynchronizationImple(sync, true)); } catch (RuntimeException | Error e) { throw e; } catch (Throwable t) { throw Log.log.unexpectedFailure(t); } }
public void registerInterposedSynchronization(@NotNull final Transaction transaction, @NotNull final Synchronization sync) throws IllegalArgumentException { // this is silly but for some reason they've locked this API up tight try { registerSynchronizationImple.invoke((TransactionImple) transaction, new SynchronizationImple(sync, true)); } catch (RuntimeException | Error e) { throw e; } catch (Throwable t) { throw Log.log.unexpectedFailure(t); } }
/** * @message com.arjuna.ats.internal.jta.transaction.arjunacore.nullparam * [com.arjuna.ats.internal.jta.transaction.arjunacore.nullparam] * null synchronization parameter! * @message com.arjuna.ats.internal.jta.transaction.arjunacore.syncsnotallowed * [com.arjuna.ats.internal.jta.transaction.arjunacore.syncsnotallowed] * Synchronizations are not allowed! Transaction status is */ public void registerSynchronization(javax.transaction.Synchronization sync) throws javax.transaction.RollbackException, java.lang.IllegalStateException, javax.transaction.SystemException { if (jtaLogger.logger.isDebugEnabled()) { jtaLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jta.logging.FacilityCode.FAC_JTA, "TransactionImple.registerSynchronization"); } if (sync == null) { throw new javax.transaction.SystemException( "TransactionImple.registerSynchronization - " + jtaLogger.logMesg .getString("com.arjuna.ats.internal.jta.transaction.arjunacore.nullparam")); } registerSynchronizationImple(new SynchronizationImple(sync, false)); }
@Test public void testValid() { SynchronizationImple sync = new SynchronizationImple(new Synchronization()); assertTrue(sync.get_uid().notEquals(Uid.nullUid())); assertTrue(sync.beforeCompletion()); assertTrue(sync.afterCompletion(Status.STATUS_COMMITTED)); SynchronizationImple comp = new SynchronizationImple(new Synchronization()); assertTrue(comp.compareTo(sync) != 0); assertTrue(sync.toString() != null); }
@Test public void testInvalid() { SynchronizationImple sync = new SynchronizationImple(null); assertTrue(sync.get_uid().notEquals(Uid.nullUid())); assertFalse(sync.beforeCompletion()); assertFalse(sync.afterCompletion(Status.STATUS_COMMITTED)); }