Class CDOSessionProtocol.RefreshSessionResult

java.lang.Object
org.eclipse.emf.spi.cdo.CDOSessionProtocol.RefreshSessionResult
Enclosing interface:
CDOSessionProtocol

public static final class CDOSessionProtocol.RefreshSessionResult extends Object
Contains the repository update position and package-unit information returned when a session refreshes. The client uses this snapshot to synchronize its views with repository changes that have occurred since its previous update.
Since:
3.0
Author:
Eike Stepper
  • Constructor Details

    • RefreshSessionResult

      public RefreshSessionResult(long lastUpdateTime)
  • Method Details

    • getLastUpdateTime

      public long getLastUpdateTime()
    • getPackageUnits

      public List<CDOPackageUnit> getPackageUnits()
    • getChangedObjects

      public List<InternalCDORevision> getChangedObjects(CDOBranch branch)
    • getChangedObjectDelta

      public InternalCDORevisionDelta getChangedObjectDelta(CDOBranch branch, CDOID id)
      Returns the server-derived revision delta for a changed object, if one was supplied by the refresh protocol.
      Parameters:
      branch - the branch of the changed object
      id - the ID of the changed object
      Returns:
      the revision delta, or null if no delta was supplied
      Since:
      4.31
    • hasChangedObjectDelta

      public boolean hasChangedObjectDelta(CDOBranch branch, CDOID id)
      Indicates whether the refresh response carried delta metadata for the changed object.
      Parameters:
      branch - the branch of the changed object
      id - the ID of the changed object
      Returns:
      true if the response supplied a delta field, including an explicitly absent delta
      Since:
      4.31
    • getDetachedObjects

      public List<CDOIDAndVersion> getDetachedObjects(CDOBranch branch)
    • addPackageUnit

      public void addPackageUnit(CDOPackageUnit packageUnit)
    • addChangedObject

      public void addChangedObject(InternalCDORevision revision)
    • addChangedObject

      public void addChangedObject(InternalCDORevision revision, InternalCDORevisionDelta delta)
      Adds a changed revision and its server-derived delta to this refresh result.
      Parameters:
      revision - the refreshed revision
      delta - the delta from the viewed revision to the refreshed revision
      Since:
      4.31
    • addDetachedObject

      public void addDetachedObject(CDORevisionKey revision)