public Transaction getTransaction() { return txSynch.getTransaction(); }
/** * Unlock the TransactionLocal using the current transaction */ public void unlock() { unlock(getTransaction()); }
/** * Unlock the TransactionLocal using the current transaction */ public void unlock() { unlock(getTransaction()); }
/** * Lock the TransactionLocal using the current transaction<p> * * WARN: The current implemention just "locks the transactions" * * @throws IllegalStateException if the transaction is not active * @throws InterruptedException if the thread is interrupted */ public void lock() throws InterruptedException { lock(getTransaction()); }
/** * Sets the value of this TransactionLocal variable associtated with the * thread context transaction. This is only used to change the value from * the one assigned by the initialValue method, and many applications will * have no need for this functionality. * * @param value the value to be associated with the thread context * transactions's TransactionLocal */ public void set(Object value) { set(getTransaction(), value); }
/** * Lock the TransactionLocal using the current transaction<p> * * WARN: The current implemention just "locks the transactions" * * @throws IllegalStateException if the transaction is not active * @throws InterruptedException if the thread is interrupted */ public void lock() throws InterruptedException { lock(getTransaction()); }
/** * Returns the value of this TransactionLocal variable associated with the * thread context transaction. Creates and initializes the copy if this is * the first time the method is called in a transaction. * * @return the value of this TransactionLocal */ public Object get() { return get(getTransaction()); }
/** * Returns the value of this TransactionLocal variable associated with the * thread context transaction. Creates and initializes the copy if this is * the first time the method is called in a transaction. * * @return the value of this TransactionLocal */ public Object get() { return get(getTransaction()); }
/** * Sets the value of this TransactionLocal variable associtated with the * thread context transaction. This is only used to change the value from * the one assigned by the initialValue method, and many applications will * have no need for this functionality. * * @param value the value to be associated with the thread context * transactions's TransactionLocal */ public void set(Object value) { set(getTransaction(), value); }
if(id != null) final Transaction tx = cache.getTransaction(); if(tx == null)
rethrowAsSystemException("Unable to begin transaction with JCA lazy enlistment scenario", trackByTx.getTransaction(), t);