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 AbstractSQLQuery
AbstractSQLQuery.QueryInfo -
Field Summary
Fields inherited from class AbstractSQLQuery
datasource, endDate, globalWhere, groupName, groupWhere, penWhere, startDate, tableName, timeColFields inherited from class AbstractChartQuery
badQuality, chart, data, log, showWarnings -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a pen to this datasource.The underlying dataset that drives this datasourceintReturn the number of datapoints currently loaded in this sourceprotected AbstractSQLQuery.QueryInfoConstruct the query and any parametersvoidGives the datasource a chance to install references to other pensbooleanTrue if this datasource should be restarted when the zoom level changes.protected voidprotected voidsetDates(PMIEasyChart chart) Called in order to set theAbstractSQLQuery.startDateandAbstractSQLQuery.endDatefields with proper late-binding IValue implementations.Methods inherited from class AbstractSQLQuery
generateWhereAndOrder, getDatasource, getGroupName, getPenWhere, getQuasiPropertyName, getTableName, getTimeCol, registerQuery, setChart, setDatasource, setGlobalWhere, setGroupName, setGroupWhere, setPenWhere, setTableName, setTimeCol, toStringMethods inherited from class AbstractChartQuery
getData, getTargetFullPath, handleQueryReturnedError, handleQueryReturnedNoRows, handleQueryReturnedValue, notifyQueryRunning, shutdown, startup, warnMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IPenDatasource
shutdown, startup
-
Constructor Details
-
PenSQLQuery
-
-
Method Details
-
addPen
Description copied from interface:IPenDatasourceAdds a pen to this datasource. All pens will be added before startup() is called for the first time.- Specified by:
addPenin interfaceIPenDatasource
-
initRefs
Description copied from interface:IPenDatasourceGives the datasource a chance to install references to other pens- Specified by:
initRefsin interfaceIPenDatasource
-
setData
- Overrides:
setDatain classAbstractChartQuery
-
setDates
Description copied from class:AbstractSQLQueryCalled in order to set theAbstractSQLQuery.startDateandAbstractSQLQuery.endDatefields with proper late-binding IValue implementations.- Specified by:
setDatesin classAbstractSQLQuery
-
getWholeQuery
Description copied from class:AbstractSQLQueryConstruct the query and any parameters- Specified by:
getWholeQueryin classAbstractSQLQuery
-
getNumDatapoints
public int getNumDatapoints()Description copied from interface:IPenDatasourceReturn the number of datapoints currently loaded in this source- Specified by:
getNumDatapointsin interfaceIPenDatasource
-
getDataset
Description copied from interface:IPenDatasourceThe underlying dataset that drives this datasource- Specified by:
getDatasetin interfaceIPenDatasource
-
isZoomTracking
public boolean isZoomTracking()Description copied from interface:IPenDatasourceTrue if this datasource should be restarted when the zoom level changes.- Specified by:
isZoomTrackingin interfaceIPenDatasource
-