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> List<T> |
getList(Expression<T> expr)
Returns a List of values in this group.
|
<K,V> 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> Set<T> |
getSet(Expression<T> expr)
Returns a Set of values in this group.
|
<K,V> SortedMap<K,V> |
getSortedMap(Expression<K> key,
Expression<V> value)
Returns a SortedMap of values in this group
|
<T> SortedSet<T> |
getSortedSet(Expression<T> expr)
Returns a SortedSet of values in this group.
|
Object[] |
toArray()
Groups elements as an array
|
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
- NoSuchElementException
- if group is undefined.ClassCastException
- if group is of different type<T> T getOne(Expression<T> expr)
T
- Value typeexpr
- Grouped expressionNoSuchElementException
- if group is undefined.ClassCastException
- if group is of different type (e.g. Set)<T> Set<T> getSet(Expression<T> expr)
T
- Value type of Setexpr
- Grouped expressionNoSuchElementException
- if group is undefined.ClassCastException
- if group is of different type (e.g. List)<T> SortedSet<T> getSortedSet(Expression<T> expr)
T
- Value type of Setexpr
- Grouped expressionNoSuchElementException
- if group is undefined.ClassCastException
- if group is of different type (e.g. List)<T> List<T> getList(Expression<T> expr)
T
- Value type of Listexpr
- Grouped expressionNoSuchElementException
- if group is undefined.ClassCastException
- if group is of different type (e.g. Set)<K,V> Map<K,V> getMap(Expression<K> key, Expression<V> value)
K
- Key type of result MapV
- Value type of result Mapkey
- Key expressionvalue
- Value expressionNoSuchElementException
- if group is undefined.ClassCastException
- if group is of different type (e.g. List)<K,V> SortedMap<K,V> getSortedMap(Expression<K> key, Expression<V> value)
K
- Key type of result MapV
- Value type of result Mapkey
- Key expressionvalue
- Value expressionNoSuchElementException
- if group is undefined.ClassCastException
- if group is of different type (e.g. List)Copyright © 2007–2016 Querydsl. All rights reserved.