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.
|
Object[] |
toArray() |
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> 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)Copyright © 2007–2015 Mysema Ltd. All rights reserved.