Interface InternalCDORevision
- 
- All Superinterfaces:
- CDOBranchAdjustable,- CDOBranchPoint,- CDOBranchProvider,- CDOBranchVersion,- CDOIDAndVersion,- CDOIdentifiable,- CDOReferenceAdjustable,- CDORevisable,- CDORevision,- CDORevisionData,- CDORevisionKey,- CDOTimeProvider,- CDOVersionProvider
 - All Known Implementing Classes:
- AbstractCDORevision,- BaseCDORevision,- DelegatingCDORevision,- DetachedCDORevision,- PointerCDORevision,- StubCDORevision,- SyntheticCDORevision
 
 public interface InternalCDORevision extends CDORevision, CDORevisionData, CDOReferenceAdjustable, CDOBranchAdjustable If the meaning of this type isn't clear, there really should be more of a description here...- Since:
- 2.0
- Author:
- Eike Stepper
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intDO_NOT_CREATE_LIST- 
Fields inherited from interface org.eclipse.emf.cdo.common.branch.CDOBranchPointINVALID_DATE, UNSPECIFIED_DATE
 - 
Fields inherited from interface org.eclipse.emf.cdo.common.branch.CDOBranchVersionUNSPECIFIED_VERSION
 - 
Fields inherited from interface org.eclipse.emf.cdo.common.revision.CDORevisionDEPTH_INFINITE, DEPTH_NONE, FIRST_VERSION, MAIN_BRANCH_ID, PERMISSION_PROVIDER, UNCHUNKED
 - 
Fields inherited from interface org.eclipse.emf.cdo.common.revision.CDORevisionDataNIL
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidadd(org.eclipse.emf.ecore.EStructuralFeature feature, int index, java.lang.Object value)voidadjustForCommit(CDOBranch branch, long timeStamp)booleanbypassPermissionChecks(boolean on)Enables or disables permission checking for this revision.voidclear(org.eclipse.emf.ecore.EStructuralFeature feature)org.eclipse.emf.ecore.EStructuralFeature[]clearValues()InternalCDORevisionDeltacompare(CDORevision origin)voidconvertEObjects(CDOIDProvider oidProvider)InternalCDORevisioncopy()voidfreeze()InternalCDOBranchgetBranch()Returns the branch of this branch version.InternalCDOClassInfogetClassInfo()CDOListgetList(org.eclipse.emf.ecore.EStructuralFeature feature)Deprecated.As of 4.7 use eithergetListOrNull(EStructuralFeature)orgetOrCreateList(EStructuralFeature).CDOListgetList(org.eclipse.emf.ecore.EStructuralFeature feature, int initialCapacity)Deprecated.As of 4.7 use eithergetListOrNull(EStructuralFeature)orgetOrCreateList(EStructuralFeature, int).CDOListgetListOrNull(org.eclipse.emf.ecore.EStructuralFeature feature)CDOListgetOrCreateList(org.eclipse.emf.ecore.EStructuralFeature feature)Same asgetOrCreateList(feature, 0).CDOListgetOrCreateList(org.eclipse.emf.ecore.EStructuralFeature feature, int initialCapacity)Returns the list that represents the passed feature, possibly creates it if needed.InternalCDORevisiongetProperRevision()java.lang.StringgetResourceNodeName()InternalCDORevisiongetRevisionForID(CDOID id)java.lang.ObjectgetValue(org.eclipse.emf.ecore.EStructuralFeature feature)Should never returnCDORevisionData.NILbooleanisFrozen()booleanisListPreserving()booleanisUnchunked()java.lang.Objectmove(org.eclipse.emf.ecore.EStructuralFeature feature, int targetIndex, int sourceIndex)voidread(CDODataInput in)booleanreadValues(CDODataInput in)java.lang.Objectremove(org.eclipse.emf.ecore.EStructuralFeature feature, int index)java.lang.Objectset(org.eclipse.emf.ecore.EStructuralFeature feature, int index, java.lang.Object value)voidsetBranchPoint(CDOBranchPoint branchPoint)voidsetContainerID(java.lang.Object containerID)voidsetContainingFeatureID(int containingFeatureID)voidsetID(CDOID id)voidsetList(org.eclipse.emf.ecore.EStructuralFeature feature, InternalCDOList list)voidsetListPreserving()The default behavior of a revision for calls to theclear(EStructuralFeature)andunset(EStructuralFeature)methods is to set the feature's value to null (discarding the value itself, a List).voidsetPermission(CDOPermission permission)voidsetResourceID(CDOID resourceID)voidsetRevised(long revised)voidsetUnchunked()java.lang.ObjectsetValue(org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object value)voidsetVersion(int version)voidunset(org.eclipse.emf.ecore.EStructuralFeature feature)voidwrite(CDODataOutput out, int referenceChunk)voidwrite(CDODataOutput out, int referenceChunk, CDOBranchPoint securityContext)voidwriteValues(CDODataOutput out, int referenceChunk)- 
Methods inherited from interface org.eclipse.emf.cdo.spi.common.branch.CDOBranchAdjustableadjustBranches
 - 
