Class OfflineEventLogging

java.lang.Object
generalDatabase.SQLLogging
generalDatabase.SuperDetLogging
clickDetector.offlineFuncs.OfflineEventLogging

public class OfflineEventLogging extends SuperDetLogging
  • Field Details

  • Constructor Details

  • Method Details

    • setTableData

      public void setTableData(SQLTypes sqlTypes, PamDataUnit pamDataUnit)
      Description copied from class: SQLLogging
      Callback function when new data are created that allows the user to set the data for each column. Columns that have data which can be filled automatically (counters, primary keys and columns cross referenced to data in other tables) are filled automatically in fillTableData()
      Specified by:
      setTableData in class SQLLogging
    • saveOfflineData

      public boolean saveOfflineData(DBControlUnit dbControlUnit, PamConnection connection)
      Description copied from class: SQLLogging
      Save offline data in viewer mode.

      This is a pretty basic function which assumes pretty much a 1:1 correspondence between data loaded into the viewer and data to be saved.

      Three types of saving to do

      1. Pre existing 1:1 correspondence between data in memory and database
      2. Viewer will have added or removed data (e.g. map comments may easily have added data)
      3. Weird stuff like in the click detector where the database is only holding information about a subset of clicks held in the binary data files

      Should be able to deal with first two here, but functions must override for 3.

      Overrides:
      saveOfflineData in class SuperDetLogging
      Returns:
    • doSubTableUIDRepairs

      public void doSubTableUIDRepairs()
      Overrides:
      doSubTableUIDRepairs in class SuperDetLogging