Interface InternalCDORevision

    • Method Detail

      • setID

        void setID​(CDOID id)
      • setVersion

        void setVersion​(int version)
      • setBranchPoint

        void setBranchPoint​(CDOBranchPoint branchPoint)
        Since:
        3.0
      • setRevised

        void setRevised​(long revised)
      • setResourceID

        void setResourceID​(CDOID resourceID)
      • setContainerID

        void setContainerID​(java.lang.Object containerID)
      • setContainingFeatureID

        void setContainingFeatureID​(int containingFeatureID)
      • adjustForCommit

        void adjustForCommit​(CDOBranch branch,
                             long timeStamp)
        Since:
        3.0
      • add

        void add​(org.eclipse.emf.ecore.EStructuralFeature feature,
                 int index,
                 java.lang.Object value)
      • clear

        void clear​(org.eclipse.emf.ecore.EStructuralFeature feature)
      • move

        java.lang.Object move​(org.eclipse.emf.ecore.EStructuralFeature feature,
                              int targetIndex,
                              int sourceIndex)
      • remove

        java.lang.Object remove​(org.eclipse.emf.ecore.EStructuralFeature feature,
                                int index)
      • set

        java.lang.Object set​(org.eclipse.emf.ecore.EStructuralFeature feature,
                             int index,
                             java.lang.Object value)
      • unset

        void unset​(org.eclipse.emf.ecore.EStructuralFeature feature)
      • getValue

        java.lang.Object getValue​(org.eclipse.emf.ecore.EStructuralFeature feature)
        Should never return CDORevisionData.NIL
      • setValue

        java.lang.Object setValue​(org.eclipse.emf.ecore.EStructuralFeature feature,
                                  java.lang.Object value)
      • setList

        void setList​(org.eclipse.emf.ecore.EStructuralFeature feature,
                     InternalCDOList list)
      • getListOrNull

        CDOList getListOrNull​(org.eclipse.emf.ecore.EStructuralFeature feature)
        Since:
        4.7
      • getOrCreateList

        CDOList getOrCreateList​(org.eclipse.emf.ecore.EStructuralFeature feature)
        Same as getOrCreateList(feature, 0).

        Warning: Must be used with caution because list creation for an unsettable feature implies a transition from UNSET to SET!

        Since:
        4.7
      • getOrCreateList

        CDOList getOrCreateList​(org.eclipse.emf.ecore.EStructuralFeature feature,
                                int initialCapacity)
        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!

        Parameters:
        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.
        Since:
        4.7
        See Also:
        DO_NOT_CREATE_LIST
      • read

        void read​(CDODataInput in)
           throws java.io.IOException
        Throws:
        java.io.IOException
        Since:
        3.0
      • readValues

        boolean readValues​(CDODataInput in)
                    throws java.io.IOException
        Throws:
        java.io.IOException
        Since:
        4.3
      • write

        void write​(CDODataOutput out,
                   int referenceChunk)
            throws java.io.IOException
        Throws:
        java.io.IOException
        Since:
        3.0
      • write

        void write​(CDODataOutput out,
                   int referenceChunk,
                   CDOBranchPoint securityContext)
            throws java.io.IOException
        Throws:
        java.io.IOException
        Since:
        4.1
      • writeValues

        void writeValues​(CDODataOutput out,
                         int referenceChunk)
                  throws java.io.IOException
        Throws:
        java.io.IOException
        Since:
        4.3
      • convertEObjects

        void convertEObjects​(CDOIDProvider oidProvider)
        Since:
        3.0
      • clearValues

        org.eclipse.emf.ecore.EStructuralFeature[] clearValues()
        Since:
        4.2
      • getResourceNodeName

        java.lang.String getResourceNodeName()
        Since:
        4.3
      • setPermission

        void setPermission​(CDOPermission permission)
        Since:
        4.1
      • bypassPermissionChecks

        boolean bypassPermissionChecks​(boolean on)
        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).

        Since:
        4.3
      • isListPreserving

        boolean isListPreserving()
        Since:
        4.3
      • setListPreserving

        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). 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.
        Since:
        4.3
      • freeze

        void freeze()
        Since:
        4.0
      • isFrozen

        boolean isFrozen()
        Since:
        4.2
      • isUnchunked

        boolean isUnchunked()
        Since:
        4.1
      • setUnchunked

        void setUnchunked()
        Since:
        4.1