Package mondrian.rolap
Class TargetBase
- java.lang.Object
-
- mondrian.rolap.TargetBase
-
- Direct Known Subclasses:
Target
public abstract class TargetBase extends Object
Base helper class for the SQL tuple readersHighCardSqlTupleReader
andSqlTupleReader
.Keeps track of target levels and constraints for adding to the SQL query. The real work is done in the extending classes,
Target
andSqlTupleReader.Target
.- Since:
- July 23, 2009
- Author:
- Kurtis Walker
-
-
Constructor Summary
Constructors Constructor Description TargetBase(List<RolapMember> srcMembers, RolapLevel level, TupleReader.MemberBuilder memberBuilder)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
add(RolapMember member)
int
addRow(SqlStatement stmt, int column)
Adds a row to the collection.abstract List<Member>
close()
RolapMember
getCurrMember()
RolapLevel
getLevel()
List<RolapMember>
getList()
List<RolapMember>
getSrcMembers()
abstract void
open()
void
removeCurrMember()
void
setCurrMember(RolapMember m)
void
setList(List<RolapMember> list)
String
toString()
-
-
-
Constructor Detail
-
TargetBase
public TargetBase(List<RolapMember> srcMembers, RolapLevel level, TupleReader.MemberBuilder memberBuilder)
-
-
Method Detail
-
setList
public void setList(List<RolapMember> list)
-
getSrcMembers
public List<RolapMember> getSrcMembers()
-
getLevel
public RolapLevel getLevel()
-
getCurrMember
public RolapMember getCurrMember()
-
removeCurrMember
public void removeCurrMember()
-
setCurrMember
public void setCurrMember(RolapMember m)
-
getList
public List<RolapMember> getList()
-
addRow
public final int addRow(SqlStatement stmt, int column) throws SQLException
Adds a row to the collection.- Parameters:
stmt
- Statementcolumn
- Column ordinal (0-based)- Returns:
- Ordinal of next unconsumed column
- Throws:
SQLException
- On error
-
open
public abstract void open()
-
add
public void add(RolapMember member)
-
-