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;
Expression<Integer> cases = c.annualSpending
.when(1000l).then(1)
.when(2000l).then(2)
.when(5000l).then(3)
.otherwise(4);
Modifier and Type | Class and Description |
---|---|
class |
CaseForEqBuilder.Cases<T,Q extends Expression<T>>
Intermediate step
|
class |
CaseForEqBuilder.CaseWhen<T,Q extends Expression<T>>
Intermediate step
|
Constructor and Description |
---|
CaseForEqBuilder(Expression<D> base,
Expression<? extends D> other) |
public CaseForEqBuilder(Expression<D> base, Expression<? extends D> other)
public <T> CaseForEqBuilder.Cases<T,Expression<T>> then(Expression<T> expr)
public <T> CaseForEqBuilder.Cases<T,Expression<T>> then(T then)
public <T> CaseForEqBuilder.Cases<T,Expression<T>> thenNull()
public CaseForEqBuilder.Cases<Boolean,BooleanExpression> then(Boolean then)
public CaseForEqBuilder.Cases<Boolean,BooleanExpression> then(BooleanExpression then)
public <T extends Comparable> CaseForEqBuilder.Cases<T,ComparableExpression<T>> then(T then)
public <T extends Comparable> CaseForEqBuilder.Cases<T,ComparableExpression<T>> then(ComparableExpression<T> then)
public CaseForEqBuilder.Cases<Date,DateExpression<Date>> then(Date then)
public <T extends Comparable> CaseForEqBuilder.Cases<T,DateExpression<T>> then(DateExpression<T> then)
public CaseForEqBuilder.Cases<Date,DateTimeExpression<Date>> then(Date then)
public CaseForEqBuilder.Cases<Timestamp,DateTimeExpression<Timestamp>> then(Timestamp then)
public <T extends Comparable> CaseForEqBuilder.Cases<T,DateTimeExpression<T>> then(DateTimeExpression<T> then)
public <T extends Enum<T>> CaseForEqBuilder.Cases<T,EnumExpression<T>> then(T then)
public <T extends Enum<T>> CaseForEqBuilder.Cases<T,EnumExpression<T>> then(EnumExpression<T> then)
public <T extends Number & Comparable<?>> CaseForEqBuilder.Cases<T,NumberExpression<T>> then(T then)
public <T extends Number & Comparable<?>> CaseForEqBuilder.Cases<T,NumberExpression<T>> then(NumberExpression<T> then)
public <T extends Number & Comparable<?>> CaseForEqBuilder.Cases<T,NumberExpression<T>> thenNumber(Expression<T> then)
public CaseForEqBuilder.Cases<String,StringExpression> then(String then)
public CaseForEqBuilder.Cases<String,StringExpression> then(StringExpression then)
public CaseForEqBuilder.Cases<Time,TimeExpression<Time>> then(Time then)
public <T extends Comparable> CaseForEqBuilder.Cases<T,TimeExpression<T>> then(TimeExpression<T> then)
Copyright © 2007–2016 Querydsl. All rights reserved.