public interface Group
| Modifier and Type | Method and Description |
|---|---|
<T,R> R |
getGroup(GroupExpression<T,R> coldef)
Returns the value of the given group.
|
<T> java.util.List<T> |
getList(Expression<T> expr)
Returns a List of values in this group.
|
<K,V> java.util.Map<K,V> |
getMap(Expression<K> key,
Expression<V> value)
Returns a Map of values in this group
|
<T> T |
getOne(Expression<T> expr)
Returns the value of the given single valued expression.
|
<T> java.util.Set<T> |
getSet(Expression<T> expr)
Returns a Set of values in this group.
|
<K,V> java.util.SortedMap<K,V> |
getSortedMap(Expression<K> key,
Expression<V> value)
Returns a SortedMap of values in this group
|
<T> java.util.SortedSet<T> |
getSortedSet(Expression<T> expr)
Returns a SortedSet of values in this group.
|
java.lang.Object[] |
toArray()
Groups elements as an array
|
java.lang.Object[] toArray()
<T,R> R getGroup(GroupExpression<T,R> coldef)
T - Type of element in a single ResultSet row, i.e. type of Expression<T>R - Target type of this group, e.g. List<T>coldef - java.util.NoSuchElementException - if group is undefined.java.lang.ClassCastException - if group is of different type<T> T getOne(Expression<T> expr)
T - Value typeexpr - Grouped expressionjava.util.NoSuchElementException - if group is undefined.java.lang.ClassCastException - if group is of different type (e.g. Set)<T> java.util.Set<T> getSet(Expression<T> expr)
T - Value type of Setexpr - Grouped expressionjava.util.NoSuchElementException - if group is undefined.java.lang.ClassCastException - if group is of different type (e.g. List)<T> java.util.SortedSet<T> getSortedSet(Expression<T> expr)
T - Value type of Setexpr - Grouped expressionjava.util.NoSuchElementException - if group is undefined.java.lang.ClassCastException - if group is of different type (e.g. List)<T> java.util.List<T> getList(Expression<T> expr)
T - Value type of Listexpr - Grouped expressionjava.util.NoSuchElementException - if group is undefined.java.lang.ClassCastException - if group is of different type (e.g. Set)<K,V> java.util.Map<K,V> getMap(Expression<K> key, Expression<V> value)
K - Key type of result MapV - Value type of result Mapkey - Key expressionvalue - Value expressionjava.util.NoSuchElementException - if group is undefined.java.lang.ClassCastException - if group is of different type (e.g. List)<K,V> java.util.SortedMap<K,V> getSortedMap(Expression<K> key, Expression<V> value)
K - Key type of result MapV - Value type of result Mapkey - Key expressionvalue - Value expressionjava.util.NoSuchElementException - if group is undefined.java.lang.ClassCastException - if group is of different type (e.g. List)Copyright © 2007–2021 Querydsl. All rights reserved.