Пример #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());
   }
 }
  /**
   * 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");
 }