Package annotationMark
Class MarkSQLLogging
java.lang.Object
generalDatabase.SQLLogging
PamDetection.AcousticSQLLogging
annotationMark.MarkSQLLogging
Database logging for stand alone Annotation data.
This is just a skeleton SQL logging which saves nothing more than time. Everything else is set using an SQLLoggingAddon created by the DataAnnotationType.
- Author:
- Doug Gillespie
-
Field Summary
Fields inherited from class generalDatabase.SQLLogging
UPDATE_POLICY_OVERWRITE, UPDATE_POLICY_WRITENEW
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAddOn
(SQLLoggingAddon sqlLoggingAddon) Add an SQL Logging addon - something which adds some standard columns to what it probably a non standard table, e.g.boolean
logData
(PamConnection con, PamDataUnit dataUnit) Called when a new PamDataUnit is added to a PamDataBlock to write those data to the database.Methods inherited from class PamDetection.AcousticSQLLogging
setTableData
Methods inherited from class generalDatabase.SQLLogging
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, reLogData, removeAddOn, removeAddOn, reset, saveOfflineData, setCanView, setColumnData, setLoadViewData, setTableDefinition, setUpdatePolicy, transferDataFromResult
-
Constructor Details
-
MarkSQLLogging
-
-
Method Details
-
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:
-
addAddOn
Description copied from class:SQLLogging
Add an SQL Logging addon - something which adds some standard columns to what it probably a non standard table, e.g. adding target motion results to a click event detection.Note that database checks are carried out immediately this gets added.
- Overrides:
addAddOn
in classSQLLogging
-