Class AbstractSQLQuery
java.lang.Object
com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractChartQuery
com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractSQLQuery
- All Implemented Interfaces:
- IQueryResponseListener
- Direct Known Subclasses:
- HistogramQuery,- PenSQLQuery
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static classHolds the query (a String), and a list of parameters and their types.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected StringFields inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractChartQuerybadQuality, chart, data, log, showWarnings
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidgenerateWhereAndOrder(StringBuilder sb, List<IValue<? extends Serializable>> params, List<Class<?>> paramTypes) Appends the WHERE and ORDER BY clauses to a string buffer, like:protected 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.protected abstract AbstractSQLQuery.QueryInfoConstruct the query and any parametersprotected ObjectregisterQuery(int pollTime, boolean runOnce) Register this query with the QueryManager.protected voidsetChart(PMIEasyChart chart) voidsetDatasource(String datasource) protected abstract voidsetDates(PMIEasyChart chart) protected voidsetGlobalWhere(String globalWhere) voidsetGroupName(String groupName) protected voidsetGroupWhere(String groupWhere) voidsetPenWhere(String penWhere) voidsetTableName(String tName) voidsetTimeCol(String timeCol) toString()Methods inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractChartQuerygetData, getTargetFullPath, handleQueryReturnedError, handleQueryReturnedNoRows, handleQueryReturnedValue, notifyQueryRunning, setData, shutdown, startup, warn
- 
Field Details- 
datasource
- 
timeCol
- 
tableName
- 
groupName
- 
penWhere
- 
startDate
- 
endDate
- 
globalWhere
- 
groupWhere
 
- 
- 
Constructor Details- 
AbstractSQLQuery
 
- 
- 
Method Details- 
registerQueryDescription copied from class:AbstractChartQueryRegister this query with the QueryManager. Called by AbstractchartQuery duringAbstractChartQuery.startup(PMIEasyChart)- Specified by:
- registerQueryin class- AbstractChartQuery
- Returns:
- The key object that the query manager gave back.
 
- 
setChart- Overrides:
- setChartin class- AbstractChartQuery
 
- 
setDates
- 
toString
- 
getQuasiPropertyNameDescription copied from class:AbstractChartQueryGenerate 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.- Specified by:
- getQuasiPropertyNamein class- AbstractChartQuery
 
- 
setTableName
- 
getTableName
- 
setTimeCol
- 
getTimeCol
- 
generateWhereAndOrderprotected void generateWhereAndOrder(StringBuilder sb, List<IValue<? extends Serializable>> params, List<Class<?>> paramTypes) Appends the WHERE and ORDER BY clauses to a string buffer, like:" WHERE cond AND cond AND cond ORDER BY xval" 
- 
getWholeQueryConstruct the query and any parameters
- 
getDatasource
- 
setDatasource
- 
setGlobalWhere
- 
setGroupWhere
- 
getPenWhere
- 
setPenWhere
- 
getGroupName
- 
setGroupName
 
-