public interface InternalCDORevision extends CDORevision, CDORevisionData, CDOReferenceAdjustable, CDOBranchAdjustable
Modifier and Type | Field and Description |
---|---|
static int |
DO_NOT_CREATE_LIST |
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(EStructuralFeature feature,
int index,
java.lang.Object value) |
void |
adjustForCommit(CDOBranch branch,
long timeStamp) |
boolean |
bypassPermissionChecks(boolean on)
Enables or disables permission checking for this revision.
|
void |
clear(EStructuralFeature feature) |
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(EStructuralFeature feature)
Deprecated.
As of 4.7 use either
getListOrNull(EStructuralFeature) or getOrCreateList(EStructuralFeature) . |
CDOList |
getList(EStructuralFeature feature,
int initialCapacity)
Deprecated.
As of 4.7 use either
getListOrNull(EStructuralFeature) or getOrCreateList(EStructuralFeature, int) . |
CDOList |
getListOrNull(EStructuralFeature feature) |
CDOList |
getOrCreateList(EStructuralFeature feature)
Same as
getOrCreateList(feature, 0) . |
CDOList |
getOrCreateList(EStructuralFeature feature,
int initialCapacity)
Returns the list that represents the passed feature, possibly creates it if needed.
|
InternalCDORevision |
getProperRevision() |
java.lang.String |
getResourceNodeName() |
InternalCDORevision |
getRevisionForID(CDOID id) |
java.lang.Object |
getValue(EStructuralFeature feature)
Should never return
CDORevisionData.NIL |
boolean |
isFrozen() |
boolean |
isListPreserving() |
boolean |
isUnchunked() |
java.lang.Object |
move(EStructuralFeature feature,
int targetIndex,
int sourceIndex) |
void |
read(CDODataInput in) |
boolean |
readValues(CDODataInput in) |
java.lang.Object |
remove(EStructuralFeature feature,
int index) |
java.lang.Object |
set(EStructuralFeature feature,
int index,
java.lang.Object value) |
void |
setBranchPoint(CDOBranchPoint branchPoint) |
void |
setContainerID(java.lang.Object containerID) |
void |
setContainingFeatureID(int containingFeatureID) |
void |
setID(CDOID id) |
void |
setList(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() |
java.lang.Object |
setValue(EStructuralFeature feature,
java.lang.Object value) |
void |
setVersion(int version) |
void |
unset(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
static final int DO_NOT_CREATE_LIST
InternalCDOClassInfo getClassInfo()
getClassInfo
in interface CDORevision
InternalCDOBranch getBranch()
CDOBranchVersion
getBranch
in interface CDOBranchPoint
getBranch
in interface CDOBranchProvider
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(java.lang.Object containerID)
void setContainingFeatureID(int containingFeatureID)
void adjustForCommit(CDOBranch branch, long timeStamp)
void add(EStructuralFeature feature, int index, java.lang.Object value)
void clear(EStructuralFeature feature)
java.lang.Object move(EStructuralFeature feature, int targetIndex, int sourceIndex)
java.lang.Object remove(EStructuralFeature feature, int index)
java.lang.Object set(EStructuralFeature feature, int index, java.lang.Object value)
void unset(EStructuralFeature feature)
java.lang.Object getValue(EStructuralFeature feature)
CDORevisionData.NIL
java.lang.Object setValue(EStructuralFeature feature, java.lang.Object value)
void setList(EStructuralFeature feature, InternalCDOList list)
@Deprecated CDOList getList(EStructuralFeature feature)
getListOrNull(EStructuralFeature)
or getOrCreateList(EStructuralFeature)
.@Deprecated CDOList getList(EStructuralFeature feature, int initialCapacity)
getListOrNull(EStructuralFeature)
or getOrCreateList(EStructuralFeature, int)
.CDOList getListOrNull(EStructuralFeature feature)
CDOList getOrCreateList(EStructuralFeature feature)
getOrCreateList(feature, 0)
.
Warning: Must be used with caution because list creation for an unsettable
feature implies a transition from UNSET to SET!
CDOList getOrCreateList(EStructuralFeature feature, int initialCapacity)
Warning: Must be used with caution because list creation for an unsettable
feature implies a transition from UNSET to SET!
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.DO_NOT_CREATE_LIST
void read(CDODataInput in) throws java.io.IOException
java.io.IOException
boolean readValues(CDODataInput in) throws java.io.IOException
java.io.IOException
void write(CDODataOutput out, int referenceChunk) throws java.io.IOException
java.io.IOException
void write(CDODataOutput out, int referenceChunk, CDOBranchPoint securityContext) throws java.io.IOException
java.io.IOException
void writeValues(CDODataOutput out, int referenceChunk) throws java.io.IOException
java.io.IOException
void convertEObjects(CDOIDProvider oidProvider)
InternalCDORevisionDelta compare(CDORevision origin)
compare
in interface CDORevision
InternalCDORevision copy()
copy
in interface CDORevision
EStructuralFeature[] clearValues()
java.lang.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) 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