Uses of Class
mondrian.rolap.sql.SqlQuery
Packages that use SqlQuery
Package
Description
Mondrian's core package, this defines connections and the catalog metamodel,
and allows you to execute queries.
Implements the data access layer for the olap package.
Manages a cache of aggregates containing cell values.
Defines a 'matcher' which scans the schema to find candidate aggregate tables.
Database-independent library for generating SQL.
-
Uses of SqlQuery in mondrian.olap
Methods in mondrian.olap with parameters of type SqlQueryModifier and TypeMethodDescriptionMondrianDef.Column.getExpression(SqlQuery query) MondrianDef.Expression.getExpression(SqlQuery query) MondrianDef.ExpressionView.getExpression(SqlQuery query) -
Uses of SqlQuery in mondrian.rolap
Methods in mondrian.rolap that return SqlQueryModifier and TypeMethodDescriptionRolapStar.Column.getSqlQuery()RolapStar.getSqlQuery()Clones an existing SqlQuery to create a new one (this cloning creates one with an empty sql query).Methods in mondrian.rolap with parameters of type SqlQueryModifier and TypeMethodDescriptionvoidDefaultTupleConstraint.addConstraint(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar) voidRolapNativeSet.SetConstraint.addConstraint(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar) voidSqlContextConstraint.addConstraint(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar) Called from LevelMembers: restricts the SQL resultset to the current context.static voidSqlConstraintUtils.addContextConstraint(SqlQuery sqlQuery, AggStar aggStar, Evaluator evaluator, RolapCube baseCube, boolean restrictMemberTypes) For every restricting member in the current context, generates a WHERE condition and a join to the fact table.voidDefaultMemberChildrenConstraint.addLevelConstraint(SqlQuery query, RolapCube baseCube, AggStar aggStar, RolapLevel level) voidDefaultTupleConstraint.addLevelConstraint(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar, RolapLevel level) voidSqlContextConstraint.addLevelConstraint(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar, RolapLevel level) protected voidSqlTupleReader.addLevelMemberSql(SqlQuery sqlQuery, RolapLevel level, RolapCube baseCube, mondrian.rolap.SqlTupleReader.WhichSelect whichSelect, AggStar aggStar) Generates the SQL statement to access members oflevel.voidDefaultMemberChildrenConstraint.addMemberConstraint(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar, List<RolapMember> parents) voidDefaultMemberChildrenConstraint.addMemberConstraint(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar, RolapMember parent) static voidSqlConstraintUtils.addMemberConstraint(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar, List<RolapMember> members, boolean restrictMemberTypes, boolean crossJoin, boolean exclude) Creates a "WHERE exp IN (...)" condition containing the values of all parents.static voidSqlConstraintUtils.addMemberConstraint(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar, RolapMember parent, boolean restrictMemberTypes) Creates a "WHERE parent = value" constraint.voidSqlContextConstraint.addMemberConstraint(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar, List<RolapMember> parents) Addsparentsto the current context and restricts the SQL resultset to that new context.voidSqlContextConstraint.addMemberConstraint(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar, RolapMember parent) Called from MemberChildren: addsparentto the current context and restricts the SQL resultset to that new context.voidAdds this table to the FROM clause of a query, and also, ifjoinToParent, any join condition.static StringSqlConstraintUtils.constrainLevel(RolapLevel level, SqlQuery query, RolapCube baseCube, AggStar aggStar, String[] columnValue, boolean caseSensitive) Generates a sql expression constraining a level by some valuestatic StringSqlConstraintUtils.constrainLevel(RolapLevel level, SqlQuery query, RolapCube baseCube, AggStar aggStar, String columnValue, boolean caseSensitive) static StringSqlConstraintUtils.constrainLevel2(SqlQuery query, MondrianDef.Expression exp, Dialect.Datatype datatype, Comparable columnValue) Generates a sql expression constraining a level by some valuestatic StringRolapStar.Column.createInExpr(String expr, StarColumnPredicate predicate, Dialect.Datatype datatype, SqlQuery sqlQuery) Generates a predicate that a column matches one of a list of values.RolapStar.Column.generateExprString(SqlQuery query) Generates a SQL expression, which typically this looks like this:tableName.columnName.static StringSqlConstraintUtils.getColumnExpr(SqlQuery sqlQuery, AggStar aggStar, RolapStar.Column column) Get the column expression from the AggStar if provided or the regular table if not, and ensure table is in Fromstatic voidSqlConstraintUtils.joinLevelTableToFactTable(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar, Evaluator e, RolapCubeLevel level) Ensures that the table oflevelis joined to the fact tablevoidStarPredicate.toSql(SqlQuery sqlQuery, StringBuilder buf) Constructors in mondrian.rolap with parameters of type SqlQueryModifierConstructorDescriptionRolapNativeSql(SqlQuery sqlQuery, AggStar aggStar, Evaluator evaluator, RolapLevel rolapLevel) Creates a RolapNativeSql. -
Uses of SqlQuery in mondrian.rolap.agg
Methods in mondrian.rolap.agg that return SqlQueryModifier and TypeMethodDescriptionprotected SqlQueryAbstractQuerySpec.newSqlQuery()Creates a query object.Methods in mondrian.rolap.agg with parameters of type SqlQueryModifier and TypeMethodDescriptionprotected voidAbstractQuerySpec.addGroupingFunction(SqlQuery sqlQuery) protected voidAbstractQuerySpec.addGroupingSets(SqlQuery sqlQuery, Map<String, String> groupingSetsAliases) protected voidAbstractQuerySpec.addMeasure(int i, SqlQuery sqlQuery) Adds a measure to a query.AndPredicate.checkInList(SqlQuery sqlQuery, BitKey inListLHSBitKey) AbstractQuerySpec.distinctGenerateSql(SqlQuery outerSqlQuery, boolean countOnly) Generates a SQL query to retrieve the values in this segment using an algorithm which converts distinct-aggregates to non-distinct aggregates over subqueries.protected voidAbstractQuerySpec.extraPredicates(SqlQuery sqlQuery) Adds predicates not associated with columns.AbstractQuerySpec.nonDistinctGenerateSql(SqlQuery sqlQuery) voidAndPredicate.toInListSql(SqlQuery sqlQuery, StringBuilder buf, BitKey inListRHSBitKey) Generate value list for this predicate to be used in an IN-list sql predicate.voidValueColumnPredicate.toInListSql(SqlQuery sqlQuery, StringBuilder buf) voidAbstractColumnPredicate.toSql(SqlQuery sqlQuery, StringBuilder buf) voidListColumnPredicate.toSql(SqlQuery sqlQuery, StringBuilder buf) voidListPredicate.toSql(SqlQuery sqlQuery, StringBuilder buf) voidLiteralStarPredicate.toSql(SqlQuery sqlQuery, StringBuilder buf) voidMemberTuplePredicate.toSql(SqlQuery sqlQuery, StringBuilder buf) voidOrPredicate.toSql(SqlQuery sqlQuery, StringBuilder buf) voidValueColumnPredicate.toSql(SqlQuery sqlQuery, StringBuilder buf) -
Uses of SqlQuery in mondrian.rolap.aggmatcher
Methods in mondrian.rolap.aggmatcher that return SqlQueryModifier and TypeMethodDescriptionprotected SqlQueryAggGen.getSqlQuery()AggStar.Table.Column.getSqlQuery()protected SqlQueryAggStar.Table.getSqlQuery()Get a SqlQuery object.Methods in mondrian.rolap.aggmatcher with parameters of type SqlQueryModifier and TypeMethodDescriptionvoidThis is a copy of the code found in RolapStar used to generate an SQL query.AggStar.FactTable.Measure.generateExprString(SqlQuery query) AggStar.Table.Column.generateExprString(SqlQuery query) Generates a SQL expression, which typically this looks like this:tableName.columnName.AggStar.FactTable.Measure.generateRollupString(SqlQuery query) Return the left join expression as string. -
Uses of SqlQuery in mondrian.rolap.sql
Methods in mondrian.rolap.sql that return SqlQueryModifier and TypeMethodDescriptionSqlQuery.cloneEmpty()Creates an emptySqlQuerywith the same environment as this one.static SqlQuerySqlQuery.newQuery(DataSource dataSource, String err) Methods in mondrian.rolap.sql with parameters of type SqlQueryModifier and TypeMethodDescriptionvoidCrossJoinArg.addConstraint(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar) voidDescendantsCrossJoinArg.addConstraint(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar) voidMemberKeyConstraint.addConstraint(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar) voidMemberListCrossJoinArg.addConstraint(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar) voidTupleConstraint.addConstraint(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar) Modifies a Level.Members query.voidvoidMemberChildrenConstraint.addLevelConstraint(SqlQuery query, RolapCube baseCube, AggStar aggStar, RolapLevel level) Will be called once for the level that contains the children of a Member.Children query.voidMemberKeyConstraint.addLevelConstraint(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar, RolapLevel level) voidTupleConstraint.addLevelConstraint(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar, RolapLevel level) Will be called multiple times for every "group by" level in Level.Members query, i.e.voidMemberChildrenConstraint.addMemberConstraint(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar, List<RolapMember> parents) Modifies aMember.Childrenquery so that (all or some) children of all parent members contained inparentswill be returned in the result set.voidMemberChildrenConstraint.addMemberConstraint(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar, RolapMember parent) Modifies aMember.Childrenquery so that only the children ofparentwill be returned in the result set.voidSqlQueryChecker.onGenerate(SqlQuery q)