public interface Transaction
| Modifier and Type | Interface and Description |
|---|---|
static class |
Transaction.State |
| Modifier and Type | Method and Description |
|---|---|
void |
addPathToVersion(String absPath)
Adds a path at which a new version should be made upon successful
completion of this transaction.
|
void |
commit(VersionService vService)
"Commit" the transaction by saving the backing-session
|
void |
expire()
End the session, and mark for reaping
|
Date |
getCreated()
Get the date this transaction was created
|
Date |
getExpires()
Get the Date when this transaction is expired and can be
garbage-collected
|
String |
getId()
Get the transaction identifier
|
javax.jcr.Session |
getSession()
Get the transaction-aware session
|
Transaction.State |
getState()
Get the state of this transaction
|
boolean |
isAssociatedWithUser(String userName)
Checks if this transaction is associated with a specific user.
|
void |
rollback()
Discard all unpersisted changes and expire
|
void |
updateExpiryDate()
Roll forward the expiration date for recent activity
|
javax.jcr.Session getSession()
Date getCreated()
String getId()
Transaction.State getState() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionDate getExpires()
void addPathToVersion(String absPath)
absPath - the object path to the resource to have a version
checkpoint madevoid commit(VersionService vService) throws javax.jcr.RepositoryException
vService - a versionServicejavax.jcr.RepositoryExceptionvoid expire()
boolean isAssociatedWithUser(String userName)
userName - the uservoid rollback()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionvoid updateExpiryDate()
Copyright © 2013–2014 DuraSpace, Inc.. All rights reserved.