Methods inherited from interface org.eclipse.emf.cdo.common.branch.CDOBranchPointgetTimeStamp
 - 
Methods inherited from interface org.eclipse.emf.cdo.common.branch.CDOBranchVersiongetVersion
 - 
Methods inherited from interface org.eclipse.emf.cdo.common.revision.CDOIDAndVersiongetVersion
 - 
Methods inherited from interface org.eclipse.emf.cdo.common.id.CDOIdentifiablegetID
 - 
Methods inherited from interface org.eclipse.emf.cdo.spi.common.revision.CDOReferenceAdjustableadjustReferences
 - 
Methods inherited from interface org.eclipse.emf.cdo.common.revision.CDORevisablegetRevised
 - 
Methods inherited from interface org.eclipse.emf.cdo.common.revision.CDORevisiondata, getEClass, getPermission, isHistorical, isReadable, isResource, isResourceFolder, isResourceNode, isValid, isValid, isWritable, merge
 - 
Methods inherited from interface org.eclipse.emf.cdo.common.revision.CDORevisionDataaccept, accept, accept, contains, get, getContainerID, getContainingFeatureID, getResourceID, hashCode, indexOf, isEmpty, lastIndexOf, revision, size, toArray, toArray
 
- 
 
- 
- 
- 
Field Detail- 
DO_NOT_CREATE_LISTstatic final int DO_NOT_CREATE_LIST - Since:
- 4.7
- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getClassInfoInternalCDOClassInfo getClassInfo() - Specified by:
- getClassInfoin interface- CDORevision
- Since:
- 4.2
 
 - 
getBranchInternalCDOBranch getBranch() Description copied from interface:CDOBranchVersionReturns the branch of this branch version.- Specified by:
- getBranchin interface- CDOBranchPoint
- Specified by:
- getBranchin interface- CDOBranchProvider
- Specified by:
- getBranchin interface- CDOBranchVersion
- Since:
- 4.2
 
 - 
getRevisionForIDInternalCDORevision getRevisionForID(CDOID id) - Since:
- 4.2
 
 - 
getProperRevisionInternalCDORevision getProperRevision() - Since:
- 4.2
 
 - 
setIDvoid setID(CDOID id) 
 - 
setVersionvoid setVersion(int version) 
 - 
setBranchPointvoid setBranchPoint(CDOBranchPoint branchPoint) - Since:
- 3.0
 
 - 
setRevisedvoid setRevised(long revised) 
 - 
setResourceIDvoid setResourceID(CDOID resourceID) 
 - 
setContainerIDvoid setContainerID(java.lang.Object containerID) 
 - 
setContainingFeatureIDvoid setContainingFeatureID(int containingFeatureID) 
 - 
adjustForCommitvoid adjustForCommit(CDOBranch branch, long timeStamp) - Since:
- 3.0
 
 - 
addvoid add(org.eclipse.emf.ecore.EStructuralFeature feature, int index, java.lang.Object value)
 - 
clearvoid clear(org.eclipse.emf.ecore.EStructuralFeature feature) 
 - 
movejava.lang.Object move(org.eclipse.emf.ecore.EStructuralFeature feature, int targetIndex, int sourceIndex)
 - 
removejava.lang.Object remove(org.eclipse.emf.ecore.EStructuralFeature feature, int index)
 - 
setjava.lang.Object set(org.eclipse.emf.ecore.EStructuralFeature feature, int index, java.lang.Object value)
 - 
unsetvoid unset(org.eclipse.emf.ecore.EStructuralFeature feature) 
 - 
getValuejava.lang.Object getValue(org.eclipse.emf.ecore.EStructuralFeature feature) Should never returnCDORevisionData.NIL
 - 
