mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
* NEW: FetchCountDistinct - query can return distinct values with their counts * Have to disable asserts, because of #1298
28 lines
644 B
Java
28 lines
644 B
Java
package io.ebean;
|
|
/**
|
|
* Enumeration to use with {@link Query#setCountDistinct(CountDistinctOrder)}.
|
|
* @author Roland Praml, FOCONIS AG
|
|
*
|
|
*/
|
|
public enum CountDistinctOrder {
|
|
NO_ORDERING,
|
|
|
|
/** order by attribute ascending */
|
|
ATTR_ASC,
|
|
|
|
/** order by attribute descending */
|
|
ATTR_DESC,
|
|
|
|
/** order by count ascending and attribute ascending */
|
|
COUNT_ASC_ATTR_ASC,
|
|
|
|
/** order by count ascending and attribute descending */
|
|
COUNT_ASC_ATTR_DESC,
|
|
|
|
/** order by count descending and attribute ascending */
|
|
COUNT_DESC_ATTR_ASC,
|
|
|
|
/** order by count descending and attribute descending */
|
|
COUNT_DESC_ATTR_DESC,
|
|
}
|