| 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)
Retrieve an open
Transaction |
boolean |
isAssociatedWithUser(String txId,
String userName)
Checks if a user is bound to a
Transaction |
void |
removeAndRollbackExpired()
Check for expired transactions and remove them
|
Transaction |
rollback(String txid)
Roll a
Transaction back |
void |
setVersionService(VersionService versionService) |
exists, setRepositoryvoid removeAndRollbackExpired()
Transaction beginTransaction(javax.jcr.Session sess, String userName) throws javax.jcr.RepositoryException
sess - The session to use for this TransactionTransactionjavax.jcr.RepositoryExceptionTransaction getTransaction(String txid) throws TransactionMissingException
Transactiontxid - the Id of the TransactionTransactionTransactionMissingExceptionTransaction getTransaction(javax.jcr.Session session) throws TransactionMissingException
session - TransactionMissingExceptionboolean exists(String txid)
txid - the Id of the TransactionTransactionTransaction commit(String txid) throws javax.jcr.RepositoryException
Transaction with the given idtxid - the id of the Transactionjavax.jcr.RepositoryExceptionTransaction rollback(String txid) throws javax.jcr.RepositoryException
Transaction backtxid - the id of the TransactionTransaction objectjavax.jcr.RepositoryException - if the Transaction could not be foundboolean isAssociatedWithUser(String txId, String userName)
TransactiontxId - the id of the TransactionuserName - the name of the Principalvoid setVersionService(VersionService versionService)
versionService - the versionService to setCopyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.