Class MarkSQLLogging


public class MarkSQLLogging extends AcousticSQLLogging
Database logging for stand alone Annotation data.

This is just a skeleton SQL logging which saves nothing more than time. Everything else is set using an SQLLoggingAddon created by the DataAnnotationType.

Author:
Doug Gillespie
  • Constructor Details

  • Method Details

    • logData

      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:
    • addAddOn

      public void addAddOn(SQLLoggingAddon sqlLoggingAddon)
      Description copied from class: SQLLogging
      Add an SQL Logging addon - something which adds some standard columns to what it probably a non standard table, e.g. adding target motion results to a click event detection.

      Note that database checks are carried out immediately this gets added.

      Overrides:
      addAddOn in class SQLLogging