Class PenSQLQuery
java.lang.Object
com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractChartQuery
com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractSQLQuery
com.inductiveautomation.factorypmi.application.components.chart.easychart.PenSQLQuery
- All Implemented Interfaces:
IPenDatasource
,IQueryResponseListener
-
Nested Class Summary
Nested classes/interfaces inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractSQLQuery
AbstractSQLQuery.QueryInfo
-
Field Summary
Fields inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractSQLQuery
datasource, endDate, globalWhere, groupName, groupWhere, penWhere, startDate, tableName, timeCol
Fields inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractChartQuery
badQuality, chart, data, log, showWarnings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a pen to this datasource.The underlying dataset that drives this datasourceint
Return the number of datapoints currently loaded in this sourceprotected AbstractSQLQuery.QueryInfo
Construct the query and any parametersvoid
Gives the datasource a chance to install references to other pensboolean
True if this datasource should be restarted when the zoom level changes.protected void
protected void
setDates
(PMIEasyChart chart) Called in order to set theAbstractSQLQuery.startDate
andAbstractSQLQuery.endDate
fields with proper late-binding IValue implementations.Methods inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractSQLQuery
generateWhereAndOrder, getDatasource, getGroupName, getPenWhere, getQuasiPropertyName, getTableName, getTimeCol, registerQuery, setChart, setDatasource, setGlobalWhere, setGroupName, setGroupWhere, setPenWhere, setTableName, setTimeCol, toString
Methods inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractChartQuery
getData, getTargetFullPath, handleQueryReturnedError, handleQueryReturnedNoRows, handleQueryReturnedValue, notifyQueryRunning, shutdown, startup, warn
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.inductiveautomation.factorypmi.application.components.chart.easychart.IPenDatasource
shutdown, startup
-
Constructor Details
-
PenSQLQuery
-
-
Method Details
-
addPen
Description copied from interface:IPenDatasource
Adds a pen to this datasource. All pens will be added before startup() is called for the first time.- Specified by:
addPen
in interfaceIPenDatasource
-
initRefs
Description copied from interface:IPenDatasource
Gives the datasource a chance to install references to other pens- Specified by:
initRefs
in interfaceIPenDatasource
-
setData
- Overrides:
setData
in classAbstractChartQuery
-
setDates
Description copied from class:AbstractSQLQuery
Called in order to set theAbstractSQLQuery.startDate
andAbstractSQLQuery.endDate
fields with proper late-binding IValue implementations.- Specified by:
setDates
in classAbstractSQLQuery
-
getWholeQuery
Description copied from class:AbstractSQLQuery
Construct the query and any parameters- Specified by:
getWholeQuery
in classAbstractSQLQuery
-
getNumDatapoints
public int getNumDatapoints()Description copied from interface:IPenDatasource
Return the number of datapoints currently loaded in this source- Specified by:
getNumDatapoints
in interfaceIPenDatasource
-
getDataset
Description copied from interface:IPenDatasource
The underlying dataset that drives this datasource- Specified by:
getDataset
in interfaceIPenDatasource
-
isZoomTracking
public boolean isZoomTracking()Description copied from interface:IPenDatasource
True if this datasource should be restarted when the zoom level changes.- Specified by:
isZoomTracking
in interfaceIPenDatasource
-