public class SqlConstraintFactory extends Object
| Modifier and Type | Field and Description | 
|---|---|
(package private) static boolean | 
enabled  | 
| Modifier and Type | Method and Description | 
|---|---|
MemberChildrenConstraint | 
getChildByNameConstraint(RolapMember parent,
                        Id.NameSegment childName)  | 
TupleConstraint | 
getDescendantsConstraint(List<RolapMember> parentMembers,
                        MemberChildrenConstraint mcc)
Returns a constraint that allows to read all children of multiple parents
 at once using a LevelMember query style. 
 | 
TupleConstraint | 
getLevelMembersConstraint(Evaluator context)  | 
TupleConstraint | 
getLevelMembersConstraint(Evaluator context,
                         Level[] levels)
Returns a constraint that restricts the members of a level to those that
 are non-empty in the given context. 
 | 
MemberChildrenConstraint | 
getMemberChildrenConstraint(Evaluator context)  | 
static SqlConstraintFactory | 
instance()  | 
static void | 
setNativeNonEmptyValue()  | 
public static SqlConstraintFactory instance()
public static void setNativeNonEmptyValue()
public MemberChildrenConstraint getMemberChildrenConstraint(Evaluator context)
public TupleConstraint getLevelMembersConstraint(Evaluator context)
public TupleConstraint getLevelMembersConstraint(Evaluator context, Level[] levels)
context - Context within which members must be non-emptylevels - levels being referenced in the current contextpublic MemberChildrenConstraint getChildByNameConstraint(RolapMember parent, Id.NameSegment childName)
public TupleConstraint getDescendantsConstraint(List<RolapMember> parentMembers, MemberChildrenConstraint mcc)
parentMembers - List of parents (all must belong to same level)mcc - The constraint that would return the children for
                      each single parent