001package io.ebean;
002/**
003 * Enumeration to use with {@link Query#setCountDistinct(CountDistinctOrder)}.
004 * @author Roland Praml, FOCONIS AG
005 *
006 */
007public enum CountDistinctOrder {
008  NO_ORDERING,
009  
010  /** order by attribute ascending */
011  ATTR_ASC, 
012  
013  /** order by attribute descending */
014  ATTR_DESC, 
015  
016  /** order by count ascending and attribute ascending */
017  COUNT_ASC_ATTR_ASC,
018  
019  /** order by count ascending and attribute descending */
020  COUNT_ASC_ATTR_DESC,
021  
022  /** order by count descending and attribute ascending */
023  COUNT_DESC_ATTR_ASC,
024  
025  /** order by count descending and attribute descending */
026  COUNT_DESC_ATTR_DESC,
027}