GigaSpaces XAP 8.0 API

org.openspaces.core.transaction.manager
Class JiniTransactionHolder

java.lang.Object
  extended by org.springframework.transaction.support.ResourceHolderSupport
      extended by org.openspaces.core.transaction.manager.JiniTransactionHolder
All Implemented Interfaces:
ResourceHolder
Direct Known Subclasses:
ExisitingJiniTransactionHolder

public class JiniTransactionHolder
extends ResourceHolderSupport

A Jini transaction holder responsible for holding the current running transaction.

Author:
kimchy
See Also:
AbstractJiniTransactionManager

Constructor Summary
JiniTransactionHolder(Transaction.Created txCreated, int isolationLevel, LeaseRenewalManager leaseRenewalManager)
          Constructs a new jini transaction holder.
 
Method Summary
 int decRef()
           
 int getIsolationLevel()
          Returns the current transaction isolation level.
 LeaseRenewalManager getLeaseRenewalManager()
          Returns the lease renewal manager associated with this transaction, can be null.
 Transaction getTransaction()
          Returns the Jini transaction object.
 Transaction.Created getTxCreated()
          Returns the Jini transaction created object.
 boolean hasLeaseRenewalManager()
          Returns true if there is a lease renewal manager associated with this transaction
 boolean hasTransaction()
          Returns true if there is an existing transaction held by this bean, false if no transaction is in progress.
 int incRef()
           
 boolean isDisableCommit()
           
 boolean isDisableRollback()
           
 void setDisableCommit(boolean disableCommit)
           
 void setDisableRollback(boolean disableRollback)
           
 
Methods inherited from class org.springframework.transaction.support.ResourceHolderSupport
clear, getDeadline, getTimeToLiveInMillis, getTimeToLiveInSeconds, hasTimeout, isOpen, isRollbackOnly, isSynchronizedWithTransaction, isVoid, released, requested, reset, setRollbackOnly, setSynchronizedWithTransaction, setTimeoutInMillis, setTimeoutInSeconds, unbound
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiniTransactionHolder

public JiniTransactionHolder(Transaction.Created txCreated,
                             int isolationLevel,
                             LeaseRenewalManager leaseRenewalManager)
Constructs a new jini transaction holder.

Parameters:
txCreated - The Jini transaction created object
isolationLevel - The isolation level that transaction is executed under
leaseRenewalManager - The lease renewal manager for the transaction (can be null)
Method Detail

incRef

public int incRef()

decRef

public int decRef()

isDisableRollback

public boolean isDisableRollback()

setDisableRollback

public void setDisableRollback(boolean disableRollback)

isDisableCommit

public boolean isDisableCommit()

setDisableCommit

public void setDisableCommit(boolean disableCommit)

hasTransaction

public boolean hasTransaction()
Returns true if there is an existing transaction held by this bean, false if no transaction is in progress.


getTxCreated

public Transaction.Created getTxCreated()
Returns the Jini transaction created object. Can be null.


getTransaction

public Transaction getTransaction()
Returns the Jini transaction object. Can be null.


getIsolationLevel

public int getIsolationLevel()
Returns the current transaction isolation level. Maps to Spring TransactionDefinition.getIsolationLevel() values.


hasLeaseRenewalManager

public boolean hasLeaseRenewalManager()
Returns true if there is a lease renewal manager associated with this transaction


getLeaseRenewalManager

public LeaseRenewalManager getLeaseRenewalManager()
Returns the lease renewal manager associated with this transaction, can be null.


GigaSpaces XAP 8.0 API

Copyright © GigaSpaces.