Package org.infinispan.transaction.tm
Class DummyUserTransaction
- java.lang.Object
-
- org.infinispan.transaction.tm.DummyUserTransaction
-
- All Implemented Interfaces:
java.io.Serializable
,javax.transaction.UserTransaction
@Deprecated public class DummyUserTransaction extends java.lang.Object implements javax.transaction.UserTransaction, java.io.Serializable
Deprecated.- Since:
- 4.0
- Author:
- bela Date: May 15, 2003 Time: 4:20:17 PM
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DummyUserTransaction(DummyTransactionManager tm)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
begin()
Deprecated.Starts a new transaction, and associate it with the calling thread.void
commit()
Deprecated.Attempt to commit this transaction.int
getStatus()
Deprecated.Get the status of the transaction.void
rollback()
Deprecated.Rolls back this transaction.void
setRollbackOnly()
Deprecated.Mark the transaction so that the only possible outcome is a rollback.void
setTransactionTimeout(int seconds)
Deprecated.Change the transaction timeout for transactions started by the calling thread with thebegin()
method.
-
-
-
Constructor Detail
-
DummyUserTransaction
public DummyUserTransaction(DummyTransactionManager tm)
Deprecated.
-
-
Method Detail
-
begin
public void begin() throws javax.transaction.NotSupportedException, javax.transaction.SystemException
Deprecated.Starts a new transaction, and associate it with the calling thread.- Specified by:
begin
in interfacejavax.transaction.UserTransaction
- Throws:
javax.transaction.NotSupportedException
- If the calling thread is already associated with a transaction, and nested transactions are not supported.javax.transaction.SystemException
- If the transaction service fails in an unexpected way.
-
commit
public void commit() throws javax.transaction.RollbackException, javax.transaction.HeuristicMixedException, javax.transaction.HeuristicRollbackException, java.lang.SecurityException, javax.transaction.SystemException
Deprecated.Attempt to commit this transaction.- Specified by:
commit
in interfacejavax.transaction.UserTransaction
- Throws:
javax.transaction.RollbackException
- If the transaction was marked for rollback only, the transaction is rolled back and this exception is thrown.javax.transaction.SystemException
- If the transaction service fails in an unexpected way.javax.transaction.HeuristicMixedException
- If a heuristic decision was made and some some parts of the transaction have been committed while other parts have been rolled back.javax.transaction.HeuristicRollbackException
- If a heuristic decision to roll back the transaction was made.java.lang.SecurityException
- If the caller is not allowed to commit this transaction.
-
rollback
public void rollback() throws java.lang.IllegalStateException, javax.transaction.SystemException
Deprecated.Rolls back this transaction.- Specified by:
rollback
in interfacejavax.transaction.UserTransaction
- Throws:
java.lang.IllegalStateException
- If the transaction is in a state where it cannot be rolled back. This could be because the transaction is no longer active, or because it is in theprepared state
.javax.transaction.SystemException
- If the transaction service fails in an unexpected way.
-
setRollbackOnly
public void setRollbackOnly() throws java.lang.IllegalStateException, javax.transaction.SystemException
Deprecated.Mark the transaction so that the only possible outcome is a rollback.- Specified by:
setRollbackOnly
in interfacejavax.transaction.UserTransaction
- Throws:
java.lang.IllegalStateException
- If the transaction is not in an active state.javax.transaction.SystemException
- If the transaction service fails in an unexpected way.
-
getStatus
public int getStatus() throws javax.transaction.SystemException
Deprecated.Get the status of the transaction.- Specified by:
getStatus
in interfacejavax.transaction.UserTransaction
- Returns:
- The status of the transaction. This is one of the
Status
constants. - Throws:
javax.transaction.SystemException
- If the transaction service fails in an unexpected way.
-
setTransactionTimeout
public void setTransactionTimeout(int seconds) throws javax.transaction.SystemException
Deprecated.Change the transaction timeout for transactions started by the calling thread with thebegin()
method.- Specified by:
setTransactionTimeout
in interfacejavax.transaction.UserTransaction
- Parameters:
seconds
- The new timeout value, in seconds. If this parameter is0
, the timeout value is reset to the default value.- Throws:
javax.transaction.SystemException
- If the transaction service fails in an unexpected way.
-
-