/** * By default use the buildClone. */ @Override public Object buildWorkingCopyClone(Object domainObject, Session session) throws DescriptorException { return buildClone(domainObject, session); }
/** * INTERNAL: * Set the copy policy. * This would be 'protected' but the EJB stuff in another * package needs it to be public */ public void setCopyPolicy(CopyPolicy policy) { copyPolicy = policy; if (policy != null) { policy.setDescriptor(this); } }
/** * Return false as a shallow clone is returned, not a new instance. */ public boolean buildsNewInstance() { return getMethodName() == null; }
/** * INTERNAL: */ public CopyPolicy getCopyPolicy() { return new InstantiationCopyPolicy(); } }
/** * Returns the clone of the specified object. This is called only from unit of work. * The domainObject sent as parameter is always a copy from the parent of unit of work. * bug 2612602 make a call to build a working clone. This will in turn call the copy policy * to make a working clone. This allows for lighter and heavier clones to * be created based on their use. * this allows the stub of the clone to be registered before cloning its parts. */ public Object instantiateWorkingCopyClone(Object domainObject, AbstractSession session) { return this.descriptor.getCopyPolicy().buildWorkingCopyClone(domainObject, session); }
/** * It is now possible to build working copy clones directly from rows. * <p>An intermediary original is no longer needed. * <p>This has ramifications to the copy policy and cmp, for clones are * no longer built via cloning. * <p>Instead the copy policy must in some cases not copy at all. * this allows the stub of the clone to be registered before cloning its parts. */ public Object instantiateWorkingCopyCloneFromRow(AbstractRecord row, ObjectBuildingQuery query, Object primaryKey, UnitOfWorkImpl unitOfWork) { return this.descriptor.getCopyPolicy().buildWorkingCopyCloneFromRow(row, query, primaryKey, unitOfWork); }
/** * Return false as a shallow clone is returned, not a new instance. */ public boolean buildsNewInstance() { return getMethodName() == null; }
/** * INTERNAL: * Returns the copy policy. */ public CopyPolicy getCopyPolicy() { // Lazy initialize for XML deployment. if (copyPolicy == null) { setCopyPolicy(new InstantiationCopyPolicy()); } return copyPolicy; }
/** * By default use the buildClone. */ public Object buildWorkingCopyClone(Object domainObject, Session session) throws DescriptorException { return buildClone(domainObject, session); }
/** * INTERNAL: * Set the copy policy. * This would be 'protected' but the EJB stuff in another * package needs it to be public */ public void setCopyPolicy(CopyPolicy policy) { copyPolicy = policy; if (policy != null) { policy.setDescriptor(this); } }
/** * Returns the clone of the specified object. This is called only from unit of work. * The domainObject sent as parameter is always a copy from the parent of unit of work. * bug 2612602 make a call to build a working clone. This will in turn call the copy policy * to make a working clone. This allows for lighter and heavier clones to * be created based on their use. * this allows the stub of the clone to be registered before cloning its parts. */ public Object instantiateWorkingCopyClone(Object domainObject, AbstractSession session) { return this.descriptor.getCopyPolicy().buildWorkingCopyClone(domainObject, session); }
/** * It is now possible to build working copy clones directly from rows. * <p>An intermediary original is no longer needed. * <p>This has ramifications to the copy policy and cmp, for clones are * no longer built via cloning. * <p>Instead the copy policy must in some cases not copy at all. * this allows the stub of the clone to be registered before cloning its parts. */ public Object instantiateWorkingCopyCloneFromRow(AbstractRecord row, ObjectBuildingQuery query, Object primaryKey, UnitOfWorkImpl unitOfWork) { return this.descriptor.getCopyPolicy().buildWorkingCopyCloneFromRow(row, query, primaryKey, unitOfWork); }
/** * Return false as a shallow clone is returned, not a new instance. */ public boolean buildsNewInstance() { return getMethodName() == null; }
/** * INTERNAL: * Returns the copy policy. */ public CopyPolicy getCopyPolicy() { // Lazy initialize for XML deployment. if (copyPolicy == null) { setCopyPolicy(new InstantiationCopyPolicy()); } return copyPolicy; }
/** * By default use the buildClone. */ public Object buildWorkingCopyClone(Object domainObject, Session session) throws DescriptorException { return buildClone(domainObject, session); }
/** * INTERNAL: * Set the copy policy. * This would be 'protected' but the EJB stuff in another * package needs it to be public */ public void setCopyPolicy(CopyPolicy policy) { copyPolicy = policy; if (policy != null) { policy.setDescriptor(this); } }
/** * Returns the clone of the specified object. This is called only from unit of work. * The domainObject sent as parameter is always a copy from the parent of unit of work. * bug 2612602 make a call to build a working clone. This will in turn call the copy policy * to make a working clone. This allows for lighter and heavier clones to * be created based on their use. * this allows the stub of the clone to be registered before cloning its parts. */ public Object instantiateWorkingCopyClone(Object domainObject, AbstractSession session) { return this.descriptor.getCopyPolicy().buildWorkingCopyClone(domainObject, session); }
/** * It is now possible to build working copy clones directly from rows. * <p>An intermediary original is no longer needed. * <p>This has ramifications to the copy policy and cmp, for clones are * no longer built via cloning. * <p>Instead the copy policy must in some cases not copy at all. * this allows the stub of the clone to be registered before cloning its parts. */ public Object instantiateWorkingCopyCloneFromRow(AbstractRecord row, ObjectBuildingQuery query, Vector primaryKey, UnitOfWorkImpl unitOfWork) { return this.descriptor.getCopyPolicy().buildWorkingCopyCloneFromRow(row, query, primaryKey, unitOfWork); }
public String toString() { return Helper.getShortClassName(this) + "(" + this.getMethodName() + ")"; } }
/** * INTERNAL: * Returns the copy policy. */ public CopyPolicy getCopyPolicy() { // Lazy initialize for XML deployment. if (copyPolicy == null) { setCopyPolicy(new InstantiationCopyPolicy()); } return copyPolicy; }