Package org.fcrepo.kernel.impl
Class TransactionImpl
java.lang.Object
org.fcrepo.kernel.impl.TransactionImpl
- All Implemented Interfaces:
org.fcrepo.kernel.api.Transaction
The Fedora Transaction implementation
- Author:
- mohideen
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTransactionImpl(String id, TransactionManagerImpl txManager, Duration sessionTimeout) -
Method Summary
Modifier and TypeMethodDescriptionvoidcommit()voidvoidvoidvoidexpire()voidfail()getId()booleanbooleanbooleanisOpen()booleanbooleanbooleanbooleanvoidlockResource(org.fcrepo.kernel.api.identifiers.FedoraId resourceId) voidlockResourceAndGhostNodes(org.fcrepo.kernel.api.identifiers.FedoraId resourceId) If you create an object with ghost nodes above it, we need to lock those paths as well to ensure no other operation alters them while the current transaction is in process.voidlockResourceNonExclusive(org.fcrepo.kernel.api.identifiers.FedoraId resourceId) voidrefresh()voidvoidrollback()voidsetBaseUri(String baseUri) voidsetShortLived(boolean shortLived) voidsetUserAgent(String userAgent) voidtoString()updateExpiry(Duration amountToAdd)
-
Constructor Details
-
TransactionImpl
-
-
Method Details
-
commit
- Specified by:
commitin interfaceorg.fcrepo.kernel.api.Transaction
-
isCommitted
- Specified by:
isCommittedin interfaceorg.fcrepo.kernel.api.Transaction
-
rollback
- Specified by:
rollbackin interfaceorg.fcrepo.kernel.api.Transaction
-
doInTx
- Specified by:
doInTxin interfaceorg.fcrepo.kernel.api.Transaction
-
fail
- Specified by:
failin interfaceorg.fcrepo.kernel.api.Transaction
-
isRolledBack
- Specified by:
isRolledBackin interfaceorg.fcrepo.kernel.api.Transaction
-
getId
- Specified by:
getIdin interfaceorg.fcrepo.kernel.api.Transaction
-
setShortLived
- Specified by:
setShortLivedin interfaceorg.fcrepo.kernel.api.Transaction
-
isShortLived
- Specified by:
isShortLivedin interfaceorg.fcrepo.kernel.api.Transaction
-
isOpenLongRunning
- Specified by:
isOpenLongRunningin interfaceorg.fcrepo.kernel.api.Transaction
-
isOpen
- Specified by:
isOpenin interfaceorg.fcrepo.kernel.api.Transaction
-
ensureCommitting
- Specified by:
ensureCommittingin interfaceorg.fcrepo.kernel.api.Transaction
-
isReadOnly
- Specified by:
isReadOnlyin interfaceorg.fcrepo.kernel.api.Transaction
-
expire
- Specified by:
expirein interfaceorg.fcrepo.kernel.api.Transaction
-
hasExpired
- Specified by:
hasExpiredin interfaceorg.fcrepo.kernel.api.Transaction
-
updateExpiry
- Specified by:
updateExpiryin interfaceorg.fcrepo.kernel.api.Transaction
-
getExpires
- Specified by:
getExpiresin interfaceorg.fcrepo.kernel.api.Transaction
-
commitIfShortLived
- Specified by:
commitIfShortLivedin interfaceorg.fcrepo.kernel.api.Transaction
-
refresh
- Specified by:
refreshin interfaceorg.fcrepo.kernel.api.Transaction
-
lockResource
- Specified by:
lockResourcein interfaceorg.fcrepo.kernel.api.Transaction
-
lockResourceNonExclusive
- Specified by:
lockResourceNonExclusivein interfaceorg.fcrepo.kernel.api.Transaction
-
lockResourceAndGhostNodes
If you create an object with ghost nodes above it, we need to lock those paths as well to ensure no other operation alters them while the current transaction is in process.- Specified by:
lockResourceAndGhostNodesin interfaceorg.fcrepo.kernel.api.Transaction- Parameters:
resourceId- the resource we are creating
-
releaseResourceLocksIfShortLived
- Specified by:
releaseResourceLocksIfShortLivedin interfaceorg.fcrepo.kernel.api.Transaction
-
setBaseUri
- Specified by:
setBaseUriin interfaceorg.fcrepo.kernel.api.Transaction
-
setUserAgent
- Specified by:
setUserAgentin interfaceorg.fcrepo.kernel.api.Transaction
-
suppressEvents
- Specified by:
suppressEventsin interfaceorg.fcrepo.kernel.api.Transaction
-
toString
-