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");
Modifier and Type | Class and Description |
---|---|
static class |
CaseBuilder.Cases<A,Q extends Expression<A>>
Cascading typesafe Case builder
|
static class |
CaseBuilder.CaseWhen<A,Q extends Expression<A>>
Intermediate When state
|
static class |
CaseBuilder.Initial
Initial state of Case construction
|
Constructor and Description |
---|
CaseBuilder() |
public CaseBuilder.Initial when(Predicate b)
Copyright © 2007–2016 Querydsl. All rights reserved.