Package clickDetector.offlineFuncs
Class OfflineEventLogging
java.lang.Object
generalDatabase.SQLLogging
generalDatabase.SuperDetLogging
clickDetector.offlineFuncs.OfflineEventLogging
-
Field Summary
Fields inherited from class generalDatabase.SuperDetLogging
SUBTABLECLAUSE_PARENTDATABASEID, SUBTABLECLAUSE_PARENTUID, SUBTABLECLAUSE_TIME
Fields inherited from class generalDatabase.SQLLogging
UPDATE_POLICY_OVERWRITE, UPDATE_POLICY_WRITENEW
-
Constructor Summary
ConstructorDescriptionOfflineEventLogging
(ClickControl clickControl, OfflineEventDataBlock pamDataBlock) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
saveOfflineData
(DBControlUnit dbControlUnit, PamConnection connection) Save offline data in viewer mode.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.SuperDetLogging
anySubTableItems, checkSubTableCount, countSubTableItems, deleteData, deleteIndexedItems, getEventEndTimeItem, getSubLogging, getSubTableClausePolicy, isCreateDataUnits, loadViewData, logData, reLogData, setCreateDataUnits, setEventEndTimeItem, setSubLogging, setSubTableClausePolicy
Methods inherited from class generalDatabase.SQLLogging
addAddOn, clearAllAddOns, countTableItems, countTableItems, createInClause, deleteData, deleteData, 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, loadViewerData, logData, prepareEmulation, prepareForMixedMode, readLastData, readMixedModeData, readNextEmulation, reCheckTable, reLogData, removeAddOn, removeAddOn, reset, setCanView, setColumnData, setLoadViewData, setTableDefinition, setUpdatePolicy, transferDataFromResult
-
Field Details
-
COMMENT_LENGTH
public static final int COMMENT_LENGTH- See Also:
-
-
Constructor Details
-
OfflineEventLogging
-
-
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
-
saveOfflineData
Description copied from class:SQLLogging
Save offline data in viewer mode.This is a pretty basic function which assumes pretty much a 1:1 correspondence between data loaded into the viewer and data to be saved.
Three types of saving to do
- Pre existing 1:1 correspondence between data in memory and database
- Viewer will have added or removed data (e.g. map comments may easily have added data)
- Weird stuff like in the click detector where the database is only holding information about a subset of clicks held in the binary data files
Should be able to deal with first two here, but functions must override for 3.
- Overrides:
saveOfflineData
in classSuperDetLogging
- Returns:
-
doSubTableUIDRepairs
public void doSubTableUIDRepairs()- Overrides:
doSubTableUIDRepairs
in classSuperDetLogging
-