Uses of Interface
net.pricefx.formulaengine.DatamartContext.SqlQuery
Package
Description
Provides Formula Engine API classes.
-
Uses of DatamartContext.SqlQuery in net.pricefx.formulaengine
Modifier and TypeMethodDescriptionDatamartContext.SqlQuery.addSource
(DatamartContext.Query sourceQuery) Adds aDatamartContext.Query
as a source for this SQL query.DatamartContext.SqlQuery.addSource
(DatamartContext.Query sourceQuery, String alias) Adds aDatamartContext.Query
as a source for this SQL query.DatamartContext.SqlQuery.addSource
(DatamartContext.Table table) Adds aDatamartContext.Table
as a source for this SQL query.DatamartContext.SqlQuery.addSource
(DatamartContext.Table table, String alias) Adds aDatamartContext.Table
as a source for this SQL query.Adds a with clause to the SQL query, where every "?" char gets replaced by the values provided as additional parameters.Adds a with clause to the SQL query, where every "?" char gets replaced by the values provided as additional parameters.DatamartContext.newJoinFromQueryBuilder
(Map<String, Object> builderState) Gets the join query defined inQuery Builder
source series.DatamartContext.newJoinFromQueryFilterBuilder
(Map<String, Object> queryBuilderState, Map<String, Object> filterBuilderState) When combining aQuery Builder
and aQuery Filter
this method returns the join query with the filter already applied in theSQL query
.DatamartContext.newSqlQuery()
Instantiates a query object for building SQL statements from source queries, with clauses and parameter bindings.DatamartContext.SqlQuery.setAllowUnknownFunctions
(boolean allowUnknownFunctions) Allow to use SQL functions that are not recognized by the validation.DatamartContext.SqlQuery.setMaxRows
(Integer maxRows) Sets the max rows to be returned when executing the SQL query.Sets the main SQL SELECT clause of this query, where every "?" char gets replaced by the values provided as additional parameters.Modifier and TypeMethodDescriptionDatamartContext.executeSqlQuery
(DatamartContext.SqlQuery sqlQuery) Executes an ANSI compliant SQL SELECT statement in the PA DB.DatamartContext.streamSqlQuery
(DatamartContext.SqlQuery query) Executes the givenDatamartContext.SqlQuery
and returns a result, so that one row at the time can be examined. -
Uses of DatamartContext.SqlQuery in net.pricefx.formulaengine.optimization
Modifier and TypeMethodDescriptionlong
ModelFormulaContextReadWrite.loadTable
(DatamartContext.Table table, DatamartContext.SqlQuery query, boolean truncate) Sample code:long
ModelParallelCalculationFormulaItemContext.loadTable
(DatamartContext.Table table, DatamartContext.SqlQuery query) Sample code: