Package mondrian.rolap
Interface TupleReader.MemberBuilder
- All Known Implementing Classes:
RolapCubeHierarchy.RolapCubeSqlMemberSource
- Enclosing interface:
- TupleReader
public static interface TupleReader.MemberBuilder
Factory to create new members for a
hierarchy from SQL result.
- Since:
- Nov 11, 2005
- Author:
- av
-
Method Summary
Modifier and TypeMethodDescriptionReturns the 'all' member of the hierarchy.mondrian.rolap.MemberCache
Returns theMemberCache
to look up members before creating them.Returns the object which acts as the member cache synchronization lock.makeMember
(RolapMember parentMember, RolapLevel childLevel, Object value, Object captionValue, boolean parentChild, SqlStatement stmt, Object key, int column) Creates a new member (together with its properties).
-
Method Details
-
getMemberCache
mondrian.rolap.MemberCache getMemberCache()Returns theMemberCache
to look up members before creating them.- Returns:
- member cache
-
getMemberCacheLock
Object getMemberCacheLock()Returns the object which acts as the member cache synchronization lock.- Returns:
- Object to lock
-
makeMember
RolapMember makeMember(RolapMember parentMember, RolapLevel childLevel, Object value, Object captionValue, boolean parentChild, SqlStatement stmt, Object key, int column) throws SQLException Creates a new member (together with its properties).- Parameters:
parentMember
- Parent memberchildLevel
- Child levelvalue
- Member valuecaptionValue
- CaptionparentChild
- Whether a parent-child hierarchystmt
- SQL statementkey
- Member keycolumn
- Column ordinal (0-based)- Returns:
- new member
- Throws:
SQLException
- on error
-
allMember
RolapMember allMember()Returns the 'all' member of the hierarchy.- Returns:
- The 'all' member
-