001 /* 002 // $Id:$ 003 // This software is subject to the terms of the Eclipse Public License v1.0 004 // Agreement, available at the following URL: 005 // http://www.eclipse.org/legal/epl-v10.html. 006 // Copyright (C) 2007-2009 Julian Hyde 007 // All Rights Reserved. 008 // You must accept the terms of that agreement to use this software. 009 */ 010 package org.olap4j.query; 011 /** 012 * Defines in what order to perform sort operations. 013 * @author Luc Boudreau 014 * @version $Id:$ 015 * @since 0.9.8 016 */ 017 public enum SortOrder { 018 /** 019 * Ascending sort order. Members of 020 * the same hierarchy are still kept together. 021 */ 022 ASC, 023 /** 024 * Descending sort order. Members of 025 * the same hierarchy are still kept together. 026 */ 027 DESC, 028 /** 029 * Sorts in ascending order, but does not 030 * maintain members of a same hierarchy 031 * together. This is known as a "break 032 * hierarchy ascending sort". 033 */ 034 BASC, 035 /** 036 * Sorts in descending order, but does not 037 * maintain members of a same hierarchy 038 * together. This is known as a "break 039 * hierarchy descending sort". 040 */ 041 BDESC 042 } 043 // End SortOrder.java