Package de.uplanet.server.transaction
Interface ITransaction
-
@Scriptable public interface ITransaction
Interface for transactions managed by the transaction manager.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addAfterCommitAction(IAfterCommitAction p_action)
Add an after-commit action to this transactionvoid
commit()
Commit Transactionboolean
delistResource(ITransactionResource p_res)
Removes a transaction resource from this transaction.boolean
delistResource(Connection p_conn)
Convencience method for delisting JDBC connections.void
end()
End Transactionboolean
enlistResource(ITransactionResource p_res)
Adds a transaction resource to this transaction.boolean
enlistResource(Connection p_conn)
Convencience method for enlisting JDBC connections.boolean
isRollbackOnly()
Get the end mode for this transaction.void
rollback()
Rollback Transactionvoid
setRollbackOnly()
Sets the end mode for this transaction.
-
-
-
Method Detail
-
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
boolean enlistResource(ITransactionResource p_res)
Adds a transaction resource to this transaction.- Parameters:
p_res
- transaction resource- Returns:
- true, if enlisting is successfull, otherwise false
-
delistResource
boolean delistResource(ITransactionResource p_res)
Removes a transaction resource from this transaction.- Parameters:
p_res
- transaction resource- Returns:
- true, if delisting is successfull, otherwise false
-
enlistResource
boolean enlistResource(Connection p_conn)
Convencience method for enlisting JDBC connections.- Parameters:
p_conn
- connection to enlist- Returns:
- true, if enlisting is successfull, otherwise false
-
delistResource
boolean delistResource(Connection p_conn)
Convencience method for delisting JDBC connections.- Parameters:
p_conn
- connection to delist- Returns:
- true, if delisting is successfull, otherwise false
-
addAfterCommitAction
void addAfterCommitAction(IAfterCommitAction p_action)
Add an after-commit action to this transaction- Parameters:
p_action
- The action to be added.
-
-