public class Transaction extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Transaction.State
Information about the state of the transaction
|
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_TIMEOUT |
static String |
TIMEOUT_SYSTEM_PROPERTY |
| Constructor and Description |
|---|
Transaction(javax.jcr.Session session)
Create a transaction for the given Session
|
| 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
|
void |
rollback()
Discard all unpersisted changes and expire
|
void |
updateExpiryDate()
Roll forward the expiration date for recent activity
|
public static final long DEFAULT_TIMEOUT
public static final String TIMEOUT_SYSTEM_PROPERTY
public Transaction(javax.jcr.Session session)
session - public javax.jcr.Session getSession()
public Date getCreated()
public String getId()
public Transaction.State getState() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic Date getExpires()
public void addPathToVersion(String absPath)
absPath - the object path to the resource to have a version
checkpoint madepublic void commit(VersionService vService) throws javax.jcr.RepositoryException
vService - a versionServicejavax.jcr.RepositoryExceptionpublic void expire()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void rollback()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void updateExpiryDate()
Copyright © 2013 DuraSpace, Inc.. All Rights Reserved.