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 Summary
FieldsFields inherited from interface org.eclipse.emf.cdo.common.branch.CDOBranchPoint
INVALID_DATE, UNSPECIFIED_DATEFields inherited from interface org.eclipse.emf.cdo.common.branch.CDOBranchVersion
UNSPECIFIED_VERSIONFields inherited from interface org.eclipse.emf.cdo.common.revision.CDORevision
DEPTH_INFINITE, DEPTH_NONE, FIRST_VERSION, MAIN_BRANCH_ID, PERMISSION_PROVIDER, UNCHUNKEDFields inherited from interface org.eclipse.emf.cdo.common.revision.CDORevisionData
NIL -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(EStructuralFeature feature, int index, Object value) voidadjustForCommit(CDOBranch branch, long timeStamp) booleanbypassPermissionChecks(boolean on) Enables or disables permission checking for this revision.voidclear(EStructuralFeature feature) compare(CDORevision origin) voidconvertEObjects(CDOIDProvider oidProvider) copy()voidfreeze()Returns the branch of this branch version.getList(EStructuralFeature feature) Deprecated.getList(EStructuralFeature feature, int initialCapacity) Deprecated.As of 4.7 use eithergetListOrNull(EStructuralFeature)orgetOrCreateList(EStructuralFeature, int).getListOrNull(EStructuralFeature feature) getOrCreateList(EStructuralFeature feature) Same asgetOrCreateList(feature, 0).getOrCreateList(EStructuralFeature feature, int initialCapacity) Returns the list that represents the passed feature, possibly creates it if needed.getValue(EStructuralFeature feature) Should never returnCDORevisionData.NILbooleanisFrozen()booleanbooleanmove(EStructuralFeature feature, int targetIndex, int sourceIndex) voidread(CDODataInput in) booleanremove(EStructuralFeature feature, int index) set(EStructuralFeature feature, int index, Object value) voidsetBranchPoint(CDOBranchPoint branchPoint) voidsetContainerID(Object containerID) voidsetContainingFeatureID(int containingFeatureID) voidvoidsetList(EStructuralFeature feature, InternalCDOList list) voidThe 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) voidsetValue(EStructuralFeature feature, Object value) voidsetVersion(int version) voidunset(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.CDOBranchAdjustable
adjustBranchesMethods inherited from interface org.eclipse.emf.cdo.common.branch.CDOBranchPoint
getTimeStampMethods inherited from interface org.eclipse.emf.cdo.common.branch.CDOBranchVersion
getVersionMethods inherited from interface org.eclipse.emf.cdo.common.revision.CDOIDAndVersion
getVersionMethods inherited from interface org.eclipse.emf.cdo.common.id.CDOIdentifiable
getIDMethods inherited from interface org.eclipse.emf.cdo.spi.common.revision.CDOReferenceAdjustable
adjustReferencesMethods inherited from interface org.eclipse.emf.cdo.common.revision.CDORevisable
getRevisedMethods inherited from interface org.eclipse.emf.cdo.common.revision.CDORevision
data, getEClass, getPermission, isHistorical, isReadable, isResource, isResourceFolder, isResourceNode, isValid, isValid, isWritable, mergeMethods inherited from interface org.eclipse.emf.cdo.common.revision.CDORevisionData
accept, accept, accept, contains, get, getContainerID, getContainingFeatureID, getResourceID, hashCode, indexOf, isEmpty, lastIndexOf, revision, size, toArray, toArray
-
Field Details
-
DO_NOT_CREATE_LIST
static final int DO_NOT_CREATE_LIST- Since:
- 4.7
- See Also:
-
-
Method Details
-
getClassInfo
InternalCDOClassInfo getClassInfo()- Specified by:
getClassInfoin interfaceCDORevision- Since:
- 4.2
-
getBranch
InternalCDOBranch getBranch()Description copied from interface:CDOBranchVersionReturns the branch of this branch version.- Specified by:
getBranchin interfaceCDOBranchPoint- Specified by:
getBranchin interfaceCDOBranchProvider- Specified by:
getBranchin interfaceCDOBranchVersion- Since:
- 4.2
-
getRevisionForID
- Since:
- 4.2
-
getProperRevision
InternalCDORevision getProperRevision()- Since:
- 4.2
-
setID
-
setVersion
void setVersion(int version) -
setBranchPoint
- Since:
- 3.0
-
setRevised
void setRevised(long revised) -
setResourceID
-
setContainerID
-
setContainingFeatureID
void setContainingFeatureID(int containingFeatureID) -
adjustForCommit
- Since:
- 3.0
-
add
-
clear
-
move
-
remove
-
set
-
unset
-
getValue
Should never returnCDORevisionData.NIL -
setValue
-
setList
-
getList
Deprecated.As of 4.7 use eithergetListOrNull(EStructuralFeature)orgetOrCreateList(EStructuralFeature). -
getList
Deprecated.As of 4.7 use eithergetListOrNull(EStructuralFeature)orgetOrCreateList(EStructuralFeature, int). -
getListOrNull
- Since:
- 4.7
-
getOrCreateList
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
-
getOrCreateList
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 returnnullin this case.- Since:
- 4.7
- See Also:
-
read
- Throws:
IOException- Since:
- 3.0
-
readValues
- Throws:
IOException- Since:
- 4.3
-
write
- Throws:
IOException- Since:
- 3.0
-
write
void write(CDODataOutput out, int referenceChunk, CDOBranchPoint securityContext) throws IOException - Throws:
IOException- Since:
- 4.1
-
writeValues
- Throws:
IOException- Since:
- 4.3
-
convertEObjects
- Since:
- 3.0
-
compare
- Specified by:
comparein interfaceCDORevision- Since:
- 3.0
-
copy
InternalCDORevision copy()- Specified by:
copyin interfaceCDORevision- Since:
- 3.0
-
clearValues
EStructuralFeature[] clearValues()- Since:
- 4.2
-
getResourceNodeName
String getResourceNodeName()- Since:
- 4.3
-
setPermission
- Since:
- 4.1
-
bypassPermissionChecks
boolean 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
-
isListPreserving
boolean isListPreserving()- Since:
- 4.3
-
setListPreserving
void 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
-
freeze
void freeze()- Since:
- 4.0
-
isFrozen
boolean isFrozen()- Since:
- 4.2
-
isUnchunked
boolean isUnchunked()- Since:
- 4.1
-
setUnchunked
void setUnchunked()- Since:
- 4.1
-
getListOrNull(EStructuralFeature)orgetOrCreateList(EStructuralFeature).