/** * does Transaction contain object? * * @param tx the transaction * @return true if it has an object */ protected boolean containsValue(Transaction tx) { return delegate.containsValue(this, tx); }
/** * get the transaction local value. * * @param tx the transaction * @return the obejct */ protected Object getValue(Transaction tx) { return delegate.getValue(this, tx); }
/** * put the value in the TransactionImpl map * * @param tx the transaction * @param value the value */ protected void storeValue(Transaction tx, Object value) { delegate.storeValue(this, tx, value); }
/** * Unlock the ThreadLocal using the provided transaction * * @param transaction the transaction */ public void unlock(Transaction transaction) { // ignore when there is no transaction if (transaction == null) return; delegate.unlock(this, transaction); }
/** * Lock the TransactionLocal using the provided transaction<p> * * WARN: The current implemention just "locks the transactions" * * @param transaction the transaction * @throws IllegalStateException if the transaction is not active * @throws InterruptedException if the thread is interrupted */ public void lock(Transaction transaction) throws InterruptedException { // ignore when there is no transaction if (transaction == null) return; delegate.lock(this, transaction); }
/** * Unlock the ThreadLocal using the provided transaction * * @param transaction the transaction */ public void unlock(Transaction transaction) { // ignore when there is no transaction if (transaction == null) return; delegate.unlock(this, transaction); }
/** * Lock the TransactionLocal using the provided transaction<p> * * WARN: The current implemention just "locks the transactions" * * @param transaction the transaction * @throws IllegalStateException if the transaction is not active * @throws InterruptedException if the thread is interrupted */ public void lock(Transaction transaction) throws InterruptedException { // ignore when there is no transaction if (transaction == null) return; delegate.lock(this, transaction); }
/** * does Transaction contain object? * * @param tx the transaction * @return true if it has an object */ protected boolean containsValue(Transaction tx) { return delegate.containsValue(this, tx); }
/** * get the transaction local value. * * @param tx the transaction * @return the obejct */ protected Object getValue(Transaction tx) { return delegate.getValue(this, tx); }
/** * put the value in the TransactionImpl map * * @param tx the transaction * @param value the value */ protected void storeValue(Transaction tx, Object value) { delegate.storeValue(this, tx, value); }