|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.rolap.DefaultMemberChildrenConstraint
public class DefaultMemberChildrenConstraint
Restricts the SQL result set to the parent member of a MemberChildren query. If called with a calculated member an exception will be thrown.
Constructor Summary | |
---|---|
protected |
DefaultMemberChildrenConstraint()
|
Method Summary | |
---|---|
void |
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. |
void |
addMemberConstraint(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar,
List<RolapMember> parents)
Modifies a Member.Children query so that (all or some)
children of all parent members contained in parents
will be returned in the result set. |
void |
addMemberConstraint(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar,
RolapMember parent)
Modifies a Member.Children query so that only the children
of parent will be returned in the result set. |
Object |
getCacheKey()
Returns a key that becomes part of the key for caching the result of the SQL query. |
int |
getMaxRows()
|
static MemberChildrenConstraint |
instance()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected DefaultMemberChildrenConstraint()
Method Detail |
---|
public void addMemberConstraint(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar, RolapMember parent)
MemberChildrenConstraint
Member.Children
query so that only the children
of parent
will be returned in the result set.
addMemberConstraint
in interface MemberChildrenConstraint
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 childrenpublic void addMemberConstraint(SqlQuery sqlQuery, RolapCube baseCube, AggStar aggStar, List<RolapMember> parents)
MemberChildrenConstraint
Member.Children
query so that (all or some)
children of all parent members contained in parents
will be returned in the result set.
addMemberConstraint
in interface MemberChildrenConstraint
sqlQuery
- the 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.public void addLevelConstraint(SqlQuery query, RolapCube baseCube, AggStar aggStar, RolapLevel level)
MemberChildrenConstraint
addLevelConstraint
in interface MemberChildrenConstraint
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 childrenpublic String toString()
toString
in class Object
public Object getCacheKey()
SqlConstraint
getCacheKey
in interface SqlConstraint
public static MemberChildrenConstraint instance()
public int getMaxRows()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |