public class PenSQLQuery extends AbstractSQLQuery implements IPenDatasource
AbstractSQLQuery.QueryInfo
datasource, endDate, globalWhere, groupName, groupWhere, penWhere, startDate, tableName, timeCol
badQuality, 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, toString
getData, getTargetFullPath, handleQueryReturnedError, handleQueryReturnedNoRows, handleQueryReturnedValue, notifyQueryRunning, shutdown, startup, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
shutdown, startup
public PenSQLQuery(java.lang.String datasource, java.lang.String tableName, java.lang.String timeCol)
public void addPen(PenData pen)
IPenDatasource
addPen
in interface IPenDatasource
public void initRefs(java.util.Map<java.lang.String,PenData> allPens)
IPenDatasource
initRefs
in interface IPenDatasource
protected void setData(Dataset ds)
setData
in class AbstractChartQuery
protected void setDates(PMIEasyChart chart)
AbstractSQLQuery
AbstractSQLQuery.startDate
and AbstractSQLQuery.endDate
fields with proper late-binding IValue
implementations.setDates
in class AbstractSQLQuery
protected AbstractSQLQuery.QueryInfo getWholeQuery()
AbstractSQLQuery
getWholeQuery
in class AbstractSQLQuery
public int getNumDatapoints()
IPenDatasource
getNumDatapoints
in interface IPenDatasource
public Dataset getDataset()
IPenDatasource
getDataset
in interface IPenDatasource
public boolean isZoomTracking()
IPenDatasource
isZoomTracking
in interface IPenDatasource