com.mysema.query.group
Class GroupByProjection<K,V>

java.lang.Object
  extended by com.mysema.query.group.GroupBy<K,V>
      extended by com.mysema.query.group.GroupByProjection<K,V>
Type Parameters:
K -
V -
All Implemented Interfaces:
ResultTransformer<Map<K,V>>

public abstract class GroupByProjection<K,V>
extends GroupBy<K,V>

GroupByProjection provides projection of the Group results via the transform template method

Author:
tiwe

Field Summary
 
Fields inherited from class com.mysema.query.group.GroupBy
expressions, groupExpressions, maps
 
Constructor Summary
GroupByProjection(Expression<K> key, Expression<?>... expressions)
           
 
Method Summary
protected abstract  V transform(Group group)
          Creates a result object from the given group
protected  Map<K,V> transform(Map<K,Group> groups)
           
 
Methods inherited from class com.mysema.query.group.GroupBy
avg, groupBy, list, map, max, min, set, sum, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupByProjection

public GroupByProjection(Expression<K> key,
                         Expression<?>... expressions)
Method Detail

transform

protected Map<K,V> transform(Map<K,Group> groups)
Overrides:
transform in class GroupBy<K,V>

transform

protected abstract V transform(Group group)
Creates a result object from the given group

Parameters:
group -
Returns:


Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.