generalDatabase
Class DBControlSettings

java.lang.Object
  extended by PamController.PamControlledUnit
      extended by generalDatabase.DBControl
          extended by generalDatabase.DBControlSettings
All Implemented Interfaces:
PamSettings, PamSettingsSource

public class DBControlSettings
extends DBControl

Version of DBControl for loading settings at program startup.

Author:
Doug
See Also:
DBControl

Nested Class Summary
 
Nested classes/interfaces inherited from class generalDatabase.DBControl
DBControl.DatabaseFileMenuAction
 
Field Summary
 
Fields inherited from class generalDatabase.DBControl
databaseSystem, databaseSystems, dbParameters, dbSidePanel
 
Fields inherited from class PamController.PamControlledUnit
isViewer
 
Constructor Summary
DBControlSettings()
           
 
Method Summary
 java.util.ArrayList<PamControlledUnitSettings> loadSettingsFromDB()
          Try to load the serialised settings from the database.
 java.util.ArrayList<PamControlledUnitSettings> loadSettingsFromDB(PamControlledUnitSettings pamControlledUnitSettings)
           
 void notifyModelChanged(int changeType)
          General notification when the PAMGAURD model changes.
 
Methods inherited from class generalDatabase.DBControl
browseDatabases, createDBControl, createFileMenu, createPamCursor, getConnection, getDatabaseName, getDbProcess, getDbUnitType, getLoggingDataBlocks, getNumSettings, getSettings, getSettingsReference, getSettingsSourceName, getSettingsVersion, getSidePanel, getSystem, isFullTablesCheck, restoreSettings, saveSettingsToDB, saveStartSettings, selectDatabase, selectSystem, setFullTablesCheck, setWriteCount
 
Methods inherited from class PamController.PamControlledUnit
addOtherRelatedMenuItems, addPamProcess, addRelatedMenuItems, canClose, createDetectionMenu, createDisplayMenu, createHelpMenu, fillXMLElement, fillXMLParameters, getFrameNumber, getNumPamProcesses, getPamController, getPamModuleInfo, getPamProcess, getPamView, getTabClipCopier, getTabPanel, getTabSpecificMenuBar, getUnitName, getUnitType, gotoTab, notifyArrayChanged, pamHasStopped, pamToStart, removePamProcess, removeUnit, rename, saveViewerData, setFrameNumber, setPamController, setPamModuleInfo, setPamView, setSidePanel, setTabPanel, setupControlledUnit, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface PamController.PamSettings
getUnitName, getUnitType
 

Constructor Detail

DBControlSettings

public DBControlSettings()
Method Detail

loadSettingsFromDB

public java.util.ArrayList<PamControlledUnitSettings> loadSettingsFromDB(PamControlledUnitSettings pamControlledUnitSettings)

loadSettingsFromDB

public java.util.ArrayList<PamControlledUnitSettings> loadSettingsFromDB()
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.

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