|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.tonbeller.jpivot.olap.query.Quax
public class Quax
Nested Class Summary | |
---|---|
static class |
Quax.CannotHandleException
indicate, that an "unknown" Funcall was not handled |
Field Summary | |
---|---|
protected int |
nDimension
|
protected TreeNode |
posTreeRoot
|
Constructor Summary | |
---|---|
Quax(int ordinal)
c'tor |
Method Summary | |
---|---|
void |
addChangeListener(QuaxChangeListener listener)
register change listener |
protected int |
addToPosTree(Member[][] aPosMem,
int iStartPos,
int iEndPos,
int iDim,
TreeNode parentNode)
add members of dimension to tree recursively |
boolean |
canCollapse(Member member)
check, whether a member path can be collapsed this is true if there is a child position path |
boolean |
canCollapse(Member[] pathMembers)
check, whether a member path can be collapsed this is true if there is a child position path |
boolean |
canDrillDown(Member member)
drill down is possible if there is no sticky generate |
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. |
boolean |
canExpand(Member member)
check, whether a member can be expanded |
boolean |
canExpand(Member[] pathMembers)
check, whether a member in a specific position path can be expanded |
void |
changed(java.lang.Object source,
boolean changedMemberSet)
handle change |
void |
collapse(Member member)
remove child nodes of monMember |
void |
collapse(Member[] mPath)
remove child positions of mPath from position tree |
int |
dimIdx(Dimension dim)
find out, whether axis contains dimension |
void |
drillDown(Member member)
drill down |
void |
drillUp(Hierarchy hier)
drill down |
void |
expand(Member member)
expand member all over position tree |
void |
expand(Member[] mPath)
expand position path |
java.lang.Object |
genExp(boolean genHierarchize)
MDX Generation generate Exp from tree |
java.lang.Object |
genExpForDim(int iDimension)
generate Exp for all nodes of dimension iDimension |
int |
getGenerateIndex()
|
int |
getGenerateMode()
|
Hierarchy[] |
getHiers()
|
int |
getNDimension()
|
int |
getNHierExclude()
|
int |
getOrdinal()
get Ordinal for axis, this is the immutable id of the quax |
TreeNode |
getPosTreeRoot()
|
QuaxUti |
getUti()
|
void |
hierarchizePositions(Member[][] aPosMem)
hierarchize the query axis position array |
void |
init(java.util.List positions)
Initialize quax from result positions |
boolean |
isHierarchizeNeeded()
|
boolean |
isQubonMode()
|
boolean |
isUnknownFunction(int iHier)
|
void |
regeneratePosTree(java.lang.Object[] sets,
boolean hiersChanged)
regenerate the position tree as crossjoin between sets |
void |
removeChangeListener(QuaxChangeListener listener)
unregister change listener |
void |
resetGenerate()
reset generate "topcount" |
void |
setGenerateIndex(int i)
|
void |
setGenerateMode(int i)
|
void |
setHierarchizeNeeded(boolean b)
|
void |
setHierMemberList(int iHier,
java.util.List list)
|
void |
setHiers(Hierarchy[] hierarchies)
|
void |
setNHierExclude(int hierExclude)
|
void |
setPosTreeRoot(TreeNode posTreeRoot,
boolean hiersChanged)
|
void |
setQubonMode(boolean qubonMode)
|
void |
setUti(QuaxUti uti)
|
java.lang.String |
toString()
String representation (debugging) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int nDimension
protected TreeNode posTreeRoot
Constructor Detail |
---|
public Quax(int ordinal)
ordinal
- Method Detail |
---|
public void addChangeListener(QuaxChangeListener listener)
listener
- public void removeChangeListener(QuaxChangeListener listener)
listener
- public void changed(java.lang.Object source, boolean changedMemberSet)
source
- Originator of the quax changechangedMemberSet
- true if the memberset was changed by the navigatorpublic void init(java.util.List positions)
positions
- protected int addToPosTree(Member[][] aPosMem, int iStartPos, int iEndPos, int iDim, TreeNode parentNode)
aPosMem
- positon member arrayiStartPos
- start position for this dimensioniEndPos
- start position for this dimensioniDim
- index of this dimensionparentNode
- parent node (previous dimension)
public int dimIdx(Dimension dim)
dim
-
public void regeneratePosTree(java.lang.Object[] sets, boolean hiersChanged)
hiersChanged
- indicates that the hierarchies were changedpublic boolean canExpand(Member[] pathMembers)
pathMembers
- position path to be expandedpublic void expand(Member[] mPath)
mPath
- public boolean canExpand(Member member)
member
- member to be expandedpublic void expand(Member member)
member
- public boolean canCollapse(Member[] pathMembers)
pathMembers
- position path to be collapsedpublic void collapse(Member[] mPath)
mPath
- member path to be collapsedpublic boolean canCollapse(Member member)
member
- position path to be collapsedpublic void collapse(Member member)
member
- member to be collapsedpublic boolean canDrillDown(Member member)
public void drillDown(Member member)
member
- drill down memberpublic boolean canDrillUp(Hierarchy hier)
public void drillUp(Hierarchy hier)
hier
- drill down memberpublic java.lang.Object genExp(boolean genHierarchize)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object genExpForDim(int iDimension)
iDimension
-
public void hierarchizePositions(Member[][] aPosMem)
public QuaxUti getUti()
public void setUti(QuaxUti uti)
uti
- public int getNDimension()
public TreeNode getPosTreeRoot()
public boolean isHierarchizeNeeded()
public void setHierarchizeNeeded(boolean b)
b
- public void setPosTreeRoot(TreeNode posTreeRoot, boolean hiersChanged)
posTreeRoot
- public int getOrdinal()
public void setHiers(Hierarchy[] hierarchies)
hierarchies
- public Hierarchy[] getHiers()
public boolean isQubonMode()
public void setQubonMode(boolean qubonMode)
qubonMode
- public int getGenerateIndex()
public void setGenerateIndex(int i)
public int getGenerateMode()
public void setGenerateMode(int i)
public void resetGenerate()
public int getNHierExclude()
public void setNHierExclude(int hierExclude)
hierExclude
- The nHierExclude to set.public void setHierMemberList(int iHier, java.util.List list)
iHier
- index of Hierarchylist
- Member Listpublic boolean isUnknownFunction(int iHier)
iHier
- index of Hierarchy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |