Interface DelegatingCDOTransaction
- All Superinterfaces:
AutoCloseable, CDOBranchPoint, CDOBranchProvider, CDOChangeSetDataProvider, CDOCommitHistory.Provider<CDOObject, CDOObjectHistory>, CDOCommonTransaction, CDOCommonView, CDORevisionProvider, CDORollbackable, CDOTimeProvider, CDOTransaction, CDOUpdatable, CDOUserTransaction, CDOView, org.eclipse.net4j.util.collection.Closeable, IAdaptable, org.eclipse.net4j.util.container.IContainer<CDOResourceNode>, org.eclipse.net4j.util.event.INotifier, org.eclipse.net4j.util.options.IOptionsContainer, org.eclipse.net4j.util.properties.IPropertiesContainer
SPI for a transaction wrapper that exposes exactly one delegation level.
- Since:
- 4.30
- Author:
- Eike Stepper
-
Nested Class Summary
Nested classes/interfaces inherited from interface CDOTransaction
CDOTransaction.CommitResult<T>, CDOTransaction.OptionsNested classes/interfaces inherited from interface org.eclipse.net4j.util.container.IContainer
org.eclipse.net4j.util.container.IContainer.Modifiable<E>, org.eclipse.net4j.util.container.IContainer.Persistable<E>, org.eclipse.net4j.util.container.IContainer.Persistence<E>Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2 -
Field Summary
Fields inherited from interface CDOBranchPoint
INVALID_DATE, UNSPECIFIED_DATEFields inherited from interface CDOUpdatable
NO_TIMEOUTFields inherited from interface CDOView
PROP_LIFECYCLE_EXCEPTION_HANDLER, PROP_TIME_MACHINE_DISABLED -
Method Summary
Modifier and TypeMethodDescriptionReturns the directly wrapped transaction.static CDOTransactiongetEffectiveTransaction(CDOTransaction transaction) Resolves a wrapper chain to its effective non-delegating transaction.Methods inherited from interface AutoCloseable
closeMethods inherited from interface CDOBranchPoint
getBranch, getTimeStampMethods inherited from interface CDOChangeSetDataProvider
getChangeSetDataMethods inherited from interface CDOCommitHistory.Provider
getHistory, getHistoryMethods inherited from interface CDOCommonView
getDurableLockingID, getLockOwner, getSessionID, getViewID, isDurableView, isHistorical, isReadOnlyMethods inherited from interface CDORevisionProvider
getRevisionMethods inherited from interface CDOTransaction
addTransactionHandler, commit, commit, commit, commit, commit, commit, commitAndClose, createBinaryResource, createQuery, createQuery, createResource, createResourceFolder, createTextResource, exportChanges, getCommitComment, getCommitProperty, getCommittables, getConflicts, getDetachedObjects, getDirtyObjects, getFirstSavepoint, getInnermostScope, getLastCommitTime, getLastSavepoint, getNewObjects, getOrCreateBinaryResource, getOrCreateResource, getOrCreateResourceFolder, getOrCreateTextResource, getOutermostScope, getRevisionDeltas, getScopes, getTransactionHandlers, getTransactionHandlers1, getTransactionHandlers2, hasConflict, importChanges, isDirty, merge, merge, merge, merge, openScope, options, removeTransactionHandler, revertTo, setCommitComment, setCommitProperty, setCommittables, setSavepointMethods inherited from interface CDOUpdatable
getLastUpdateTime, runAfterUpdate, waitForUpdate, waitForUpdateMethods inherited from interface CDOUserTransaction
commit, commit, rollbackMethods inherited from interface CDOView
addObjectHandler, addRegistrationHandler, compareRevisions, createQuery, createQuery, createResourceURI, disableDurableLocking, enableDurableLocking, enableDurableLocking, getBinaryResource, getLockStates, getLockStates, getLockStatesOfObjects, getObject, getObject, getObject, getObjectHandlers, getObjects, getProvider, getRegistrationHandlers, getResource, getResource, getResourceFolder, getResourceNode, getResourceSet, getRootResource, getSession, getTextResource, getUnitManager, getURI, getURIHandler, getViewLock, getViewSet, hasResource, isInvalidating, isInvalidationRunnerActive, isLegacyModeEnabled, isObjectRegistered, lockObjects, lockObjects, queryInstances, queryInstancesAsync, queryInstancesAsync, queryResources, queryResourcesAsync, queryXRefs, queryXRefs, queryXRefsAsync, refreshLockStates, refreshLockStates, reload, removeObjectHandler, removeRegistrationHandler, setBranch, setBranch, setBranchPoint, setBranchPoint, setBranchPoint, setBranchPoint, setResourcePathCache, setTimeStamp, setTimeStamp, sync, syncExec, syncExec, unlockObjects, unlockObjects, unlockObjectsMethods inherited from interface org.eclipse.net4j.util.collection.Closeable
close, isClosedMethods inherited from interface IAdaptable
getAdapterMethods inherited from interface org.eclipse.net4j.util.container.IContainer
getElements, isEmptyMethods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListenerMethods inherited from interface org.eclipse.net4j.util.properties.IPropertiesContainer
properties
-
Method Details
-
getDelegate
CDOTransaction getDelegate()Returns the directly wrapped transaction.- Returns:
- the delegate, without recursively unwrapping it.
-
getEffectiveTransaction
Resolves a wrapper chain to its effective non-delegating transaction. Identity-based cycle detection makes malformed cyclic chains terminate deterministically.- Parameters:
transaction- the transaction or wrapper to resolve.- Returns:
- the effective transaction, or the last safely reachable wrapper.
-