Package mondrian.rolap
Class TargetBase
java.lang.Object
mondrian.rolap.TargetBase
- Direct Known Subclasses:
Target
Base helper class for the SQL tuple readers
HighCardSqlTupleReader
and
SqlTupleReader
.
Keeps track of target levels and constraints for adding to the SQL query.
The real work is done in the extending classes,
Target
and
SqlTupleReader.Target
.
- Since:
- July 23, 2009
- Author:
- Kurtis Walker
-
Constructor Summary
ConstructorDescriptionTargetBase
(List<RolapMember> srcMembers, RolapLevel level, TupleReader.MemberBuilder memberBuilder) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(RolapMember member) final int
addRow
(SqlStatement stmt, int column) Adds a row to the collection.close()
getLevel()
getList()
abstract void
open()
void
void
void
setList
(List<RolapMember> list) toString()
-
Constructor Details
-
TargetBase
public TargetBase(List<RolapMember> srcMembers, RolapLevel level, TupleReader.MemberBuilder memberBuilder)
-
-
Method Details
-
setList
-
getSrcMembers
-
getLevel
-
getCurrMember
-
removeCurrMember
public void removeCurrMember() -
setCurrMember
-
getList
-
toString
-
addRow
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() -
close
-
add
-