public interface InternalCDORevision extends CDORevision, CDORevisionData, CDOReferenceAdjustable, CDOBranchAdjustable
DEPTH_INFINITE, DEPTH_NONE, FIRST_VERSION, MAIN_BRANCH_ID, PERMISSION_PROVIDER, UNCHUNKED
INVALID_DATE, UNSPECIFIED_DATE
UNSPECIFIED_VERSION
NIL
Modifier and Type | Method and Description |
---|---|
void |
add(org.eclipse.emf.ecore.EStructuralFeature feature,
int index,
Object value) |
void |
adjustForCommit(CDOBranch branch,
long timeStamp) |
boolean |
bypassPermissionChecks(boolean on)
Enables or disables permission checking for this revision.
|
void |
clear(org.eclipse.emf.ecore.EStructuralFeature feature) |
org.eclipse.emf.ecore.EStructuralFeature[] |
clearValues() |
InternalCDORevisionDelta |
compare(CDORevision origin) |
void |
convertEObjects(CDOIDProvider oidProvider) |
InternalCDORevision |
copy() |
void |
freeze() |
InternalCDOBranch |
getBranch()
Returns the branch of this branch version.
|
InternalCDOClassInfo |
getClassInfo() |
CDOList |
getList(org.eclipse.emf.ecore.EStructuralFeature feature) |
CDOList |
getList(org.eclipse.emf.ecore.EStructuralFeature feature,
int initialCapacity) |
InternalCDORevision |
getProperRevision() |
String |
getResourceNodeName() |
InternalCDORevision |
getRevisionForID(CDOID id) |
Object |
getValue(org.eclipse.emf.ecore.EStructuralFeature feature)
Should never return
CDORevisionData.NIL |
boolean |
isFrozen() |
boolean |
isListPreserving() |
boolean |
isUnchunked() |
Object |
move(org.eclipse.emf.ecore.EStructuralFeature feature,
int targetIndex,
int sourceIndex) |
void |
read(CDODataInput in) |
boolean |
readValues(CDODataInput in) |
Object |
remove(org.eclipse.emf.ecore.EStructuralFeature feature,
int index) |
Object |
set(org.eclipse.emf.ecore.EStructuralFeature feature,
int index,
Object value) |
void |
setBranchPoint(CDOBranchPoint branchPoint) |
void |
setContainerID(Object containerID) |
void |
setContainingFeatureID(int containingFeatureID) |
void |
setID(CDOID id) |
void |
setList(org.eclipse.emf.ecore.EStructuralFeature feature,
InternalCDOList list) |
void |
setListPreserving()
The default behavior of a revision for calls to the
clear(EStructuralFeature) and
unset(EStructuralFeature) methods is to set the feature's value to null (discarding the
value itself, a List). |
void |
setPermission(CDOPermission permission) |
void |
setResourceID(CDOID resourceID) |
void |
setRevised(long revised) |
void |
setUnchunked() |
Object |
setValue(org.eclipse.emf.ecore.EStructuralFeature feature,
Object value) |
void |
setVersion(int version) |
void |
unset(org.eclipse.emf.ecore.EStructuralFeature feature) |
void |
write(CDODataOutput out,
int referenceChunk) |
void |
write(CDODataOutput out,
int referenceChunk,
CDOBranchPoint securityContext) |
void |
writeValues(CDODataOutput out,
int referenceChunk) |
data, getEClass, getPermission, isHistorical, isReadable, isResource, isResourceFolder, isResourceNode, isValid, isValid, isWritable, merge
getVersion
getID
getRevised
getTimeStamp
getVersion
accept, accept, contains, get, getContainerID, getContainingFeatureID, getResourceID, hashCode, indexOf, isEmpty, lastIndexOf, revision, size, toArray, toArray
adjustReferences
adjustBranches
InternalCDOClassInfo getClassInfo()
getClassInfo
in interface CDORevision
InternalCDOBranch getBranch()
CDOBranchVersion
getBranch
in interface CDOBranchPoint
getBranch
in interface CDOBranchVersion
InternalCDORevision getRevisionForID(CDOID id)
InternalCDORevision getProperRevision()
void setID(CDOID id)
void setVersion(int version)
void setBranchPoint(CDOBranchPoint branchPoint)
void setRevised(long revised)
void setResourceID(CDOID resourceID)
void setContainerID(Object containerID)
void setContainingFeatureID(int containingFeatureID)
void adjustForCommit(CDOBranch branch, long timeStamp)
void add(org.eclipse.emf.ecore.EStructuralFeature feature, int index, Object value)
void clear(org.eclipse.emf.ecore.EStructuralFeature feature)
Object move(org.eclipse.emf.ecore.EStructuralFeature feature, int targetIndex, int sourceIndex)
Object remove(org.eclipse.emf.ecore.EStructuralFeature feature, int index)
void unset(org.eclipse.emf.ecore.EStructuralFeature feature)
Object getValue(org.eclipse.emf.ecore.EStructuralFeature feature)
CDORevisionData.NIL
void setList(org.eclipse.emf.ecore.EStructuralFeature feature, InternalCDOList list)
CDOList getList(org.eclipse.emf.ecore.EStructuralFeature feature)
CDOList getList(org.eclipse.emf.ecore.EStructuralFeature feature, int initialCapacity)
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 null
in this case.void read(CDODataInput in) throws IOException
IOException
boolean readValues(CDODataInput in) throws IOException
IOException
void write(CDODataOutput out, int referenceChunk) throws IOException
IOException
void write(CDODataOutput out, int referenceChunk, CDOBranchPoint securityContext) throws IOException
IOException
void writeValues(CDODataOutput out, int referenceChunk) throws IOException
IOException
void convertEObjects(CDOIDProvider oidProvider)
InternalCDORevisionDelta compare(CDORevision origin)
compare
in interface CDORevision
InternalCDORevision copy()
copy
in interface CDORevision
org.eclipse.emf.ecore.EStructuralFeature[] clearValues()
String getResourceNodeName()
void setPermission(CDOPermission permission)
boolean bypassPermissionChecks(boolean on)
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).
boolean isListPreserving()
void setListPreserving()
clear(EStructuralFeature)
and
unset(EStructuralFeature)
methods is to set the feature's value to null (discarding the
value itself, a List). By calling this setListPreserving()
method the default behavior
is changed; instead of setting the feature's value to null, the List.clear()
method is
called on the feature's list instance.void freeze()
boolean isFrozen()
boolean isUnchunked()
void setUnchunked()
Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.