Heng Sin Low 2009-06-01 10:00:21 +00:00
parent 57a1b276b7
commit d6c6c60fcc
1 changed files with 6 additions and 4 deletions

View File

@ -3202,20 +3202,22 @@ public class GridTable extends AbstractTableModel
if (hasUpdated) { if (hasUpdated) {
Timestamp memUpdated = null; Timestamp memUpdated = null;
memUpdated = (Timestamp) getValueAt(row, colUpdated); // compare with the old value instead of the current value
memUpdated = (Timestamp) getOldValue(row, colUpdated);
if (! memUpdated.equals(dbUpdated)) if (memUpdated != null && ! memUpdated.equals(dbUpdated))
return true; return true;
} }
if (hasProcessed) { if (hasProcessed) {
Boolean memProcessed = null; Boolean memProcessed = null;
memProcessed = (Boolean) getValueAt(row, colProcessed); // compare with the old value instead of the current value
memProcessed = (Boolean) getOldValue(row, colProcessed);
Boolean dbProcessed = Boolean.TRUE; Boolean dbProcessed = Boolean.TRUE;
if (! dbProcessedS.equals("Y")) if (! dbProcessedS.equals("Y"))
dbProcessed = Boolean.FALSE; dbProcessed = Boolean.FALSE;
if (! memProcessed.equals(dbProcessed)) if (memProcessed != null && ! memProcessed.equals(dbProcessed))
return true; return true;
} }
} }