Class DBControlSettings

All Implemented Interfaces:
PamSettings, PamSettingsSource, SettingsNameProvider
Direct Known Subclasses:
ExternalDatabaseControl

public class DBControlSettings extends DBControl
Version of DBControl for loading settings at program startup.
Author:
Doug Gillespie
See Also:
  • Constructor Details

    • DBControlSettings

      public DBControlSettings(String unitName)
    • DBControlSettings

      public DBControlSettings()
  • Method Details

    • loadSettingsFromDB

      public ArrayList<PamControlledUnitSettings> loadSettingsFromDB(PamConnection pamConnection)
    • loadSettingsFromDB

      public ArrayList<PamControlledUnitSettings> loadSettingsFromDB(PamControlledUnitSettings pamControlledUnitSettings)
    • loadSettingsFromDB

      public ArrayList<PamControlledUnitSettings> loadSettingsFromDB(int showDatabaseDialog)
      Try to load the serialised settings from the database.

      First go for the last settings which are in a separate table, then if that's empty (which it will in many cases since the last settings table (Pamguard_Settings_Last) only appeared in February 2009), get the last entry in the cumulative settings stored in the Pamguard_Settings table.

      Parameters:
      showDatabaseDialog - Show a dialog to ask for a database. 0 = never, 1 = if no database open 2 = always.
      Returns:
      Array list of PAMGUARD settings.
    • notifyModelChanged

      public void notifyModelChanged(int changeType)
      Description copied from class: PamControlledUnit
      General notification when the PAMGAURD model changes.
      Overrides:
      notifyModelChanged in class DBControl
      Parameters:
      changeType - type of change