Package mondrian.rolap.sql
Interface MemberChildrenConstraint
- All Superinterfaces:
SqlConstraint
- All Known Implementing Classes:
DefaultMemberChildrenConstraint,RolapNativeSet.SetConstraint,SqlContextConstraint
Restricts the SQL result of a MembersChildren query in SqlMemberSource.
- Since:
- Nov 2, 2005
- Author:
- av
- See Also:
-
SqlMemberSource
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddLevelConstraint(SqlQuery query, RolapCube baseCube, AggStar aggStar, RolapLevel level) Will be called once for the level that contains the children of a Member.Children query.voidaddMemberConstraint(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.voidaddMemberConstraint(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar, RolapMember parent) Modifies aMember.Childrenquery so that only the children ofparentwill be returned in the result set.Methods inherited from interface mondrian.rolap.sql.SqlConstraint
getCacheKey
-
Method Details
-
addMemberConstraint
void addMemberConstraint(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar, RolapMember parent) Modifies aMember.Childrenquery so that only the children ofparentwill be returned in the result set.- Parameters:
sqlQuery- the query to modifybaseCube- base cube for virtual membersaggStar- Aggregate star, if we are reading from an aggregate table,parent- the parent member that restricts the returned children
-
addMemberConstraint
void 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.- Parameters:
sqlQuery- Query to modifybaseCube- Base cube for virtual membersaggStar- Aggregate table, or null if query is against fact tableparents- List of parent members that restrict the returned children
-
addLevelConstraint
Will be called once for the level that contains the children of a Member.Children query. If the condition requires so, it may join the levels table to the fact table.- Parameters:
query- the query to modifybaseCube- base cube for virtual membersaggStar- Aggregate table, or null if query is against fact tablelevel- the level that contains the children
-