public class PenSQLQuery extends AbstractSQLQuery implements IPenDatasource
AbstractSQLQuery.QueryInfodatasource, endDate, globalWhere, groupName, groupWhere, penWhere, startDate, tableName, timeColbadQuality, chart, data, log, showWarnings| Constructor and Description |
|---|
PenSQLQuery(java.lang.String datasource,
java.lang.String tableName,
java.lang.String timeCol) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPen(PenData pen)
Adds a pen to this datasource.
|
Dataset |
getDataset()
The underlying dataset that drives this datasource
|
int |
getNumDatapoints()
Return the number of datapoints currently loaded in this source
|
protected AbstractSQLQuery.QueryInfo |
getWholeQuery()
Construct the query and any parameters
|
void |
initRefs(java.util.Map<java.lang.String,PenData> allPens)
Gives the datasource a chance to install references to other pens
|
boolean |
isZoomTracking()
True if this datasource should be restarted when the zoom level changes.
|
protected void |
setData(Dataset ds) |
protected void |
setDates(PMIEasyChart chart)
Called in order to set the
AbstractSQLQuery.startDate and AbstractSQLQuery.endDate fields with proper late-binding IValue
implementations. |
generateWhereAndOrder, getDatasource, getGroupName, getPenWhere, getQuasiPropertyName, getTableName, getTimeCol, registerQuery, setChart, setDatasource, setGlobalWhere, setGroupName, setGroupWhere, setPenWhere, setTableName, setTimeCol, toStringgetData, getTargetFullPath, handleQueryReturnedError, handleQueryReturnedNoRows, handleQueryReturnedValue, notifyQueryRunning, shutdown, startup, warnclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitshutdown, startuppublic PenSQLQuery(java.lang.String datasource,
java.lang.String tableName,
java.lang.String timeCol)
public void addPen(PenData pen)
IPenDatasourceaddPen in interface IPenDatasourcepublic void initRefs(java.util.Map<java.lang.String,PenData> allPens)
IPenDatasourceinitRefs in interface IPenDatasourceprotected void setData(Dataset ds)
setData in class AbstractChartQueryprotected void setDates(PMIEasyChart chart)
AbstractSQLQueryAbstractSQLQuery.startDate and AbstractSQLQuery.endDate fields with proper late-binding IValue
implementations.setDates in class AbstractSQLQueryprotected AbstractSQLQuery.QueryInfo getWholeQuery()
AbstractSQLQuerygetWholeQuery in class AbstractSQLQuerypublic int getNumDatapoints()
IPenDatasourcegetNumDatapoints in interface IPenDatasourcepublic Dataset getDataset()
IPenDatasourcegetDataset in interface IPenDatasourcepublic boolean isZoomTracking()
IPenDatasourceisZoomTracking in interface IPenDatasource