com.mysema.query.types.expr
Class DslExpression<T>

java.lang.Object
  extended by com.mysema.query.types.expr.DslExpression<T>
All Implemented Interfaces:
Expression<T>, Serializable
Direct Known Subclasses:
CollectionExpressionBase, DslOperation, DslPath, DslTemplate, MapExpressionBase, SimpleExpression, SimpleSubQuery

public abstract class DslExpression<T>
extends Object
implements Expression<T>

DslExpression is the base class for DSL expressions, but SimpleExpression is the base class for scalar Expressions

Author:
tiwe
See Also:
Serialized Form

Field Summary
protected  Expression<T> mixin
           
 
Constructor Summary
DslExpression(Expression<T> mixin)
           
 
Method Summary
 DslExpression<T> as(Path<T> alias)
          Create an alias for the expression
 DslExpression<T> as(String alias)
          Create an alias for the expression
 boolean equals(Object o)
           
 Class<? extends T> 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.types.Expression
accept
 

Field Detail

mixin

protected final Expression<T> mixin
Constructor Detail

DslExpression

public DslExpression(Expression<T> mixin)
Method Detail

getType

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

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

as

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

Returns:

as

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

Returns:

equals

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

hashCode

public final int hashCode()
Overrides:
hashCode in class Object

toString

public final String toString()
Overrides:
toString in class Object


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