public interface TransactionService
| Modifier and Type | Method and Description |
|---|---|
Transaction |
beginTransaction(javax.jcr.Session sess,
java.lang.String userName)
Create a new Transaction and add it to the currently open ones
|
Transaction |
commit(java.lang.String txid)
Commit a
Transaction with the given id |
boolean |
exists(java.lang.String txid)
Check if a Transaction exists
|
Transaction |
getTransaction(javax.jcr.Session session)
Get the current Transaction for a session
|
Transaction |
getTransaction(java.lang.String txId,
java.lang.String userName)
Recieve an open
Transaction for a given user |
void |
removeAndRollbackExpired()
Check for expired transactions and remove them
|
Transaction |
rollback(java.lang.String txid)
Roll a
Transaction back |
void removeAndRollbackExpired()
Transaction beginTransaction(javax.jcr.Session sess, java.lang.String userName)
sess - The session to use for this TransactionTransactionTransaction getTransaction(java.lang.String txId, java.lang.String userName) throws TransactionMissingException
Transaction for a given usertxId - the Id of the TransactionuserName - the name of the java.security.PrincipalTransactionTransactionMissingException - if the transaction could not be found or is not associated
with this userTransaction getTransaction(javax.jcr.Session session) throws TransactionMissingException
session - TransactionMissingExceptionboolean exists(java.lang.String txid)
txid - the Id of the TransactionTransactionTransaction commit(java.lang.String txid)
Transaction with the given idtxid - the id of the TransactionTransaction rollback(java.lang.String txid)
Transaction backtxid - the id of the TransactionTransaction objectCopyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.