Package de.uplanet.server.transaction
Interface ITransaction
@Scriptable
public interface ITransaction
Interface for transactions managed by the transaction manager.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAfterCommitAction
(IAfterCommitAction p_action) Add an after-commit action to this transactionvoid
commit()
Commit Transactionboolean
Removes a transaction resource from this transaction.boolean
delistResource
(Connection p_conn) Convencience method for delisting JDBC connections.void
end()
End Transactionboolean
Adds a transaction resource to this transaction.boolean
enlistResource
(Connection p_conn) Convencience method for enlisting JDBC connections.boolean
Get the end mode for this transaction.void
rollback()
Rollback Transactionvoid
Sets the end mode for this transaction.
-
Method Details
-
end
End Transaction- Throws:
Exception
-
commit
Commit Transaction- Throws:
Exception
-
rollback
Rollback Transaction- Throws:
Exception
-
setRollbackOnly
void setRollbackOnly()Sets the end mode for this transaction. Iftrue
, a rollback is performed on callingend()
. -
isRollbackOnly
boolean isRollbackOnly()Get the end mode for this transaction.- Returns:
- The end mode.
-
enlistResource
Adds a transaction resource to this transaction.- Parameters:
p_res
- transaction resource- Returns:
- true, if enlisting is successfull, otherwise false
-
delistResource
Removes a transaction resource from this transaction.- Parameters:
p_res
- transaction resource- Returns:
- true, if delisting is successfull, otherwise false
-
enlistResource
Convencience method for enlisting JDBC connections.- Parameters:
p_conn
- connection to enlist- Returns:
- true, if enlisting is successfull, otherwise false
-
delistResource
Convencience method for delisting JDBC connections.- Parameters:
p_conn
- connection to delist- Returns:
- true, if delisting is successfull, otherwise false
-
addAfterCommitAction
Add an after-commit action to this transaction- Parameters:
p_action
- The action to be added.
-