|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.wabit.rs.olap.OlapUtils
public class OlapUtils
This is a class full of static helper methods to assist with the execution of olap queries
| Method Summary | |
|---|---|
static org.olap4j.query.Query |
copyMDXQuery(org.olap4j.query.Query query)
This method returns a deep copy of an MDX Query because there is no such method in the API. |
static boolean |
isChild(org.olap4j.metadata.Member parent,
org.olap4j.metadata.Member testForChildishness)
Tests whether or not the given parent member has the other member as one of a direct child. |
static boolean |
isDescendant(org.olap4j.metadata.Member parent,
org.olap4j.metadata.Member testForDescendituitivitiness)
Tests whether or not the given parent member has the other member as one of its descendants--either a direct child, or a child of a child, and so on. |
static boolean |
isDescendantOrEqualTo(org.olap4j.metadata.Member parent,
org.olap4j.metadata.Member testForEquidescendituitivitiness)
Tests whether or not the given parent member is the same as or has the other member as one of its descendants--either a direct child, or a child of a child, and so on. |
static OlapResultSet |
toResultSet(org.olap4j.CellSet cellSet)
Creates and populates an OlapResultSet from the given CellSet, which must not be null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isDescendant(org.olap4j.metadata.Member parent,
org.olap4j.metadata.Member testForDescendituitivitiness)
parent - The parent membertestForDescendituitivitiness - The member to check if it has parent as an ancestor
public static boolean isDescendantOrEqualTo(org.olap4j.metadata.Member parent,
org.olap4j.metadata.Member testForEquidescendituitivitiness)
parent - The parent membertestForDescendituitivitiness - The member to check if it is parent or has parent as an ancestor
public static boolean isChild(org.olap4j.metadata.Member parent,
org.olap4j.metadata.Member testForChildishness)
parent - The potential parent membertestForChildishness - The member to check if it has parent as its parent member
public static org.olap4j.query.Query copyMDXQuery(org.olap4j.query.Query query)
throws java.sql.SQLException
query - This is the Query that is being copied
Dimensions and Member
java.sql.SQLException
public static OlapResultSet toResultSet(@Nonnull
org.olap4j.CellSet cellSet)
execute -
java.lang.RuntimeException - in the unlikely event that the OlapResultSet throws
SQLException while it's being populated.OlapResultSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||