public class RolapLevel extends LevelBase
RolapLevel implements Level for a ROLAP database.| Modifier and Type | Class and Description | 
|---|---|
static class  | 
RolapLevel.HideMemberCondition
Conditions under which a level's members may be hidden (thereby creating
 a ragged hierarchy). 
 | 
OlapElement.LocalizedProperty| Modifier and Type | Field and Description | 
|---|---|
protected MondrianDef.Expression | 
captionExp
The column or expression which yields the level members' caption. 
 | 
(package private) static int | 
FLAG_ALL  | 
(package private) static int | 
FLAG_UNIQUE
For SQL generator. 
 | 
protected MondrianDef.Expression | 
keyExp
The column or expression which yields the level's key. 
 | 
protected MondrianDef.Expression | 
nameExp
Ths expression which gives the name of members of this level. 
 | 
protected MondrianDef.Expression | 
ordinalExp
The column or expression which yields the level's ordinal. 
 | 
protected MondrianDef.Expression | 
parentExp
The expression which joins to the parent member in a parent-child
 hierarchy, or null if this is a regular hierarchy. 
 | 
protected RolapProperty[] | 
properties  | 
protected MondrianDef.Closure | 
xmlClosure  | 
approxRowCount, depth, description, hierarchy, levelType, memberFormatter, name, uniqueNamecaption, visible| Constructor and Description | 
|---|
RolapLevel(RolapHierarchy hierarchy,
          int depth,
          MondrianDef.Level xmlLevel)  | 
RolapLevel(RolapHierarchy hierarchy,
          String name,
          String caption,
          boolean visible,
          String description,
          int depth,
          MondrianDef.Expression keyExp,
          MondrianDef.Expression nameExp,
          MondrianDef.Expression captionExp,
          MondrianDef.Expression ordinalExp,
          MondrianDef.Expression parentExp,
          String nullParentValue,
          MondrianDef.Closure xmlClosure,
          RolapProperty[] properties,
          int flags,
          Dialect.Datatype datatype,
          SqlStatement.Type internalType,
          RolapLevel.HideMemberCondition hideMemberCondition,
          LevelType levelType,
          String approxRowCount,
          Map<String,Annotation> annotationMap)
Creates a level. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
areMembersUnique()  | 
Map<String,Annotation> | 
getAnnotationMap()
Returns a list of annotations. 
 | 
int | 
getApproxRowCount()
Returns the approximate number of members in this level, or
  
Integer.MIN_VALUE if no approximation is known. | 
MondrianDef.Expression | 
getCaptionExp()  | 
RolapLevel | 
getClosedPeer()  | 
Dialect.Datatype | 
getDatatype()  | 
(package private) int | 
getFlags()  | 
(package private) RolapLevel.HideMemberCondition | 
getHideMemberCondition()  | 
RolapHierarchy | 
getHierarchy()  | 
Property[] | 
getInheritedProperties()
Returns properties defined against this level and parent levels. 
 | 
SqlStatement.Type | 
getInternalType()  | 
MondrianDef.Expression | 
getKeyExp()  | 
protected org.apache.log4j.Logger | 
getLogger()  | 
MondrianDef.Expression | 
getNameExp()  | 
(package private) String | 
getNullParentValue()  | 
MondrianDef.Expression | 
getOrdinalExp()  | 
(package private) MondrianDef.Expression | 
getParentExp()  | 
RolapProperty[] | 
getProperties()
Returns properties defined against this level. 
 | 
String | 
getTableAlias()  | 
(package private) String | 
getTableName()  | 
boolean | 
hasCaptionColumn()  | 
(package private) boolean | 
hasClosedPeer()
Returns true when the level is part of a parent/child hierarchy and has
 an equivalent closed level. 
 | 
(package private) void | 
init(MondrianDef.CubeDimension xmlDimension)  | 
boolean | 
isAll()  | 
boolean | 
isParentChild()
Returns whether this level is parent-child. 
 | 
boolean | 
isSimple()
Indicates that level is not ragged and not a parent/child level. 
 | 
boolean | 
isUnique()  | 
OlapElement | 
lookupChild(SchemaReader schemaReader,
           Id.Segment name)  | 
OlapElement | 
lookupChild(SchemaReader schemaReader,
           Id.Segment name,
           MatchType matchType)
Looks up a child element, returning null if it does not exist. 
 | 
static RolapLevel | 
lookupLevel(RolapLevel[] levels,
           String levelName)  | 
getChildLevel, getDepth, getDescription, getDimension, getLevelType, getMemberFormatter, getName, getParentLevel, getQualifiedName, getUniqueName, isMeasure, setApproxRowCountclone, computeHashCode, equals, equals, getCaption, getLocalized, hashCode, isVisible, setCaption, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetCaption, getLocalized, isVisibleprotected MondrianDef.Expression keyExp
protected MondrianDef.Expression ordinalExp
protected MondrianDef.Expression captionExp
static final int FLAG_ALL
static final int FLAG_UNIQUE
protected RolapProperty[] properties
protected MondrianDef.Expression nameExp
protected MondrianDef.Expression parentExp
protected final MondrianDef.Closure xmlClosure
RolapLevel(RolapHierarchy hierarchy, String name, String caption, boolean visible, String description, int depth, MondrianDef.Expression keyExp, MondrianDef.Expression nameExp, MondrianDef.Expression captionExp, MondrianDef.Expression ordinalExp, MondrianDef.Expression parentExp, String nullParentValue, MondrianDef.Closure xmlClosure, RolapProperty[] properties, int flags, Dialect.Datatype datatype, SqlStatement.Type internalType, RolapLevel.HideMemberCondition hideMemberCondition, LevelType levelType, String approxRowCount, Map<String,Annotation> annotationMap)
RolapLevel(RolapHierarchy hierarchy, int depth, MondrianDef.Level xmlLevel)
public RolapHierarchy getHierarchy()
getHierarchy in interface LevelgetHierarchy in interface OlapElementgetHierarchy in class LevelBasepublic Map<String,Annotation> getAnnotationMap()
AnnotatedThe map may be empty, never null.
protected org.apache.log4j.Logger getLogger()
getLogger in class OlapElementBaseString getTableName()
public MondrianDef.Expression getKeyExp()
public MondrianDef.Expression getOrdinalExp()
public MondrianDef.Expression getCaptionExp()
public boolean hasCaptionColumn()
final int getFlags()
RolapLevel.HideMemberCondition getHideMemberCondition()
public final boolean isUnique()
public final Dialect.Datatype getDatatype()
final String getNullParentValue()
public boolean isParentChild()
MondrianDef.Expression getParentExp()
public MondrianDef.Expression getNameExp()
void init(MondrianDef.CubeDimension xmlDimension)
public final boolean isAll()
public boolean areMembersUnique()
public String getTableAlias()
public RolapProperty[] getProperties()
Levelpublic Property[] getInheritedProperties()
Levelpublic int getApproxRowCount()
LevelInteger.MIN_VALUE if no approximation is known.public SqlStatement.Type getInternalType()
public OlapElement lookupChild(SchemaReader schemaReader, Id.Segment name)
public OlapElement lookupChild(SchemaReader schemaReader, Id.Segment name, MatchType matchType)
OlapElementlookupChild in interface OlapElementlookupChild in class LevelBasepublic boolean isSimple()
boolean hasClosedPeer()
public RolapLevel getClosedPeer()
public static RolapLevel lookupLevel(RolapLevel[] levels, String levelName)