public static interface IStoreAccessor.CommitContext extends CDORevisionProvider
IStoreAccessor
API. All these method calls get the same CommitContext
instance
passed so that the implementor of the IStoreAccessor
can track the state and progress of the commit
operation.Modifier and Type | Method and Description |
---|---|
CDOCommitInfo |
createCommitInfo() |
CDOBranchPoint |
getBranchPoint()
Returns the branch ID and timestamp of this commit operation.
|
java.lang.String |
getCommitComment() |
CDOBranchPoint |
getCommitMergeSource() |
<T> T |
getData(java.lang.Object key) |
CDOID[] |
getDetachedObjects()
Returns an array of the removed object that are part of the commit operation represented by this
CommitContext . |
java.util.Map<CDOID,EClass> |
getDetachedObjectTypes()
|
CDOBranchVersion[] |
getDetachedObjectVersions() |
InternalCDORevisionDelta[] |
getDirtyObjectDeltas()
Returns an array of the dirty object deltas that are part of the commit operation represented by this
CommitContext . |
InternalCDORevision[] |
getDirtyObjects()
Returns an array of the dirty objects that are part of the commit operation represented by this
CommitContext . |
java.util.Map<CDOID,CDOID> |
getIDMappings()
Returns an unmodifiable map from all temporary IDs to their persistent counter parts.
|
CDOID[] |
getIDsToUnlock() |
long |
getLastUpdateTime() |
ExtendedDataInputStream |
getLobs()
Returns a stream that all
lobs can be read from. |
CDOLockState[] |
getLocksOnNewObjects()
Returns an array of the locks on the new objects that are part of the commit operation represented by this
CommitContext . |
InternalCDORevision[] |
getNewObjects()
Returns an array of the new objects that are part of the commit operation represented by this
CommitContext . |
InternalCDOPackageUnit[] |
getNewPackageUnits()
Returns an array of the new package units that are part of the commit operation represented by this
CommitContext . |
java.util.Map<CDOID,InternalCDORevision> |
getNewRevisions() |
java.util.Map<CDOID,InternalCDORevision> |
getOldRevisions() |
CDOProtocol.CommitData |
getOriginalCommmitData() |
InternalCDOPackageRegistry |
getPackageRegistry()
Returns the temporary, transactional package manager associated with the commit operation represented by this
CommitContext . |
java.util.List<RWOLockManager.LockState<java.lang.Object,IView>> |
getPostCommmitLockStates() |
long |
getPreviousTimeStamp() |
java.lang.String |
getRollbackMessage() |
byte |
getRollbackReason() |
byte |
getSecurityImpact() |
ITransaction |
getTransaction()
Returns the transactional view (
ITransaction ) which is the scope of the commit operation represented
by this CommitContext . |
java.lang.String |
getUserID() |
java.util.List<CDOIDReference> |
getXRefs() |
boolean |
isAutoReleaseLocksEnabled()
Deprecated.
As of 4.5 no longer supported. See
getIDsToUnlock() . |
boolean |
isClearResourcePathCache() |
boolean |
isUsingEcore() |
boolean |
isUsingEtypes() |
<T> T |
setData(java.lang.Object key,
T data) |
getRevision
ITransaction getTransaction()
ITransaction
) which is the scope of the commit operation represented
by this CommitContext
.CDOBranchPoint getBranchPoint()
long getPreviousTimeStamp()
java.lang.String getUserID()
java.lang.String getCommitComment()
CDOBranchPoint getCommitMergeSource()
long getLastUpdateTime()
InternalCDOPackageRegistry getPackageRegistry()
CommitContext
. In addition to the packages registered with the session this package manager also
contains the new packages that are part of this commit operation.boolean isClearResourcePathCache()
byte getSecurityImpact()
boolean isUsingEcore()
boolean isUsingEtypes()
InternalCDOPackageUnit[] getNewPackageUnits()
CommitContext
.InternalCDORevision[] getNewObjects()
CommitContext
.InternalCDORevision[] getDirtyObjects()
CommitContext
.InternalCDORevisionDelta[] getDirtyObjectDeltas()
CommitContext
.CDOID[] getDetachedObjects()
CommitContext
.CDOBranchVersion[] getDetachedObjectVersions()
java.util.Map<CDOID,InternalCDORevision> getOldRevisions()
java.util.Map<CDOID,InternalCDORevision> getNewRevisions()
CDOProtocol.CommitData getOriginalCommmitData()
ExtendedDataInputStream getLobs()
lobs
can be read from. The format of the data delivered through the
stream is:
int
: the number of lobs to be read from the stream.
int + byte[]
: the id of the lob (prepended by the size of the
id).
long
: the size of the lob. The following interpretation applies:
@Deprecated boolean isAutoReleaseLocksEnabled()
getIDsToUnlock()
.CDOLockState[] getLocksOnNewObjects()
CommitContext
.CDOID[] getIDsToUnlock()
java.util.Map<CDOID,CDOID> getIDMappings()
CDOCommitInfo createCommitInfo()
byte getRollbackReason()
CDOProtocolConstants
java.lang.String getRollbackMessage()
java.util.List<CDOIDReference> getXRefs()
java.util.List<RWOLockManager.LockState<java.lang.Object,IView>> getPostCommmitLockStates()
<T> T getData(java.lang.Object key)
<T> T setData(java.lang.Object key, T data)
Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html