Class Transaction
java.lang.Object
com.denodo.vdb.engine.storedprocedure.Transaction
- Since:
- 3.5
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
commit()
Commits the current transactionfinal boolean
delistResource
(XAResource xaRes, int flag) Important: do not invoke this method.final boolean
enlistResource
(XAResource xaRes) Important: do not invoke this method.final void
rollback()
Rollbacks the current transaction.
-
Method Details
-
enlistResource
public final boolean enlistResource(XAResource xaRes) throws javax.transaction.SystemException, javax.transaction.RollbackException Important: do not invoke this method. It is not intended to be invoked from a stored procedure.- Parameters:
xaRes
- -- Returns:
- -
- Throws:
javax.transaction.SystemException
- -javax.transaction.RollbackException
- -
-
delistResource
public final boolean delistResource(XAResource xaRes, int flag) throws javax.transaction.SystemException Important: do not invoke this method. It is not intended to be invoked from a stored procedure.- Parameters:
xaRes
- -flag
- -- Returns:
- -
- Throws:
javax.transaction.SystemException
- -
-
rollback
public final void rollback() throws javax.transaction.SystemExceptionRollbacks the current transaction.- Throws:
javax.transaction.SystemException
- If there is an error while rolling back the transaction.
-
commit
public final void commit() throws javax.transaction.RollbackException, javax.transaction.HeuristicMixedException, javax.transaction.HeuristicRollbackException, javax.transaction.SystemExceptionCommits the current transaction- Throws:
javax.transaction.SystemException
- If there is an error while committing the transaction.javax.transaction.HeuristicRollbackException
- If there is an error while committing the transaction.javax.transaction.HeuristicMixedException
- If there is an error while committing the transaction.javax.transaction.RollbackException
- If there is an error while committing the transaction.
-