Klasse StubCDORevision
java.lang.Object
org.eclipse.emf.cdo.spi.common.revision.AbstractCDORevision
org.eclipse.emf.cdo.spi.common.revision.StubCDORevision
- Alle implementierten Schnittstellen:
CDOBranchPoint,CDOBranchProvider,CDOBranchVersion,CDOIdentifiable,CDOIDAndVersion,CDORevisable,CDORevision,CDORevisionData,CDORevisionKey,CDOTimeProvider,CDOVersionProvider,CDOBranchAdjustable,CDOReferenceAdjustable,InternalCDORevision
- Bekannte direkte Unterklassen:
SyntheticCDORevision
If the meaning of this type isn't clear, there really should be more of a description here...
- Seit:
- 3.0
- Autor:
- Eike Stepper
-
Feldübersicht
Von Schnittstelle geerbte Felder org.eclipse.emf.cdo.common.branch.CDOBranchPoint
INVALID_DATE, UNSPECIFIED_DATEVon Schnittstelle geerbte Felder org.eclipse.emf.cdo.common.branch.CDOBranchVersion
UNSPECIFIED_VERSIONVon Schnittstelle geerbte Felder org.eclipse.emf.cdo.common.revision.CDORevision
DEPTH_INFINITE, DEPTH_NONE, FIRST_VERSION, MAIN_BRANCH_ID, PERMISSION_PROVIDER, UNCHUNKEDVon Schnittstelle geerbte Felder org.eclipse.emf.cdo.common.revision.CDORevisionData
NILVon Schnittstelle geerbte Felder org.eclipse.emf.cdo.spi.common.revision.InternalCDORevision
DO_NOT_CREATE_LIST -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedStubCDORevision(InternalCDOClassInfo classInfo) StubCDORevision(EClass eClass) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidadd(EStructuralFeature feature, int index, Object value) voidadjustBranches(CDOBranchManager newBranchManager) booleanadjustReferences(CDOReferenceAdjuster referenceAdjuster) booleanbypassPermissionChecks(boolean on) Enables or disables permission checking for this revision.voidclear(EStructuralFeature feature) compare(CDORevision origin) intbooleancontains(EStructuralFeature feature, Object value) voidconvertEObjects(CDOIDProvider oidProvider) copy()voidfreeze()get(EStructuralFeature feature, int index) Returns the branch of this branch version.intProvides 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.longlongReturns the time stamp of this branch point, or the fixed special time stampunspecifiedif this branch point marks theheadof a branch.getValue(EStructuralFeature feature) Should never returnCDORevisionData.NILintReturns the version number of this branch version.inthashCode(EStructuralFeature feature) intindexOf(EStructuralFeature feature, Object value) booleanisEmpty(EStructuralFeature feature) booleanisFrozen()booleanbooleanintlastIndexOf(EStructuralFeature feature, Object value) voidmerge(CDORevisionDelta delta) move(EStructuralFeature feature, int targetIndex, int sourceIndex) voidread(CDODataInput in) booleanreadValue(CDODataInput in, EClass owner, EStructuralFeature feature, int i, boolean unchunked) 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 theInternalCDORevision.clear(EStructuralFeature)andInternalCDORevision.unset(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) intsize(EStructuralFeature feature) Object[]toArray(EStructuralFeature feature) <T> T[]toArray(EStructuralFeature feature, T[] array) voidunset(EStructuralFeature feature) voidwrite(CDODataOutput out, int referenceChunk) voidwrite(CDODataOutput out, int referenceChunk, CDOBranchPoint securityContext) voidwriteValue(CDODataOutput out, EClass owner, EStructuralFeature feature, int i, int referenceChunk) voidwriteValues(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, toStringVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden org.eclipse.emf.cdo.common.revision.CDORevisionData
calculateContainingReferenceID, getContainingReferenceVon Schnittstelle geerbte Methoden org.eclipse.emf.cdo.spi.common.revision.InternalCDORevision
setContainingReference
-
Konstruktordetails
-
StubCDORevision
-
StubCDORevision
- Seit:
- 4.2
-
-
Methodendetails
-
compareTo
-
setID
-
setVersion
public void setVersion(int version) -
setBranchPoint
-
setRevised
public void setRevised(long revised) -
setResourceID
-
setContainerID
-
setContainingFeatureID
public void setContainingFeatureID(int containingFeatureID) -
add
-
clear
-
move
-
remove
-
set
-
unset
-
getValue
Beschreibung aus Schnittstelle kopiert:InternalCDORevisionShould never returnCDORevisionData.NIL -
setValue
-
setList
-
getListOrNull
-
getOrCreateList
Beschreibung aus Schnittstelle kopiert:InternalCDORevisionSame asgetOrCreateList(feature, 0).Warning: Must be used with caution because list creation for an
unsettablefeature implies a transition from UNSET to SET! -
getOrCreateList
Beschreibung aus Schnittstelle kopiert:InternalCDORevisionReturns 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!- 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 returnnullin this case.- Siehe auch:
-
read
- Löst aus:
IOException
-
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
-
write
public void write(CDODataOutput out, int referenceChunk, CDOBranchPoint securityContext) throws IOException - Löst aus:
IOException- Seit:
- 4.1
-
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
-
getVersion
public int getVersion()Beschreibung aus Schnittstelle kopiert:CDOBranchVersionReturns the version number of this branch version. -
getRevised
public long getRevised() -
compare
-
merge
-
copy
-
getID
-
getBranch
Beschreibung aus Schnittstelle kopiert:CDOBranchVersionReturns the branch of this branch version.- Seit:
- 4.2
-
getTimeStamp
public long getTimeStamp()Beschreibung aus Schnittstelle kopiert:CDOBranchPointReturns the time stamp of this branch point, or the fixed special time stampunspecifiedif this branch point marks theheadof a branch. -
getResourceID
-
getContainerID
-
getContainingFeatureID
public int getContainingFeatureID()Beschreibung aus Schnittstelle kopiert:CDORevisionDataProvides 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:
-
get
-
size
-
isEmpty
-
contains
-
indexOf
-
lastIndexOf
-
toArray
-
toArray
-
hashCode
-
adjustReferences
- Seit:
- 4.0
-
adjustBranches
- Seit:
- 4.3
-
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:InternalCDORevisionEnables 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:InternalCDORevisionThe 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.0
-
isFrozen
public boolean isFrozen()- Seit:
- 4.2
-
isUnchunked
public boolean isUnchunked()- Seit:
- 4.1
-
setUnchunked
public void setUnchunked()- Seit:
- 4.1
-