Class AbstractCDORevision
java.lang.Object
org.eclipse.emf.cdo.spi.common.revision.AbstractCDORevision
- All Implemented Interfaces:
CDOBranchPoint, CDOBranchProvider, CDOBranchVersion, CDOIdentifiable, CDOIDAndVersion, CDORevisable, CDORevision, CDORevisionData, CDORevisionKey, CDOTimeProvider, CDOVersionProvider, CDOBranchAdjustable, CDOReferenceAdjustable, InternalCDOList.Owner, InternalCDORevision
- Direct Known Subclasses:
BaseCDORevision, StubCDORevision
public abstract class AbstractCDORevision
extends Object
implements InternalCDORevision, InternalCDOList.Owner
Common implementation for revision objects that supplies class metadata, branch-time validity, permission checks, and
traversal of currently loaded feature values. Concrete revisions build on this behavior to store and exchange the
versioned state of one CDO object.
- Since:
- 2.0
- Author:
- Eike Stepper
-
Field Summary
Fields inherited from interface CDOBranchPoint
INVALID_DATE, UNSPECIFIED_DATEFields inherited from interface CDOBranchVersion
UNSPECIFIED_VERSIONFields inherited from interface CDORevision
DEPTH_INFINITE, DEPTH_NONE, DEPTH_ONE, FIRST_VERSION, MAIN_BRANCH_ID, PERMISSION_PROVIDER, UNCHUNKEDFields inherited from interface CDORevisionData
NILFields inherited from interface InternalCDORevision
DO_NOT_CREATE_LIST -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractCDORevision(InternalCDOClassInfo classInfo) protectedAbstractCDORevision(EClass eClass) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(CDORevisionValueVisitor visitor) Visits the values that are currently loaded in this revision.voidaccept(CDORevisionValueVisitor visitor, Predicate<EStructuralFeature> filter) Visits the values that are currently loaded in this revision and whose features pass the filter.voidaccept(CDORevisionValueVisitor visitor, org.eclipse.net4j.util.Predicate<EStructuralFeature> filter) Deprecated.voidadjustForCommit(CDOBranch branch, long timeStamp) data()booleanprotected EStructuralFeature[]final InternalCDOClassInfofinal EClassprotected intgetFeatureIndex(EStructuralFeature feature) getList(EStructuralFeature feature) Deprecated.getList(EStructuralFeature feature, int initialCapacity) Deprecated.protected final intinthashCode()protected voidinitClassInfo(EClass eClass) booleanReturnstrueexactly ifCDOBranchPoint.getTimeStamp()does not returnCDOBranchPoint.UNSPECIFIED_DATE,falseotherwise.booleanbooleanbooleanbooleanbooleanisValid(long timeStamp) booleanisValid(CDOBranchPoint branchPoint) booleanrevision()toString()final voidunloadedCountChanged(int delta) Methods inherited from interface CDOBranchAdjustable
adjustBranchesMethods inherited from interface CDOBranchPoint
getTimeStampMethods inherited from interface CDOBranchVersion
getVersionMethods inherited from interface CDOIDAndVersion
getVersionMethods inherited from interface CDOIdentifiable
getIDMethods inherited from interface CDOReferenceAdjustable
adjustReferencesMethods inherited from interface CDORevisable
getRevisedMethods inherited from interface CDORevision
getPermission, mergeMethods inherited from interface CDORevisionData
calculateContainerReferenceID, calculateContainingReferenceID, contains, get, getContainerFeatureID, getContainerID, getContainingFeatureID, getContainingReference, getListOrNull, getResourceID, getValue, hashCode, indexOf, isEmpty, lastIndexOf, size, toArray, toArrayMethods inherited from interface InternalCDOList.Owner
isFrozenMethods inherited from interface InternalCDORevision
add, bypassPermissionChecks, clear, clearValues, compare, constructList, constructList, convertEObjects, copy, freeze, getBranch, getOrCreateList, getOrCreateList, getResourceNodeName, isFrozen, isListPreserving, isUnchunked, move, read, readValue, readValues, remove, set, setBranchPoint, setContainerFeatureID, setContainerID, setContainingFeatureID, setContainingReference, setID, setList, setListPreserving, setPermission, setResourceID, setRevised, setUnchunked, setValue, setVersion, unset, write, write, writeValue, writeValues
-
Constructor Details
-
AbstractCDORevision
- Since:
- 3.0
-
AbstractCDORevision
- Since:
- 4.2
-
-
Method Details
-
getClassInfo
- Specified by:
getClassInfoin interfaceCDORevision- Specified by:
getClassInfoin interfaceInternalCDORevision- Since:
- 4.2
-
unloadedCountChanged
public final void unloadedCountChanged(int delta) - Specified by:
unloadedCountChangedin interfaceInternalCDOList.Owner
-
getUnloadedCount
protected final int getUnloadedCount()- Since:
- 4.29
-
getEClass
- Specified by:
getEClassin interfaceCDORevision
-
getRevisionForID
- Specified by:
getRevisionForIDin interfaceInternalCDORevision- Since:
- 4.2
-
getProperRevision
- Specified by:
getProperRevisionin interfaceInternalCDORevision- Since:
- 4.2
-
isResourceNode
public boolean isResourceNode()- Specified by:
isResourceNodein interfaceCDORevision
-
isResourceFolder
public boolean isResourceFolder()- Specified by:
isResourceFolderin interfaceCDORevision
-
isResource
public boolean isResource()- Specified by:
isResourcein interfaceCDORevision
-
data
- Specified by:
datain interfaceCDORevision
-
revision
- Specified by:
revisionin interfaceCDORevisionData
-
isHistorical
public boolean isHistorical()Description copied from interface:CDORevisionReturnstrueexactly ifCDOBranchPoint.getTimeStamp()does not returnCDOBranchPoint.UNSPECIFIED_DATE,falseotherwise.- Specified by:
isHistoricalin interfaceCDORevision- Since:
- 3.0
-
isValid
public boolean isValid(long timeStamp) - Specified by:
isValidin interfaceCDORevision
-
isValid
- Specified by:
isValidin interfaceCDORevision- Since:
- 4.0
-
isReadable
public boolean isReadable()- Specified by:
isReadablein interfaceCDORevision- Since:
- 4.1
-
isWritable
public boolean isWritable()- Specified by:
isWritablein interfaceCDORevision- Since:
- 4.1
-
accept
Description copied from interface:CDORevisionDataVisits the values that are currently loaded in this revision.Unloaded positions of many-valued features are skipped and are not materialized. The index supplied to the visitor remains the logical list position.
- Specified by:
acceptin interfaceCDORevisionData- Since:
- 4.2
-
accept
@Deprecated public void accept(CDORevisionValueVisitor visitor, org.eclipse.net4j.util.Predicate<EStructuralFeature> filter) Deprecated.- Specified by:
acceptin interfaceCDORevisionData- Since:
- 4.2
-
accept
Description copied from interface:CDORevisionDataVisits the values that are currently loaded in this revision and whose features pass the filter.Unloaded positions of many-valued features are skipped and are not materialized. The index supplied to the visitor remains the logical list position.
- Specified by:
acceptin interfaceCDORevisionData- Since:
- 4.9
-
adjustForCommit
- Specified by:
adjustForCommitin interfaceInternalCDORevision- Since:
- 3.0
-
hashCode
-
equals
-
toString
-
getList
Deprecated.- Specified by:
getListin interfaceInternalCDORevision
-
getList
Deprecated.- Specified by:
getListin interfaceInternalCDORevision
-
initClassInfo
- Since:
- 4.2
-
getAllPersistentFeatures
- Since:
- 3.0
-
getFeatureIndex
- Since:
- 3.0
-