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 |
commit()
"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 commit()
throws javax.jcr.RepositoryException
javax.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.