Package alarm
Class AlarmLogging
java.lang.Object
generalDatabase.SQLLogging
alarm.AlarmLogging
-
Field Summary
Fields inherited from class generalDatabase.SQLLogging
UPDATE_POLICY_OVERWRITE, UPDATE_POLICY_WRITENEW
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
logData
(PamConnection con, PamDataUnit dataUnit) Called when a new PamDataUnit is added to a PamDataBlock to write those data to the database.boolean
reLogData
(PamConnection con, PamDataUnit dataUnit) Called when an old PamDataUnit is updated.void
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, prepareEmulation, prepareForMixedMode, readLastData, readMixedModeData, readNextEmulation, reCheckTable, reLogData, removeAddOn, removeAddOn, reset, saveOfflineData, setCanView, setColumnData, setLoadViewData, setTableDefinition, setUpdatePolicy, transferDataFromResult
-
Constructor Details
-
AlarmLogging
-
-
Method Details
-
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
-
logData
Description copied from class:SQLLogging
Called 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:
logData
in classSQLLogging
- Parameters:
con
- Database ConnectiondataUnit
- Pamguard Data unit.- Returns:
- true if written and new index of dataUnit retrieved OK
- See Also:
-
reLogData
Description copied from class:SQLLogging
Called when an old PamDataUnit is updated. The record is either updated or a new record is written, but cross referenced to the old unit for bookkeeping purposes based on the updatePolicy flag.- Overrides:
reLogData
in classSQLLogging
- Parameters:
con
- Database ConnectiondataUnit
- Pamguard Data unit.- Returns:
- the number of rows written to the database.
- See Also:
-