noiseMonitor
Class NoiseLogging

java.lang.Object
  extended by generalDatabase.SQLLogging
      extended by noiseMonitor.NoiseLogging

public class NoiseLogging
extends SQLLogging


Field Summary
private  PamTableItem[] bandItems
           
private  PamTableItem channelNumber
           
private  NoiseDataBlock noiseDataBlock
           
private  NoiseProcess noiseProcess
           
private  PamTableDefinition tableDef
           
 
Fields inherited from class generalDatabase.SQLLogging
UPDATE_POLICY_OVERWRITE, UPDATE_POLICY_WRITENEW
 
Constructor Summary
NoiseLogging(NoiseProcess noiseProcess, NoiseDataBlock noiseDataBlock)
           
 
Method Summary
protected  boolean createAndCheckTable()
          Called from the noise monitor process to recreate the table definition based on the noise measurements created by the user and then check the table columns in the database
private  void createTableDef()
          Function to create the noise table definition will need to go back to the main process and controller to work out which columns are required
 void setTableData(PamDataUnit pamDataUnit)
          Callback function when new data are created that allows the user to set the data for each column.
 
Methods inherited from class generalDatabase.SQLLogging
createDataUnit, createInClause, createViewResultSet, doExtraChecks, fillTableData, finalize, findLogger, getIdListUpdatClause, getLastTime, getPamDataBlock, getTableDefinition, getTimesUpdateClause, getUpdatePolicy, getViewerCursorFinder, getViewerLoadClause, getViewerUpdateClause, isCanView, isLoadViewData, loadViewData, loadViewerData, logData, prepareEmulation, prepareForMixedMode, readLastData, readMixedModeData, readNextEmulation, reCheckTable, reLogData, saveOfflineData, setCanView, setColumnData, setLoadViewData, setTableDefinition, setUpdatePolicy, transferDataFromResult
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

noiseProcess

private NoiseProcess noiseProcess

noiseDataBlock

private NoiseDataBlock noiseDataBlock

tableDef

private PamTableDefinition tableDef

channelNumber

private PamTableItem channelNumber

bandItems

private PamTableItem[] bandItems
Constructor Detail

NoiseLogging

public NoiseLogging(NoiseProcess noiseProcess,
                    NoiseDataBlock noiseDataBlock)
Method Detail

createAndCheckTable

protected boolean createAndCheckTable()
Called from the noise monitor process to recreate the table definition based on the noise measurements created by the user and then check the table columns in the database

Returns:
true if all Ok. False if no database or an error creating a column.

createTableDef

private void createTableDef()
Function to create the noise table definition will need to go back to the main process and controller to work out which columns are required


setTableData

public void setTableData(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