|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.wabit.AbstractWabitObject
ca.sqlpower.wabit.olap.WabitOlapAxis
public class WabitOlapAxis
Wrapper class to an Olap4j Dimension. Used to load and save Olap4j Dimensions.
| Constructor Summary | |
|---|---|
WabitOlapAxis(org.olap4j.Axis ordinal)
Creates a WabitOlapDimension with the given name. |
|
WabitOlapAxis(org.olap4j.query.QueryAxis queryAxis)
Creates a WabitOlapAxis to wrap the given QueryAxis. |
|
WabitOlapAxis(WabitOlapAxis axis)
Copy Constructor. |
|
| Method Summary | |
|---|---|
protected void |
addChildImpl(WabitObject child,
int index)
This is the object specific implementation of #addChild(WabitObject). |
void |
addDimension(WabitOlapDimension dimension)
Adds an exclusion to this axis. |
void |
addDimension(WabitOlapDimension dimension,
int index)
Adds an exclusion to this axis at the given dimension. |
boolean |
allowsChildren()
Returns true if this object may contain children. |
int |
childPositionOffset(java.lang.Class<? extends WabitObject> childType)
Returns the position in the list that would be returned by getChildren() that the first object of type childClass is, or where it would be if there were any children of that type. |
java.util.List<? extends WabitObject> |
getChildren()
Returns an unmodifiable list of the children in this WabitObject. |
java.util.List<WabitObject> |
getDependencies()
Olap wrapper classes only depend on the wrapped Olap4j objects |
java.util.List<WabitOlapDimension> |
getDimensions()
Returns the list of dimensions |
org.olap4j.Axis |
getOrdinal()
|
OlapQuery |
getParent()
Returns the parent of this WabitObject. |
java.lang.String |
getSortEvaluationLiteral()
|
java.lang.String |
getSortOrder()
|
boolean |
isNonEmpty()
|
protected boolean |
removeChildImpl(WabitObject child)
This is the object specific implementation of removeChild. |
void |
removeDependency(WabitObject dependency)
Removes the given object as a dependency of this object. |
void |
setNonEmpty(boolean nonEmpty)
|
void |
setSortEvaluationLiteral(java.lang.String sortEvaluationLiteral)
|
void |
setSortOrder(java.lang.String sortOrder)
|
void |
updateChildren()
Updates lists of children based on children of the wrapped Dimension. |
| Methods inherited from class ca.sqlpower.wabit.AbstractWabitObject |
|---|
addChild, addWabitListener, begin, beginTransaction, cleanup, commit, commitTransaction, equals, fireChildAdded, fireChildRemoved, firePropertyChange, firePropertyChange, firePropertyChange, fireTransactionEnded, fireTransactionRollback, fireTransactionStarted, generateNewUUID, getChildren, getName, getSession, getUUID, isForegroundThread, removeChild, removeWabitListener, rollback, rollbackTransaction, runInBackground, runInForeground, setName, setParent, setUUID, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WabitOlapAxis(WabitOlapAxis axis)
public WabitOlapAxis(org.olap4j.query.QueryAxis queryAxis)
QueryAxis.
public WabitOlapAxis(org.olap4j.Axis ordinal)
| Method Detail |
|---|
public void updateChildren()
public void addDimension(WabitOlapDimension dimension)
QueryAxis.
public void addDimension(WabitOlapDimension dimension,
int index)
QueryAxis.
protected boolean removeChildImpl(WabitObject child)
AbstractWabitObject
removeChildImpl in class AbstractWabitObjectAbstractWabitObject.removeChild(WabitObject)
protected void addChildImpl(WabitObject child,
int index)
AbstractWabitObject#addChild(WabitObject). There are checks in the
#addChild(WabitObject) method to ensure that the object given
here is a valid child type of this object.
This method should be overwritten if children are allowed.
addChildImpl in class AbstractWabitObjectchild - The child to add to this object.index - The index to add the child at.public boolean allowsChildren()
WabitObject
WabitObject.childPositionOffset(Class)public int childPositionOffset(java.lang.Class<? extends WabitObject> childType)
WabitObject
public java.util.List<? extends WabitObject> getChildren()
WabitObject
public java.util.List<WabitObject> getDependencies()
public void removeDependency(WabitObject dependency)
WabitObject
public java.util.List<WabitOlapDimension> getDimensions()
public void setNonEmpty(boolean nonEmpty)
public boolean isNonEmpty()
public void setSortOrder(java.lang.String sortOrder)
public java.lang.String getSortOrder()
public void setSortEvaluationLiteral(java.lang.String sortEvaluationLiteral)
public java.lang.String getSortEvaluationLiteral()
public org.olap4j.Axis getOrdinal()
public OlapQuery getParent()
WabitObjectWabitObject
tree.
getParent in interface WabitObjectgetParent in class AbstractWabitObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||