edu.jhu.tmaj.client.tables.logs
Class BeanLogger

java.lang.Object
  extended by edu.jhu.tmaj.client.tables.logs.BeanLogger

public final class BeanLogger
extends java.lang.Object

Provides utility classes for logging changes to any of the JBean classes in TMAJ. The logs are stored in the database in two specially designated tables: DataUpdates and DataDeletes.


Method Summary
static void logDelete(JBean bean)
          Logs the deletion of the JBean.
static void logUpdate(JBean bean, GeneralTableModel tableModel, ChangedCells changedCells, int rowNumber)
          Logs changes to a JBean--All fields changed are recorded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

logDelete

public static void logDelete(JBean bean)
Logs the deletion of the JBean.


logUpdate

public static void logUpdate(JBean bean,
                             GeneralTableModel tableModel,
                             ChangedCells changedCells,
                             int rowNumber)
Logs changes to a JBean--All fields changed are recorded.

Parameters:
bean - The JBean that was updated by the user.
tableModel - the tableModel the JBean was displayed in
changedCells - the data structure showing which cells of the table were changed.
rowNumber - the row of the JBean in the table