/** * INTERNAL: * Get the attribute value from the object and add the appropriate * values to the specified database row. */ @Override public void writeFromObjectIntoRowWithChangeRecord(ChangeRecord changeRecord, AbstractRecord row, AbstractSession session, WriteType writeType) throws DescriptorException { Object object = ((ObjectChangeSet)changeRecord.getOwner()).getUnitOfWorkClone(); this.writeFromObjectIntoRow(object, row, session, writeType); }
/** * INTERNAL: * Get the attribute value from the object and add the appropriate * values to the specified database row. */ public void writeFromObjectIntoRowWithChangeRecord(ChangeRecord changeRecord, AbstractRecord row, AbstractSession session) throws DescriptorException { Object object = ((ObjectChangeSet)changeRecord.getOwner()).getUnitOfWorkClone(); this.writeFromObjectIntoRow(object, row, session); }
/** * INTERNAL: * Get the attribute value from the object and add the appropriate * values to the specified database row. */ @Override public void writeFromObjectIntoRowWithChangeRecord(ChangeRecord changeRecord, AbstractRecord row, AbstractSession session, WriteType writeType) throws DescriptorException { Object object = ((ObjectChangeSet)changeRecord.getOwner()).getUnitOfWorkClone(); this.writeFromObjectIntoRow(object, row, session, writeType); }
/** * 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); }