Package qa.database
Class QASoundLogging
java.lang.Object
generalDatabase.SQLLogging
generalDatabase.BufferedSQLLogging
qa.database.QASoundLogging
SIDE logging class is going to have to do something a bit fancy to work out which sounds have
 been detected and by which detectors. Since these may include manually marking on displays, 
 it's possible that detection data may only be available a long time after a sound has been 
 generated. Will have to do something fancy such as keep a sound in a memory buffer for a fair old
 while, then log it anyway and be prepared to update it if another detector updates it.
- Author:
 - dg50
 
- 
Field Summary
Fields inherited from class generalDatabase.SQLLogging
superDetLogging, UPDATE_POLICY_OVERWRITE, UPDATE_POLICY_WRITENEW - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidcheckDetectorList(ArrayList<PamDataBlock> allDetectors) Check that all detectors have got a column in the database.protected PamDataUnitcreateDataUnit(SQLTypes sqlTypes, long timeMilliseconds, int databaseIndex) Turn the data, which have been transferred back into the PamTableItems back into a usable data.booleanlogData(PamConnection con, PamDataUnit dataUnit, PamDataUnit superDetection) Called when a new PamDataUnit is added to a PamDataBlock to write those data to the database.voidsetTableData(SQLTypes sqlTypes, 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.BufferedSQLLogging
flushBuffer, getBufferSeconds, reLogData, setBufferSecondsMethods inherited from class generalDatabase.SQLLogging
addAddOn, clearAllAddOns, countTableItems, countTableItems, createEarlyResultSet, createInClause, createViewResultSet, createViewResultSet, deleteData, deleteData, deleteData, deleteIndexedItems, deleteSubtableItem, deleteSubtableItems, doExtraChecks, double2Float, fillTableData, finalize, findClosestDataPoint, findLogger, getBaseTableDefinition, getEarlyLoadClause, getIdListUpdatClause, getLastLoadIndex, getLastLoadUID, getLastTime, getLoggingAddOns, getPamDataBlock, getTableDefinition, getTimesUpdateClause, getUIDMatchClause, getUpdatePolicy, getViewerCursorFinder, getViewerEverythingClause, getViewerLessThanClause, getViewerLoadClause, getViewerOverlapClause, getViewerUpdateClause, insertCursorRow, isCanView, isLoadViewData, loadDataFrom, loadEarlyData, loadEarlyData, loadLastDataUnit, loadSubtableData, loadSubtableData, loadViewData, loadViewData, loadViewerData, logData, logSubtableData, prepareEmulation, prepareForMixedMode, readLastData, readMixedModeData, readNextEmulation, reCheckTable, reLogData, removeAddOn, removeAddOn, reset, saveOfflineData, setCanView, setColumnData, setLoadViewData, setTableDefinition, setUpdatePolicy, transferDataFromResult, updateCursorRow, updateSubtable 
- 
Constructor Details
- 
QASoundLogging
 
 - 
 - 
Method Details
- 
setTableData
Description copied from class:SQLLoggingCallback 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:
 setTableDatain classSQLLogging- Parameters:
 pamDataUnit-
 - 
createDataUnit
Description copied from class:SQLLoggingTurn the data, which have been transferred back into the PamTableItems back into a usable data. Don't add to datablock. This will happen in calling function after additional add-ons and annotations have been added to the data unit. .- Overrides:
 createDataUnitin classSQLLogging- Returns:
 - true if a data unit was successfully created
 
 - 
checkDetectorList
Check that all detectors have got a column in the database.- Parameters:
 allDetectors-
 - 
logData
Description copied from class:SQLLoggingCalled 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:
 logDatain classBufferedSQLLogging- Parameters:
 con- Database ConnectiondataUnit- Pamguard Data unit.superDetection- reference to a super detection so additional cross referencing can be filled- Returns:
 - true if written and new index of dataUnit retrieved OK
 - See Also:
 
 
 -