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.SerializableDeprecated.- 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 voidbegin()Deprecated.Starts a new transaction, and associate it with the calling thread.voidcommit()Deprecated.Attempt to commit this transaction.intgetStatus()Deprecated.Get the status of the transaction.voidrollback()Deprecated.Rolls back this transaction.voidsetRollbackOnly()Deprecated.Mark the transaction so that the only possible outcome is a rollback.voidsetTransactionTimeout(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.SystemExceptionDeprecated.Starts a new transaction, and associate it with the calling thread.- Specified by:
beginin 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.SystemExceptionDeprecated.Attempt to commit this transaction.- Specified by:
commitin 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.SystemExceptionDeprecated.Rolls back this transaction.- Specified by:
rollbackin 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.SystemExceptionDeprecated.Mark the transaction so that the only possible outcome is a rollback.- Specified by:
setRollbackOnlyin 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.SystemExceptionDeprecated.Get the status of the transaction.- Specified by:
getStatusin interfacejavax.transaction.UserTransaction- Returns:
- The status of the transaction. This is one of the
Statusconstants. - Throws:
javax.transaction.SystemException- If the transaction service fails in an unexpected way.
-
setTransactionTimeout
public void setTransactionTimeout(int seconds) throws javax.transaction.SystemExceptionDeprecated.Change the transaction timeout for transactions started by the calling thread with thebegin()method.- Specified by:
setTransactionTimeoutin 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.
-
-