diff --git a/src/org/olap4j/query/QueryAxis.java b/src/org/olap4j/query/QueryAxis.java index 775dbac..c87a1aa 100644 --- a/src/org/olap4j/query/QueryAxis.java +++ b/src/org/olap4j/query/QueryAxis.java @@ -131,6 +131,19 @@ public void addDimension(QueryDimension dimension) { this.notifyAdd(dimension, index); } + /** + * Places a {@link QueryDimension} object on this axis at + * a specific index. + * @param dimension The {@link QueryDimension} object to add + * to this axis. + * @param index The position (0 based) onto which to place + * the QueryDimension + */ + public void addDimension(int index, QueryDimension dimension) { + this.getDimensions().add(index, dimension); + this.notifyAdd(dimension, index); + } + /** * Removes a {@link QueryDimension} object on this axis. * @param dimension The {@link QueryDimension} object to remove