com.mysema.query.types.expr
Class CaseBuilder
java.lang.Object
com.mysema.query.types.expr.CaseBuilder
public final class CaseBuilder
- extends Object
CaseBuilder enables the construction of typesafe case-when-then-else
constructs :
e.g.
Expression<String> cases = new CaseBuilder()
.when(c.annualSpending.gt(10000)).then("Premier")
.when(c.annualSpending.gt(5000)).then("Gold")
.when(c.annualSpending.gt(2000)).then("Silver")
.otherwise("Bronze");
- Author:
- tiwe
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CaseBuilder
public CaseBuilder()
when
public CaseBuilder.Initial when(BooleanExpression b)
Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.