Class UserFormSQLAddon

java.lang.Object
annotation.userforms.UserFormSQLAddon
All Implemented Interfaces:
SQLLoggingAddon

public class UserFormSQLAddon extends Object implements SQLLoggingAddon
SQL Logging addon for Logger form annotations.
Author:
Doug
  • Constructor Details

  • Method Details

    • addTableItems

      public void addTableItems(EmptyTableDefinition pamTableDefinition)
      Description copied from interface: SQLLoggingAddon
      Add a load of columns to an existing table definition
      Specified by:
      addTableItems in interface SQLLoggingAddon
    • saveData

      public boolean saveData(SQLTypes sqlTypes, EmptyTableDefinition pamTableDefinition, PamDataUnit pamDataUnit)
      Description copied from interface: SQLLoggingAddon
      Save data - that is transfer data from the pamDataUnit to the data objects within the table definition
      Specified by:
      saveData in interface SQLLoggingAddon
      Parameters:
      pamTableDefinition - table definition
      pamDataUnit - data unit
      Returns:
      true if successful
    • loadData

      public boolean loadData(SQLTypes sqlTypes, EmptyTableDefinition pamTableDefinition, PamDataUnit pamDataUnit)
      Description copied from interface: SQLLoggingAddon
      Load data - that is read data from the table definition and turn it into something sensible within or attached to the data unit.
      Specified by:
      loadData in interface SQLLoggingAddon
      Parameters:
      pamTableDefinition - table definition
      pamDataUnit - data unit
      Returns:
      true if successful
    • getName

      public String getName()
      Description copied from interface: SQLLoggingAddon
      Get a name for the SQLLogging Addon. this is used in identifying the Addon meaning that it should be possible to have two Addon's with the same class, but different fields.
      Specified by:
      getName in interface SQLLoggingAddon
      Returns:
      the name of the Logging Addon