Class AbstractChartQuery
java.lang.Object
com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractChartQuery
- All Implemented Interfaces:
- IQueryResponseListener
- Direct Known Subclasses:
- AbstractSQLQuery,- TagDensityHistogramSource,- TagHistoryPenDatasource
Base class for all of the easy chart query objects that run through the QueryManager. Holds the Dataset response
 object, as well as the target PMIEasyChart object and the query repetition parameters.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected QualityCodeprotected PMIEasyChartprotected Datasetprotected org.apache.log4j.Loggerprotected boolean
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetData()protected abstract StringGenerate a unique string for the query, independent of any values that may change (date ranges, for example.) Used as the "property key" for the quality system in case the query fails.voidvoidvoidhandleQueryReturnedValue(Object value) voidnotifyQueryRunning(boolean loading) protected abstract ObjectregisterQuery(int pollTime, boolean runOnce) Register this query with the QueryManager.protected voidsetChart(PMIEasyChart chart) protected voidvoidshutdown()voidstartup(PMIEasyChart chart) protected void
- 
Field Details- 
data
- 
chart
- 
showWarningsprotected boolean showWarnings
- 
badQuality
- 
logprotected org.apache.log4j.Logger log
 
- 
- 
Constructor Details- 
AbstractChartQuerypublic AbstractChartQuery()
 
- 
- 
Method Details- 
getTargetFullPath- Specified by:
- getTargetFullPathin interface- IQueryResponseListener
 
- 
warn
- 
setChart
- 
startup
- 
registerQueryRegister this query with the QueryManager. Called by AbstractchartQuery duringstartup(PMIEasyChart)- Returns:
- The key object that the query manager gave back.
 
- 
shutdownpublic void shutdown()
- 
getQuasiPropertyNameGenerate a unique string for the query, independent of any values that may change (date ranges, for example.) Used as the "property key" for the quality system in case the query fails.
- 
notifyQueryRunningpublic void notifyQueryRunning(boolean loading) - Specified by:
- notifyQueryRunningin interface- IQueryResponseListener
 
- 
handleQueryReturnedError- Specified by:
- handleQueryReturnedErrorin interface- IQueryResponseListener
 
- 
handleQueryReturnedValue- Specified by:
- handleQueryReturnedValuein interface- IQueryResponseListener
 
- 
handleQueryReturnedNoRowspublic void handleQueryReturnedNoRows()- Specified by:
- handleQueryReturnedNoRowsin interface- IQueryResponseListener
 
- 
setData
- 
getData
 
-