public interface Transaction
Modifier and Type | Interface and Description |
---|---|
static class |
Transaction.State |
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
|
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()
Transaction.State getState()
Date getExpires()
void commit()
void expire()
boolean isAssociatedWithUser(String userName)
userName
- the uservoid rollback()
void updateExpiryDate()
Copyright © 2013–2016 DuraSpace, Inc.. All rights reserved.