|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.tonbeller.jpivot.olap.query.QueryAdapter
public abstract class QueryAdapter
Adapt the MDX query to the model
Nested Class Summary | |
---|---|
static interface |
QueryAdapter.QueryAdapterHolder
ask a QueryAdapterHolder to get a query adapter |
Field Summary | |
---|---|
protected boolean |
axesSwapped
|
protected boolean |
genMDXHierarchize
|
protected ModelSupport |
model
|
protected Quax[] |
quaxes
|
protected SortRankBase |
sortMan
|
protected boolean |
useQuax
|
Constructor Summary | |
---|---|
protected |
QueryAdapter(ModelSupport model)
c'tor |
Method Summary | |
---|---|
void |
afterExecute(Result result)
after the startup query was run: get the current positions as array of array of member. |
abstract boolean |
canCollapse(Member member)
|
abstract boolean |
canCollapse(Member[] pathMembers)
|
abstract boolean |
canDrillDown(Member member)
drill down is possible if member has children |
boolean |
canDrillUp(Hierarchy hier)
drill up is possible if at least one member in the tree is not at the top level of this hierarchy. |
abstract boolean |
canExpand(Member member)
find out, whether a member can be expanded. |
abstract boolean |
canExpand(Member[] pathMembers)
|
void |
collapse(Member member)
collapse a member in all positions |
void |
collapse(Member[] pathMembers)
collapse a member in a specific position |
protected abstract java.lang.Object |
createMemberSet(java.util.List memList)
create set expression for list of members |
void |
drillDown(Member member)
After switch to Qubon mode: replaces the members. |
void |
drillUp(Hierarchy hier)
After switch to Qubon mode: replaces all visible members of hier with the members of the next higher level. |
void |
expand(Member member)
expand a member in all positions this is done by applying ToggleDrillState to the Query |
void |
expand(Member[] pathMembers)
expand a member in a specific position |
Quax |
findQuax(Dimension dim)
find the Quax for a specific dimension |
Quax[] |
getQuaxes()
|
int |
iASwap(int i)
swap axis index if neccessary |
boolean |
isSwapAxes()
|
boolean |
isUseQuax()
|
protected java.lang.String |
poString(Member[] posMembers,
Member member)
display position member for debugging purposes |
void |
setQuaxes(Quax[] quaxes)
|
void |
setUseQuax(boolean b)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ModelSupport model
protected Quax[] quaxes
protected boolean useQuax
protected boolean axesSwapped
protected boolean genMDXHierarchize
protected SortRankBase sortMan
Constructor Detail |
---|
protected QueryAdapter(ModelSupport model)
model
- Method Detail |
---|
public Quax[] getQuaxes()
public void setQuaxes(Quax[] quaxes)
quaxs
- public Quax findQuax(Dimension dim)
dim
- Dimension
public void afterExecute(Result result)
result
- the result which redefines the query axesprotected abstract java.lang.Object createMemberSet(java.util.List memList)
memList
-
public abstract boolean canExpand(Member member)
Member
- to be expanded
com.tonbeller.jpivot.olap.navi.DrillExpand#canExpand(Member)
public abstract boolean canExpand(Member[] pathMembers)
position
- position to be expandedMember
- to be expanded
com.tonbeller.jpivot.olap.navi.DrillExpand#canExpand(Member)
public abstract boolean canCollapse(Member member)
Member
- to be collapsed
com.tonbeller.jpivot.olap.navi.DrillExpand#canExpand(Member)
public abstract boolean canCollapse(Member[] pathMembers)
position
- position to be expanded
com.tonbeller.jpivot.olap.navi.DrillExpand#canCollapse(Member)
public void expand(Member member)
Member
- member to be expandedcom.tonbeller.jpivot.olap.navi.DrillExpand#expand(Member)
public void expand(Member[] pathMembers)
position
- position to be expandedMember
- member to be expandedcom.tonbeller.jpivot.olap.navi.DrillExpand#expand(Member)
public void collapse(Member member)
Member
- member to be collapsedcom.tonbeller.jpivot.olap.navi.DrillExpand#expand(Member)
public void collapse(Member[] pathMembers)
position
- position to be collapsedcom.tonbeller.jpivot.olap.navi.DrillExpand#expand(Member)
public abstract boolean canDrillDown(Member member)
member
has children
public boolean canDrillUp(Hierarchy hier)
public void drillDown(Member member)
H
be the hierarchy
that member belongs to. Then drillDown will replace all members from H
that are currently visible with the children of member
.
public void drillUp(Hierarchy hier)
public boolean isSwapAxes()
public int iASwap(int i)
original
- index
protected java.lang.String poString(Member[] posMembers, Member member)
posMembers
- member
-
public boolean isUseQuax()
public void setUseQuax(boolean b)
b
- - true if quas is to be used
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |