Package clickDetector.offlineFuncs
Class OfflineEventLogging
java.lang.Object
generalDatabase.SQLLogging
generalDatabase.SuperDetLogging
clickDetector.offlineFuncs.OfflineEventLogging
- 
Field Summary
FieldsFields inherited from class generalDatabase.SuperDetLogging
SUBTABLECLAUSE_PARENTDATABASEID, SUBTABLECLAUSE_PARENTUID, SUBTABLECLAUSE_TIMEFields inherited from class generalDatabase.SQLLogging
superDetLogging, UPDATE_POLICY_OVERWRITE, UPDATE_POLICY_WRITENEW - 
Constructor Summary
ConstructorsConstructorDescriptionOfflineEventLogging(ClickControl clickControl, OfflineEventDataBlock pamDataBlock)  - 
Method Summary
Modifier and TypeMethodDescriptionprotected PamDataUnitcreateDataUnit(SQLTypes sqlTypes, long timeMilliseconds, int databaseIndex) Turn the data, which have been transferred back into the PamTableItems back into a usable data.voidbooleansaveOfflineData(DBControlUnit dbControlUnit, PamConnection connection) Save offline data in viewer mode.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.SuperDetLogging
anySubTableItems, checkSubTableCount, countSubTableItems, deleteData, deleteIndexedItems, getEventEndTimeItem, getSubLogging, getSubTableClausePolicy, insertCursorRow, isCreateDataUnits, loadViewData, logData, reLogData, setCreateDataUnits, setEventEndTimeItem, setSubLogging, setSubTableClausePolicy, updateCursorRowMethods inherited from class generalDatabase.SQLLogging
addAddOn, clearAllAddOns, countTableItems, countTableItems, createEarlyResultSet, createInClause, createViewResultSet, createViewResultSet, deleteData, deleteData, 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, isCanView, isLoadViewData, loadDataFrom, loadEarlyData, loadEarlyData, loadLastDataUnit, loadSubtableData, loadSubtableData, loadViewData, loadViewerData, logData, logSubtableData, prepareEmulation, prepareForMixedMode, readLastData, readMixedModeData, readNextEmulation, reCheckTable, reLogData, removeAddOn, removeAddOn, reset, setCanView, setColumnData, setLoadViewData, setTableDefinition, setUpdatePolicy, transferDataFromResult, updateSubtable 
- 
Field Details
- 
COMMENT_LENGTH
public static final int COMMENT_LENGTH- See Also:
 
 
 - 
 - 
Constructor Details
- 
OfflineEventLogging
 
 - 
 - 
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
 
 - 
saveOfflineData
Description copied from class:SQLLoggingSave 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:
 saveOfflineDatain classSuperDetLogging- Parameters:
 dbControlUnit-connection-- Returns:
 
 - 
doSubTableUIDRepairs
public void doSubTableUIDRepairs()- Overrides:
 doSubTableUIDRepairsin classSuperDetLogging
 
 -