@Override public DatabaseValueHolder createCloneTransformationValueHolder(ValueHolderInterface attributeValue, Object original, Object clone, AbstractTransformationMapping mapping) { return new UnitOfWorkTransformerValueHolder(attributeValue, original, clone, mapping, this); }
/** * Backup the clone attribute value. */ protected Object buildBackupCloneFor(Object cloneAttributeValue) { return buildCloneFor(cloneAttributeValue); }
/** * Clone the original attribute value. */ public Object buildCloneFor(Object originalAttributeValue) { return getMapping().buildCloneForPartObject(originalAttributeValue, getObject(), getCloneOfObject(), getUnitOfWork(), true); }
/** * Ensure that the backup value holder is populated. */ public void setValue(Object theValue) { // Must force instantiation to be able to compare with the old value. if (!isInstantiated()) { instantiate(); } super.setValue(theValue); } }
/** * Ensure that the backup value holder is populated. */ public void setValue(Object theValue) { // Must force instantiation to be able to compare with the old value. if (!this.isInstantiated) { instantiate(); } super.setValue(theValue); } }
/** * Ensure that the backup value holder is populated. */ public void setValue(Object theValue) { // Must force instantiation to be able to compare with the old value. if (!this.isInstantiated) { instantiate(); } super.setValue(theValue); } }
/** * Clone the original attribute value. */ public Object buildCloneFor(Object originalAttributeValue) { return getMapping().buildCloneForPartObject(originalAttributeValue, getObject(), null, getCloneOfObject(), getUnitOfWork(), null, true, true); }
/** * Backup the clone attribute value. */ protected Object buildBackupCloneFor(Object cloneAttributeValue) { return buildCloneFor(cloneAttributeValue); }
@Override public DatabaseValueHolder createCloneTransformationValueHolder(ValueHolderInterface attributeValue, Object original, Object clone, AbstractTransformationMapping mapping) { return new UnitOfWorkTransformerValueHolder(attributeValue, original, clone, mapping, this); }
/** * Clone the original attribute value. */ public Object buildCloneFor(Object originalAttributeValue) { return getMapping().buildCloneForPartObject(originalAttributeValue, getObject(), null, getCloneOfObject(), getUnitOfWork(), null, true, true); }
/** * Backup the clone attribute value. */ protected Object buildBackupCloneFor(Object cloneAttributeValue) { return buildCloneFor(cloneAttributeValue); }
/** * INTERNAL: * Builder the unit of work value holder. * Ignore the original object. * @param buildDirectlyFromRow indicates that we are building the clone directly * from a row as opposed to building the original from the row, putting it in * the shared cache, and then cloning the original. */ public UnitOfWorkValueHolder createUnitOfWorkValueHolder(ValueHolderInterface attributeValue, Object original, Object clone, AbstractRecord row, UnitOfWorkImpl unitOfWork, boolean buildDirectlyFromRow) { return new UnitOfWorkTransformerValueHolder(attributeValue, original, clone, this, unitOfWork); }