/** * INTERNAL: * If it has changed, build the value for the database field and put it in the * specified database row. * If any part of the aggregate object has changed, the entire object is * written to the database row (i.e. partial updates are not supported). */ public void writeFromObjectIntoRowForUpdate(WriteObjectQuery query, AbstractRecord row) throws DescriptorException { if (query.getSession().isUnitOfWork()) { if (this.compareObjects(query.getObject(), query.getBackupClone(), query.getSession())) { return;// nothing has changed } } this.writeFromObjectIntoRow(query.getObject(), row, query.getSession()); }
/** * INTERNAL: * If it has changed, build the value for the database field and put it in the * specified database row. * If any part of the aggregate object has changed, the entire object is * written to the database row (i.e. partial updates are not supported). */ @Override public void writeFromObjectIntoRowForUpdate(WriteObjectQuery query, AbstractRecord row) throws DescriptorException { if (query.getSession().isUnitOfWork()) { if (this.compareObjects(query.getObject(), query.getBackupClone(), query.getSession())) { return;// nothing has changed } } this.writeFromObjectIntoRow(query.getObject(), row, query.getSession(), WriteType.UPDATE); }
/** * INTERNAL: * If it has changed, build the value for the database field and put it in the * specified database row. * If any part of the aggregate object has changed, the entire object is * written to the database row (i.e. partial updates are not supported). */ @Override public void writeFromObjectIntoRowForUpdate(WriteObjectQuery query, AbstractRecord row) throws DescriptorException { if (query.getSession().isUnitOfWork()) { if (this.compareObjects(query.getObject(), query.getBackupClone(), query.getSession())) { return;// nothing has changed } } this.writeFromObjectIntoRow(query.getObject(), row, query.getSession(), WriteType.UPDATE); }