Klasse BaseCDORevision
java.lang.Object
org.eclipse.emf.cdo.spi.common.revision.AbstractCDORevision
org.eclipse.emf.cdo.spi.common.revision.BaseCDORevision
- Alle implementierten Schnittstellen:
CDOBranchPoint
,CDOBranchProvider
,CDOBranchVersion
,CDOIdentifiable
,CDOIDAndVersion
,CDORevisable
,CDORevision
,CDORevisionData
,CDORevisionKey
,CDOTimeProvider
,CDOVersionProvider
,CDOBranchAdjustable
,CDOReferenceAdjustable
,InternalCDORevision
If the meaning of this type isn't clear, there really should be more of a description here...
- Seit:
- 3.0
- Autor:
- Eike Stepper
- No Extend
- This class is not intended to be subclassed by clients.
-
Feldübersicht
Von Schnittstelle geerbte Felder org.eclipse.emf.cdo.common.branch.CDOBranchPoint
INVALID_DATE, UNSPECIFIED_DATE
Von Schnittstelle geerbte Felder org.eclipse.emf.cdo.common.branch.CDOBranchVersion
UNSPECIFIED_VERSION
Von Schnittstelle geerbte Felder org.eclipse.emf.cdo.common.revision.CDORevision
DEPTH_INFINITE, DEPTH_NONE, FIRST_VERSION, MAIN_BRANCH_ID, PERMISSION_PROVIDER, UNCHUNKED
Von Schnittstelle geerbte Felder org.eclipse.emf.cdo.common.revision.CDORevisionData
NIL
Von Schnittstelle geerbte Felder org.eclipse.emf.cdo.spi.common.revision.InternalCDORevision
DO_NOT_CREATE_LIST
-
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotected
BaseCDORevision
(BaseCDORevision source) BaseCDORevision
(EClass eClass) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
add
(EStructuralFeature feature, int index, Object value) void
adjustBranches
(CDOBranchManager newBranchManager) boolean
adjustReferences
(CDOReferenceAdjuster referenceAdjuster) boolean
bypassPermissionChecks
(boolean on) Enables or disables permission checking for this revision.static void
checkNoFeatureMap
(EStructuralFeature feature) Veraltet.void
clear
(EStructuralFeature feature) compare
(CDORevision origin) boolean
contains
(EStructuralFeature feature, Object value) void
convertEObjects
(CDOIDProvider idProvider) protected abstract Object
doGetValue
(int featureIndex) protected abstract void
doSetValue
(int featureIndex, Object value) static String
formatFlags
(BaseCDORevision revision) void
freeze()
get
(EStructuralFeature feature, int index) Returns the branch of this branch version.int
Provides the input to the calculation of the feature in the container revision that actually holds this revision.getID()
getListOrNull
(EStructuralFeature feature) getOrCreateList
(EStructuralFeature feature) Same asgetOrCreateList(feature, 0)
.getOrCreateList
(EStructuralFeature feature, int size) Returns the list that represents the passed feature, possibly creates it if needed.long
long
Returns the time stamp of this branch point, or the fixed special time stampunspecified
if this branch point marks thehead
of a branch.protected Object
getValue
(int featureIndex) getValue
(EStructuralFeature feature) Should never returnCDORevisionData.NIL
int
Returns the version number of this branch version.int
hashCode
(EStructuralFeature feature) int
indexOf
(EStructuralFeature feature, Object value) protected abstract void
initValues
(EStructuralFeature[] allPersistentFeatures) boolean
isEmpty
(EStructuralFeature feature) boolean
isFrozen()
boolean
boolean
int
lastIndexOf
(EStructuralFeature feature, Object value) void
merge
(CDORevisionDelta delta) move
(EStructuralFeature feature, int targetIndex, int sourceIndex) void
read
(CDODataInput in) protected void
boolean
readValue
(CDODataInput in, EClass owner, EStructuralFeature feature, int i, boolean unchunked) boolean
static Object
remove
(EStructuralFeature feature, int index) set
(EStructuralFeature feature, int index, Object value) void
setBranchPoint
(CDOBranchPoint branchPoint) void
setContainerID
(Object containerID) void
setContainingFeatureID
(int containingFeatureID) void
void
setList
(EStructuralFeature feature, InternalCDOList list) void
The default behavior of a revision for calls to theInternalCDORevision.clear(EStructuralFeature)
andInternalCDORevision.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
protected void
setValue
(EStructuralFeature feature, Object value) void
setVersion
(int version) int
size
(EStructuralFeature feature) Object[]
toArray
(EStructuralFeature feature) <T> T[]
toArray
(EStructuralFeature feature, T[] array) void
unfreeze()
void
unset
(EStructuralFeature feature) void
write
(CDODataOutput out, int referenceChunk) void
write
(CDODataOutput out, int referenceChunk, CDOBranchPoint securityContext) protected void
void
writeValue
(CDODataOutput out, EClass owner, EStructuralFeature feature, int i, int referenceChunk) void
writeValues
(CDODataOutput out, int referenceChunk) Von Klasse geerbte Methoden org.eclipse.emf.cdo.spi.common.revision.AbstractCDORevision
accept, accept, accept, adjustForCommit, data, equals, getAllPersistentFeatures, getClassInfo, getEClass, getFeatureIndex, getList, getList, getProperRevision, getRevisionForID, hashCode, initClassInfo, isHistorical, isReadable, isResource, isResourceFolder, isResourceNode, isValid, isValid, isWritable, revision, toString
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden org.eclipse.emf.cdo.common.revision.CDORevisionData
calculateContainingReferenceID, getContainingReference
Von Schnittstelle geerbte Methoden org.eclipse.emf.cdo.spi.common.revision.InternalCDORevision
copy, setContainingReference
-
Konstruktordetails
-
BaseCDORevision
- Seit:
- 3.0
-
BaseCDORevision
-
-
Methodendetails
-
read
- Löst aus:
IOException
- Seit:
- 3.0
-
readSystemValues
- Löst aus:
IOException
- Seit:
- 4.0
-
readValues
- Löst aus:
IOException
- Seit:
- 4.3
-
readValue
public boolean readValue(CDODataInput in, EClass owner, EStructuralFeature feature, int i, boolean unchunked) throws IOException - Löst aus:
IOException
- Seit:
- 4.26
-
write
- Löst aus:
IOException
- Seit:
- 4.0
-
write
public void write(CDODataOutput out, int referenceChunk, CDOBranchPoint securityContext) throws IOException - Löst aus:
IOException
- Seit:
- 4.1
-
writeSystemValues
- Löst aus:
IOException
- Seit:
- 4.0
-
writeValues
- Löst aus:
IOException
- Seit:
- 4.3
-
writeValue
public void writeValue(CDODataOutput out, EClass owner, EStructuralFeature feature, int i, int referenceChunk) throws IOException - Löst aus:
IOException
- Seit:
- 4.26
-
convertEObjects
- Seit:
- 3.0
- Siehe auch:
-
getID
-
setID
-
getBranch
Beschreibung aus Schnittstelle kopiert:CDOBranchVersion
Returns the branch of this branch version.- Seit:
- 4.2
-
getTimeStamp
public long getTimeStamp()Beschreibung aus Schnittstelle kopiert:CDOBranchPoint
Returns the time stamp of this branch point, or the fixed special time stampunspecified
if this branch point marks thehead
of a branch.- Seit:
- 3.0
-
setBranchPoint
- Seit:
- 3.0
-
getVersion
public int getVersion()Beschreibung aus Schnittstelle kopiert:CDOBranchVersion
Returns the version number of this branch version. -
setVersion
public void setVersion(int version) -
getRevised
public long getRevised() -
setRevised
public void setRevised(long revised) -
compare
-
merge
-
getResourceID
-
setResourceID
-
getContainerID
-
setContainerID
-
getContainingFeatureID
public int getContainingFeatureID()Beschreibung aus Schnittstelle kopiert:CDORevisionData
Provides the input to the calculation of the feature in the container revision that actually holds this revision.Usage Example:
CDORevision revision = ...; CDORevision container = Util.getRevision(revision.data().getContainerID()); int containingFeatureID = revision.data().getContainingFeatureID(); EStructuralFeature feature = containingFeatureID <= InternalEObject.EOPPOSITE_FEATURE_BASE ? container.getEClass().getEStructuralFeature(InternalEObject.EOPPOSITE_FEATURE_BASE - containingFeatureID) : ((EReference)revision.getEClass().getEStructuralFeature(containingFeatureID)).getEOpposite();
- Siehe auch:
-
setContainingFeatureID
public void setContainingFeatureID(int containingFeatureID) -
hashCode
-
get
-
contains
-
indexOf
-
lastIndexOf
-
isEmpty
-
size
-
toArray
-
toArray
-
add
-
clear
-
move
-
remove
-
set
-
unset
-
adjustReferences
- Seit:
- 4.0
-
adjustBranches
- Seit:
- 4.3
-
getValue
Beschreibung aus Schnittstelle kopiert:InternalCDORevision
Should never returnCDORevisionData.NIL
-
setValue
-
getListOrNull
- Seit:
- 4.7
-
getOrCreateList
Beschreibung aus Schnittstelle kopiert:InternalCDORevision
Same asgetOrCreateList(feature, 0)
.Warning: Must be used with caution because list creation for an
unsettable
feature implies a transition from UNSET to SET! -
getOrCreateList
Beschreibung aus Schnittstelle kopiert:InternalCDORevision
Returns the list that represents the passed feature, possibly creates it if needed.Warning: Must be used with caution because list creation for an
unsettable
feature implies a transition from UNSET to SET!- Parameter:
size
- 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 returnnull
in this case.- Siehe auch:
-
setList
-
clearValues
- Seit:
- 4.2
-
getResourceNodeName
- Seit:
- 4.3
-
getPermission
- Seit:
- 4.1
-
setPermission
- Seit:
- 4.1
-
bypassPermissionChecks
public boolean bypassPermissionChecks(boolean on) Beschreibung aus Schnittstelle kopiert:InternalCDORevision
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).
- Seit:
- 4.3
-
isListPreserving
public boolean isListPreserving()- Seit:
- 4.3
-
setListPreserving
public void setListPreserving()Beschreibung aus Schnittstelle kopiert:InternalCDORevision
The default behavior of a revision for calls to theInternalCDORevision.clear(EStructuralFeature)
andInternalCDORevision.unset(EStructuralFeature)
methods is to set the feature's value to null (discarding the value itself, a List). By calling thisInternalCDORevision.setListPreserving()
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.- Seit:
- 4.3
-
freeze
public void freeze()- Seit:
- 4.1
-
unfreeze
public void unfreeze()- Seit:
- 4.11
-
isFrozen
public boolean isFrozen()- Seit:
- 4.2
-
isUnchunked
public boolean isUnchunked()- Seit:
- 4.1
-
setUnchunked
public void setUnchunked()- Seit:
- 4.1
-
getValue
-
setValue
-
initValues
-
doGetValue
- Seit:
- 4.1
-
doSetValue
- Seit:
- 4.1
-
checkNoFeatureMap
Veraltet.As of 4.5feature maps
are no longer supported. -
remapID
-
formatFlags
- Seit:
- 4.3
-
feature maps
are no longer supported.