Package UserInput

Class UserInputLogger

java.lang.Object
generalDatabase.SQLLogging
UserInput.UserInputLogger

public class UserInputLogger extends SQLLogging
Author:
David J McLaren
  • Constructor Details Link icon

    • UserInputLogger Link icon

      public UserInputLogger(PamDataBlock pamDataBlock)
  • Method Details Link icon

    • setTableData Link icon

      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
      Parameters:
      pamDataUnit -
    • logData Link icon

      public boolean logData(PamConnection con, PamDataUnit dataUnit)
      Description copied from class: SQLLogging
      Called when a new PamDataUnit is added to a PamDataBlock to write those data to the database. Functionality moved down to PamCursor so that exact writing method can become database specific if necessary.
      Overrides:
      logData in class SQLLogging
      Parameters:
      con - Database Connection
      dataUnit - Pamguard Data unit.
      Returns:
      true if written and new index of dataUnit retrieved OK
      See Also:
    • createDataUnit Link icon

      protected PamDataUnit createDataUnit(SQLTypes sqlTypes, long timeMilliseconds, int databaseIndex)
      Description copied from class: SQLLogging
      Turn the data, which have been transferred back into the PamTableItems back into a usable data. Don't add to datablock. This will happen in calling function after additional add-ons and annotations have been added to the data unit. .
      Overrides:
      createDataUnit in class SQLLogging
      Returns:
      true if a data unit was successfully created