clickDetector.offlineFuncs
Class OfflineEventLogging
java.lang.Object
generalDatabase.SQLLogging
clickDetector.offlineFuncs.OfflineEventLogging
public class OfflineEventLogging
- extends SQLLogging
|
Method Summary |
protected boolean |
createDataUnit(long timeMilliseconds,
int databaseIndex)
Turn the data, which have been transferred back into the PamTableItems back
into a useable data unit and put it into the datablock. |
private void |
deleteEventClicks(java.sql.Connection connection,
int[] deleteIndexes)
|
java.lang.String |
getViewerLoadClause(PamViewParameters pvp)
|
boolean |
saveOfflineData(DBControlUnit dbControlUnit,
java.sql.Connection connection)
Save offline data in viewer mode. |
void |
setTableData(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 |
createInClause, createViewResultSet, doExtraChecks, fillTableData, finalize, findLogger, getIdListUpdatClause, getLastTime, getPamDataBlock, getTableDefinition, getTimesUpdateClause, getUpdatePolicy, getViewerCursorFinder, getViewerUpdateClause, isCanView, isLoadViewData, loadViewData, loadViewerData, logData, prepareEmulation, prepareForMixedMode, readLastData, readMixedModeData, readNextEmulation, reCheckTable, reLogData, setCanView, setColumnData, setLoadViewData, setTableDefinition, setUpdatePolicy, transferDataFromResult |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tableDef
private PamTableDefinition tableDef
COMMENT_LENGTH
public static final int COMMENT_LENGTH
- See Also:
- Constant Field Values
clickControl
private ClickControl clickControl
endTime
private PamTableItem endTime
nClicks
private PamTableItem nClicks
minNumber
private PamTableItem minNumber
bestNumber
private PamTableItem bestNumber
maxNumber
private PamTableItem maxNumber
eventType
private PamTableItem eventType
comment
private PamTableItem comment
colourIndex
private PamTableItem colourIndex
channels
private PamTableItem channels
OfflineEventLogging
public OfflineEventLogging(ClickControl clickControl,
PamDataBlock pamDataBlock)
setTableData
public void setTableData(PamDataUnit pamDataUnit)
- 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 class SQLLogging
createDataUnit
protected boolean createDataUnit(long timeMilliseconds,
int databaseIndex)
- Description copied from class:
SQLLogging
- Turn the data, which have been transferred back into the PamTableItems back
into a useable data unit and put it into the datablock.
- Overrides:
createDataUnit in class SQLLogging
- Returns:
- true if a data unit was sucessfully created
getViewerLoadClause
public java.lang.String getViewerLoadClause(PamViewParameters pvp)
- Overrides:
getViewerLoadClause in class SQLLogging
saveOfflineData
public boolean saveOfflineData(DBControlUnit dbControlUnit,
java.sql.Connection connection)
- 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 tow here, but functions must override for 3.
- Overrides:
saveOfflineData in class SQLLogging
- Returns:
deleteEventClicks
private void deleteEventClicks(java.sql.Connection connection,
int[] deleteIndexes)