public DataPoint setId(int data) { boolean changed = m_id.setValue(data); // Add the now dirty record to the transaction only if it is not previously dirty if (changed) { if (m_dirtyFlags.isEmpty()) GenOrmDataSource.getGenOrmConnection().addToTransaction(this); m_dirtyFlags.set(ID_FIELD_META.getDirtyFlag()); if (m_isNewRecord) // Force set the prev value m_id.setPrevValue(data); } return ((DataPoint) this); }
// --------------------------------------------------------------------------- protected void initialize(int id) { m_id.setValue(id); m_id.setPrevValue(id); }