com.mysema.query.types.expr
Class EnumOperation<D extends Enum<D>>
java.lang.Object
com.mysema.query.types.ExpressionBase<D>
com.mysema.query.types.expr.SimpleExpression<D>
com.mysema.query.types.expr.ComparableExpressionBase<D>
com.mysema.query.types.expr.ComparableExpression<T>
com.mysema.query.types.expr.EnumExpression<D>
com.mysema.query.types.expr.EnumOperation<D>
- Type Parameters:
D
-
- All Implemented Interfaces:
- Expression<D>, Operation<D>, Serializable
public class EnumOperation<D extends Enum<D>>
- extends EnumExpression<D>
- implements Operation<D>
EnumOperation represents enum operations
- Author:
- tiwe
- See Also:
- Serialized Form
Methods inherited from class com.mysema.query.types.expr.ComparableExpression |
between, between, goe, goe, gt, gt, loe, loe, lt, lt, notBetween, notBetween |
Methods inherited from class com.mysema.query.types.expr.SimpleExpression |
count, countDistinct, eq, eq, in, in, in, isNotNull, isNull, ne, ne, notIn, notIn, notIn, when, when |
create
public static <D extends Enum<D>> EnumExpression<D> create(Class<? extends D> type,
Operator<? super D> op,
Expression<?>... args)
- Factory method
- Type Parameters:
D
- - Parameters:
type
- op
- args
-
- Returns:
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<D extends Enum<D>>
- Returns:
getArg
public Expression<?> getArg(int index)
- Description copied from interface:
Operation
- Get the argument with the given index
- Specified by:
getArg
in interface Operation<D extends Enum<D>>
- Returns:
getArgs
public List<Expression<?>> getArgs()
- Description copied from interface:
Operation
- Get the arguments of this operation
- Specified by:
getArgs
in interface Operation<D extends Enum<D>>
- Returns:
getOperator
public Operator<? super D> getOperator()
- Description copied from interface:
Operation
- Get the operator symbol for this operation
- Specified by:
getOperator
in interface Operation<D extends Enum<D>>
- Returns:
equals
public boolean equals(Object o)
- Specified by:
equals
in class SimpleExpression<D extends Enum<D>>
hashCode
public int hashCode()
- Overrides:
hashCode
in class SimpleExpression<D extends Enum<D>>
Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.