setValuejava.lang.Object setValue(org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object value)
 - 
setListvoid setList(org.eclipse.emf.ecore.EStructuralFeature feature, InternalCDOList list)
 - 
getList@Deprecated CDOList getList(org.eclipse.emf.ecore.EStructuralFeature feature) Deprecated.As of 4.7 use eithergetListOrNull(EStructuralFeature)orgetOrCreateList(EStructuralFeature).
 - 
getList@Deprecated CDOList getList(org.eclipse.emf.ecore.EStructuralFeature feature, int initialCapacity) Deprecated.As of 4.7 use eithergetListOrNull(EStructuralFeature)orgetOrCreateList(EStructuralFeature, int).
 - 
getListOrNullCDOList getListOrNull(org.eclipse.emf.ecore.EStructuralFeature feature) - Since:
- 4.7
 
 - 
getOrCreateListCDOList getOrCreateList(org.eclipse.emf.ecore.EStructuralFeature feature) Same asgetOrCreateList(feature, 0).Warning: Must be used with caution because list creation for an unsettablefeature implies a transition from UNSET to SET!- Since:
- 4.7
 
 - 
getOrCreateListCDOList getOrCreateList(org.eclipse.emf.ecore.EStructuralFeature feature, int initialCapacity) Returns the list that represents the passed feature, possibly creates it if needed.Warning: Must be used with caution because list creation for an unsettablefeature implies a transition from UNSET to SET!- Parameters:
- initialCapacity- the initialCapacity of a new list to be created if this revision has no list so far (its size will always be 0), or -1 to skip list creation and return- nullin this case.
- Since:
- 4.7
- See Also:
- DO_NOT_CREATE_LIST
 
 - 
readvoid read(CDODataInput in) throws java.io.IOException - Throws:
- java.io.IOException
- Since:
- 3.0
 
 - 
readValuesboolean readValues(CDODataInput in) throws java.io.IOException - Throws:
- java.io.IOException
- Since:
- 4.3
 
 - 
writevoid write(CDODataOutput out, int referenceChunk) throws java.io.IOException - Throws:
- java.io.IOException
- Since:
- 3.0
 
 - 
writevoid write(CDODataOutput out, int referenceChunk, CDOBranchPoint securityContext) throws java.io.IOException - Throws:
- java.io.IOException
- Since:
- 4.1
 
 - 
writeValuesvoid writeValues(CDODataOutput out, int referenceChunk) throws java.io.IOException - Throws:
- java.io.IOException
- Since:
- 4.3
 
 - 
convertEObjectsvoid convertEObjects(CDOIDProvider oidProvider) - Since:
- 3.0
 
 - 
compareInternalCDORevisionDelta compare(CDORevision origin) - Specified by:
- comparein interface- CDORevision
- Since:
- 3.0
 
 - 
copyInternalCDORevision copy() - Specified by:
- copyin interface- CDORevision
- Since:
- 3.0
 
 - 
clearValuesorg.eclipse.emf.ecore.EStructuralFeature[] clearValues() - Since:
- 4.2
 
 - 
getResourceNodeNamejava.lang.String getResourceNodeName() - Since:
- 4.3
 
 - 
setPermissionvoid setPermission(CDOPermission permission) - Since:
- 4.1
 
 - 
bypassPermissionChecksboolean bypassPermissionChecks(boolean on) Enables or disables permission checking for this revision.This method is used on the client side if the framework changes the revision on another user's behalf, e.g., during invalidation or general revision copying. It's safe to offer this method on the client side because the server is always the permission checking authority (during load or commit). - Since:
- 4.3
 
 - 
isListPreservingboolean isListPreserving() - Since:
- 4.3
 
 - 
setListPreservingvoid setListPreserving() The default behavior of a revision for calls to theclear(EStructuralFeature)andunset(EStructuralFeature)methods is to set the feature's value to null (discarding the value itself, a List). By calling thissetListPreserving()method the default behavior is changed; instead of setting the feature's value to null, theList.clear()method is called on the feature's list instance.- Since:
- 4.3
 
 - 
freezevoid freeze() - Since:
- 4.0
 
 - 
isFrozenboolean isFrozen() - Since:
- 4.2
 
 - 
isUnchunkedboolean isUnchunked() - Since:
- 4.1
 
 - 
setUnchunkedvoid setUnchunked() - Since:
- 4.1
 
 
- 
 
-