public interface TransactionService
| Modifier and Type | Method and Description |
|---|---|
Transaction |
beginTransaction(javax.jcr.Session sess,
String userName)
Create a new Transaction and add it to the currently open ones
|
Transaction |
commit(String txid)
Commit a
Transaction with the given id |
boolean |
exists(String txid)
Check if a Transaction exists
|
Transaction |
getTransaction(javax.jcr.Session session)
Get the current Transaction for a session
|
Transaction |
getTransaction(String txId,
String userName)
Receive an open
Transaction for a given user |
void |
removeAndRollbackExpired()
Check for expired transactions and remove them
|
Transaction |
rollback(String txid)
Roll a
Transaction back |
void removeAndRollbackExpired()
Transaction beginTransaction(javax.jcr.Session sess, String userName)
sess - The session to use for this TransactionuserName - the user nameTransactionTransaction getTransaction(String txId, String userName)
Transaction for a given usertxId - the Id of the TransactionuserName - the name of the PrincipalTransaction
with this userTransaction getTransaction(javax.jcr.Session session)
session - the sessionboolean exists(String txid)
txid - the Id of the TransactionTransactionTransaction commit(String txid)
Transaction with the given idtxid - the id of the TransactionTransaction rollback(String txid)
Transaction backtxid - the id of the TransactionTransaction objectCopyright © 2013–2015 DuraSpace, Inc.. All rights reserved.