com.mysema.query.group
Class AbstractGroupExpression<T,R>

java.lang.Object
  extended by com.mysema.query.group.AbstractGroupExpression<T,R>
Type Parameters:
T -
R -
All Implemented Interfaces:
GroupExpression<T,R>, Expression<R>, Serializable

public abstract class AbstractGroupExpression<T,R>
extends Object
implements GroupExpression<T,R>

A base class for GroupExpressions

Author:
sasa
See Also:
Serialized Form

Constructor Summary
AbstractGroupExpression(Class<? super R> type, Expression<T> expr)
           
 
Method Summary
<R,C> R
accept(Visitor<R,C> v, C context)
          Accept the visitor with the given context
 DslExpression<R> as(Path<R> alias)
          Create an alias for the expression
 DslExpression<R> as(String alias)
          Create an alias for the expression
 boolean equals(Object o)
           
 Expression<T> getExpression()
           
 Class<? extends R> getType()
          Get the java type for this expression
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.mysema.query.group.GroupExpression
createGroupCollector
 

Constructor Detail

AbstractGroupExpression

public AbstractGroupExpression(Class<? super R> type,
                               Expression<T> expr)
Method Detail

as

public DslExpression<R> as(Path<R> alias)
Create an alias for the expression

Returns:

as

public DslExpression<R> as(String alias)
Create an alias for the expression

Returns:

getExpression

public Expression<T> getExpression()
Specified by:
getExpression in interface GroupExpression<T,R>
Returns:
Expression wrapped by this group definition

accept

public <R,C> R accept(Visitor<R,C> v,
                      C context)
Description copied from interface: Expression
Accept the visitor with the given context

Specified by:
accept in interface Expression<R>
Type Parameters:
R - return type
C - context type
Parameters:
v - visitor
context - context of visit
Returns:

equals

public boolean equals(Object o)
Overrides:
equals in class Object

getType

public Class<? extends R> getType()
Description copied from interface: Expression
Get the java type for this expression

Specified by:
getType in interface Expression<R>
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


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