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
 
 public class PenSQLQuery extends AbstractSQLQuery implements IPenDatasource 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractSQLQueryAbstractSQLQuery.QueryInfo
 
- 
 - 
Field Summary- 
Fields inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractSQLQuerydatasource, endDate, globalWhere, groupName, groupWhere, penWhere, startDate, tableName, timeCol
 - 
Fields inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractChartQuerybadQuality, chart, data, log, showWarnings
 
- 
 - 
Constructor SummaryConstructors Constructor Description PenSQLQuery(java.lang.String datasource, java.lang.String tableName, java.lang.String timeCol)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPen(PenData pen)Adds a pen to this datasource.DatasetgetDataset()The underlying dataset that drives this datasourceintgetNumDatapoints()Return the number of datapoints currently loaded in this sourceprotected AbstractSQLQuery.QueryInfogetWholeQuery()Construct the query and any parametersvoidinitRefs(java.util.Map<java.lang.String,PenData> allPens)Gives the datasource a chance to install references to other pensbooleanisZoomTracking()True if this datasource should be restarted when the zoom level changes.protected voidsetData(Dataset ds)protected voidsetDates(PMIEasyChart chart)Called in order to set theAbstractSQLQuery.startDateandAbstractSQLQuery.endDatefields with proper late-binding IValue implementations.- 
Methods inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractSQLQuerygenerateWhereAndOrder, 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.AbstractChartQuerygetData, getTargetFullPath, handleQueryReturnedError, handleQueryReturnedNoRows, handleQueryReturnedValue, notifyQueryRunning, shutdown, startup, warn
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface com.inductiveautomation.factorypmi.application.components.chart.easychart.IPenDatasourceshutdown, startup
 
- 
 
- 
- 
- 
Method Detail- 
addPenpublic void addPen(PenData pen) 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 interface- IPenDatasource
 
 - 
initRefspublic void initRefs(java.util.Map<java.lang.String,PenData> allPens) Description copied from interface:IPenDatasourceGives the datasource a chance to install references to other pens- Specified by:
- initRefsin interface- IPenDatasource
 
 - 
setDataprotected void setData(Dataset ds) - Overrides:
- setDatain class- AbstractChartQuery
 
 - 
setDatesprotected void setDates(PMIEasyChart chart) Description copied from class:AbstractSQLQueryCalled in order to set theAbstractSQLQuery.startDateandAbstractSQLQuery.endDatefields with proper late-binding IValue implementations.- Specified by:
- setDatesin class- AbstractSQLQuery
 
 - 
getWholeQueryprotected AbstractSQLQuery.QueryInfo getWholeQuery() Description copied from class:AbstractSQLQueryConstruct the query and any parameters- Specified by:
- getWholeQueryin class- AbstractSQLQuery
 
 - 
getNumDatapointspublic int getNumDatapoints() Description copied from interface:IPenDatasourceReturn the number of datapoints currently loaded in this source- Specified by:
- getNumDatapointsin interface- IPenDatasource
 
 - 
getDatasetpublic Dataset getDataset() Description copied from interface:IPenDatasourceThe underlying dataset that drives this datasource- Specified by:
- getDatasetin interface- IPenDatasource
 
 - 
isZoomTrackingpublic boolean isZoomTracking() Description copied from interface:IPenDatasourceTrue if this datasource should be restarted when the zoom level changes.- Specified by:
- isZoomTrackingin interface- IPenDatasource
 
 
- 
 
-