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übersichtVon Schnittstelle geerbte Felder org.eclipse.emf.cdo.common.branch.CDOBranchPointINVALID_DATE, UNSPECIFIED_DATEVon Schnittstelle geerbte Felder org.eclipse.emf.cdo.common.branch.CDOBranchVersionUNSPECIFIED_VERSIONVon Schnittstelle geerbte Felder org.eclipse.emf.cdo.common.revision.CDORevisionDEPTH_INFINITE, DEPTH_NONE, FIRST_VERSION, MAIN_BRANCH_ID, PERMISSION_PROVIDER, UNCHUNKEDVon Schnittstelle geerbte Felder org.eclipse.emf.cdo.common.revision.CDORevisionDataNILVon Schnittstelle geerbte Felder org.eclipse.emf.cdo.spi.common.revision.InternalCDORevisionDO_NOT_CREATE_LIST
- 
KonstruktorübersichtKonstruktorenModifiziererKonstruktorBeschreibungprotectedStubCDORevision(InternalCDOClassInfo classInfo) StubCDORevision(EClass eClass) 
- 
MethodenübersichtModifizierer 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.AbstractCDORevisionaccept, 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.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden org.eclipse.emf.cdo.common.revision.CDORevisionDatacalculateContainingReferenceID, getContainingReferenceVon Schnittstelle geerbte Methoden org.eclipse.emf.cdo.spi.common.revision.InternalCDORevisionsetContainingReference
- 
Konstruktordetails- 
StubCDORevision
- 
StubCDORevision- Seit:
- 4.2
 
 
- 
- 
Methodendetails- 
compareTo
- 
setID
- 
setVersionpublic void setVersion(int version) 
- 
setBranchPoint
- 
setRevisedpublic void setRevised(long revised) 
- 
setResourceID
- 
setContainerID
- 
setContainingFeatureIDpublic void setContainingFeatureID(int containingFeatureID) 
- 
add
- 
clear
- 
move
- 
remove
- 
set
- 
unset
- 
getValueBeschreibung aus Schnittstelle kopiert:InternalCDORevisionShould never returnCDORevisionData.NIL
- 
setValue
- 
setList
- 
getListOrNull
- 
getOrCreateListBeschreibung 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!
- 
getOrCreateListBeschreibung 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 return- nullin this case.
- Siehe auch:
 
- 
read- Löst aus:
- IOException
 
- 
readValues- Löst aus:
- IOException
- Seit:
- 4.3
 
- 
readValuepublic 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
 
- 
writepublic 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
 
- 
writeValuepublic void writeValue(CDODataOutput out, EClass owner, EStructuralFeature feature, int i, int referenceChunk) throws IOException - Löst aus:
- IOException
- Seit:
- 4.26
 
- 
convertEObjects
- 
getVersionpublic int getVersion()Beschreibung aus Schnittstelle kopiert:CDOBranchVersionReturns the version number of this branch version.
- 
getRevisedpublic long getRevised()
- 
compare
- 
merge
- 
copy
- 
getID
- 
getBranchBeschreibung aus Schnittstelle kopiert:CDOBranchVersionReturns the branch of this branch version.- Seit:
- 4.2
 
- 
getTimeStamppublic 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
- 
getContainingFeatureIDpublic 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
 
- 
bypassPermissionCheckspublic 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
 
- 
isListPreservingpublic boolean isListPreserving()- Seit:
- 4.3
 
- 
setListPreservingpublic 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
 
- 
freezepublic void freeze()- Seit:
- 4.0
 
- 
isFrozenpublic boolean isFrozen()- Seit:
- 4.2
 
- 
isUnchunkedpublic boolean isUnchunked()- Seit:
- 4.1
 
- 
setUnchunkedpublic void setUnchunked()- Seit:
- 4.1
 
 
-