com.mysema.query.types.expr
Class CaseForEqBuilder<D>
java.lang.Object
com.mysema.query.types.expr.CaseForEqBuilder<D>
- Type Parameters:
D
-
public final class CaseForEqBuilder<D>
- extends Object
CaseForEqBuilder enables the construction of typesafe case-when-then-else constructs
for equals-operations :
e.g.
QCustomer c = QCustomer.customer;
Expr cases = c.annualSpending
.when(1000l).then(1)
.when(2000l).then(2)
.when(5000l).then(3)
.otherwise(4);
- Author:
- tiwe
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CaseForEqBuilder
public CaseForEqBuilder(Expr<D> base,
Expr<? extends D> other)
then
public <T> CaseForEqBuilder.Cases<T,Expr<T>> then(Expr<T> then)
then
public <T> CaseForEqBuilder.Cases<T,Expr<T>> then(T then)
then
public <T extends Number & Comparable<?>> CaseForEqBuilder.Cases<T,ENumber<T>> then(T then)
then
public <T extends Number & Comparable<?>> CaseForEqBuilder.Cases<T,ENumber<T>> then(ENumber<T> then)
then
public CaseForEqBuilder.Cases<String,EString> then(EString then)
then
public CaseForEqBuilder.Cases<String,EString> then(String then)
Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.