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 Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classHolds the query (a String), and a list of parameters and their types. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected StringFields inherited from class com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractChartQuery
badQuality, chart, data, log, showWarnings -
Constructor Summary
Constructors -
Method Summary
Modifier 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.AbstractChartQuery
getData, 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
-
registerQuery
Description copied from class:AbstractChartQueryRegister this query with the QueryManager. Called by AbstractchartQuery duringAbstractChartQuery.startup(PMIEasyChart)- Specified by:
registerQueryin classAbstractChartQuery- Returns:
- The key object that the query manager gave back.
-
setChart
- Overrides:
setChartin classAbstractChartQuery
-
setDates
-
toString
-
getQuasiPropertyName
Description 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 classAbstractChartQuery
-
setTableName
-
getTableName
-
setTimeCol
-
getTimeCol
-
generateWhereAndOrder
protected 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"
-
getWholeQuery
Construct the query and any parameters -
getDatasource
-
setDatasource
-
setGlobalWhere
-
setGroupWhere
-
getPenWhere
-
setPenWhere
-
getGroupName
-
setGroupName
-