@Override
  protected void indicating(CDODataInput in) throws IOException {
    if (in.readBoolean()) {
      eClass = (EClass) in.readCDOClassifierRefAndResolve();
      if (TRACER.isEnabled()) {
        TRACER.format("Read eClass: {0}", eClass); // $NON-NLS-1$
      }
    }

    if (in.readBoolean()) {
      branch = in.readCDOBranch();
      if (TRACER.isEnabled()) {
        TRACER.format("Read branch: {0}", branch); // $NON-NLS-1$
      }

      exactBranch = in.readBoolean();
      if (TRACER.isEnabled()) {
        TRACER.format("Read exactBranch: {0}", exactBranch); // $NON-NLS-1$
      }
    }

    timeStamp = in.readLong();
    if (TRACER.isEnabled()) {
      TRACER.format("Read timeStamp: {0}", CDOCommonUtil.formatTimeStamp(timeStamp)); // $NON-NLS-1$
    }

    exactTime = in.readBoolean();
    if (TRACER.isEnabled()) {
      TRACER.format("Read exactTime: {0}", exactTime); // $NON-NLS-1$
    }
  }
Ejemplo n.º 2
0
 /** @since 3.0 */
 public InvalidObjectException(CDOID id, CDOBranchPoint branchPoint) {
   super(
       MessageFormat.format(
           Messages.getString("InvalidObjectException.0"), //
           id,
           branchPoint.getBranch().getID(),
           CDOCommonUtil.formatTimeStamp(branchPoint.getTimeStamp())));
 }
Ejemplo n.º 3
0
  public void setRevised(long revised) {
    long created = branchPoint.getTimeStamp();
    if (revised != UNSPECIFIED_DATE && revised < Math.max(0, created)) {
      throw new IllegalArgumentException(
          "revision="
              + this
              + ", created="
              + CDOCommonUtil.formatTimeStamp(created)
              + ", revised="
              + CDOCommonUtil.formatTimeStamp(revised));
    }

    if (TRACER.isEnabled()) {
      TRACER.format("Setting revised {0}: {1}", this, CDOCommonUtil.formatTimeStamp(revised));
    }

    this.revised = revised;
  }