public class TransactionImpl extends Object implements Transaction
Transaction.State| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_TIMEOUT |
static String |
TIMEOUT_SYSTEM_PROPERTY |
| Constructor and Description |
|---|
TransactionImpl(javax.jcr.Session session,
String userName)
Create a transaction for the given Session
|
| Modifier and Type | Method and Description |
|---|---|
void |
commit() |
void |
expire() |
Date |
getCreated() |
Date |
getExpires() |
String |
getId() |
javax.jcr.Session |
getSession() |
Transaction.State |
getState() |
boolean |
isAssociatedWithUser(String userName) |
void |
rollback() |
void |
updateExpiryDate() |
public static final long DEFAULT_TIMEOUT
public static final String TIMEOUT_SYSTEM_PROPERTY
public TransactionImpl(javax.jcr.Session session,
String userName)
session - the given sessionuserName - the user namepublic javax.jcr.Session getSession()
getSession in interface Transactionpublic Date getCreated()
getCreated in interface Transactionpublic String getId()
getId in interface Transactionpublic Transaction.State getState() throws javax.jcr.RepositoryException
getState in interface Transactionjavax.jcr.RepositoryExceptionpublic Date getExpires()
getExpires in interface Transactionpublic void commit()
commit in interface Transactionpublic void expire()
expire in interface Transactionpublic boolean isAssociatedWithUser(String userName)
isAssociatedWithUser in interface Transactionpublic void rollback()
rollback in interface Transactionpublic void updateExpiryDate()
updateExpiryDate in interface TransactionCopyright © 2013-2015 DuraSpace, Inc.. All Rights Reserved.