Class DetectorSQLLogging
java.lang.Object
generalDatabase.SQLLogging
likelihoodDetectionModule.thresholdDetector.DetectorSQLLogging
This class is responsible for writing ThresholdDetectorDataUnits to the database (if configured). This code was mostly
borrowed from the workshop demo, with some custom fields added.
- Author:
- Dave Flogeras
-
Field Summary
Fields inherited from class generalDatabase.SQLLogging
UPDATE_POLICY_OVERWRITE, UPDATE_POLICY_WRITENEW
-
Constructor Summary
ConstructorDescriptionDetectorSQLLogging
(LikelihoodDetectionUnit likelihoodController, ThresholdDetectorProcess thresholdDetectorProcess, PamDataBlock pamDataBlock) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setTableData
(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.SQLLogging
addAddOn, clearAllAddOns, countTableItems, countTableItems, createInClause, deleteData, deleteData, deleteData, deleteIndexedItems, doExtraChecks, double2Float, findClosestDataPoint, findLogger, getBaseTableDefinition, getEarlyLoadClause, getIdListUpdatClause, getLastLoadIndex, getLastLoadUID, getLastTime, getLoggingAddOns, getPamDataBlock, getTableDefinition, getTimesUpdateClause, getUIDMatchClause, getUpdatePolicy, getViewerCursorFinder, getViewerEverythingClause, getViewerLessThanClause, getViewerLoadClause, getViewerOverlapClause, getViewerUpdateClause, isCanView, isLoadViewData, loadDataFrom, loadEarlyData, loadEarlyData, loadLastDataUnit, loadSubtableData, loadSubtableData, loadViewData, loadViewData, loadViewerData, logData, logData, prepareEmulation, prepareForMixedMode, readLastData, readMixedModeData, readNextEmulation, reCheckTable, reLogData, reLogData, removeAddOn, removeAddOn, reset, saveOfflineData, setCanView, setColumnData, setLoadViewData, setTableDefinition, setUpdatePolicy, transferDataFromResult
-
Constructor Details
-
DetectorSQLLogging
public DetectorSQLLogging(LikelihoodDetectionUnit likelihoodController, ThresholdDetectorProcess thresholdDetectorProcess, PamDataBlock pamDataBlock)
-
-
Method Details
-
createTableDefinition
-
setTableData
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 classSQLLogging
-