コード例 #1
0
 @Override
 public Object clone() {
   try {
     ArrayList1D clone = (ArrayList1D) super.clone();
     JdoDelegateAction.getInstance().clone(clone);
     return clone;
   } catch (CloneNotSupportedException exc) {
     throw new InternalError("This can't happen : " + exc.getMessage());
   }
 }
コード例 #2
0
  /**
   * clone
   *
   * @return an AbstractObject clone
   */
  protected Object clone() {
    try {
      AbstractObjectUsage bou = (AbstractObjectUsage) super.clone();
      JdoDelegateAction.getInstance().clone(bou);

      // bou.object keep the same value because it is the same object
      bou.object = object;
      bou.validated = false;

      return bou;
    } catch (CloneNotSupportedException e) {
      throw new InternalError(e.toString());
    }
  }
コード例 #3
0
 @Override
 public Object clone() {
   SpecificModel clone = (SpecificModel) super.clone();
   JdoDelegateAction.getInstance().clone(clone);
   return clone;
 }
コード例 #4
0
 /** As arrays are just serialized by JDO, we need to specify "manually" that array has changed. */
 protected final void makeDirty() {
   JdoDelegateAction.getInstance().makeDirtyObject(this, "elementData");
 }