public class SimpleCaseExpression<C,R> extends ExpressionImpl<R> implements javax.persistence.criteria.CriteriaBuilder.SimpleCase<C,R>, java.io.Serializable
CASE [expression]
WHEN [firstCondition] THEN [firstResult]
WHEN [secondCondition] THEN [secondResult]
ELSE [defaultResult]
END
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleCaseExpression.WhenClause |
ParameterContainer.Helper| Constructor and Description |
|---|
SimpleCaseExpression(CriteriaBuilderImpl criteriaBuilder,
java.lang.Class<R> javaType,
javax.persistence.criteria.Expression<? extends C> expression) |
| Modifier and Type | Method and Description |
|---|---|
javax.persistence.criteria.Expression<C> |
getExpression() |
javax.persistence.criteria.Expression<? extends R> |
getOtherwiseResult() |
java.util.List<SimpleCaseExpression.WhenClause> |
getWhenClauses() |
javax.persistence.criteria.Expression<R> |
otherwise(javax.persistence.criteria.Expression<? extends R> result) |
javax.persistence.criteria.Expression<R> |
otherwise(R result) |
void |
registerParameters(ParameterRegistry registry)
Register any parameters contained within this query component with the given registry.
|
java.lang.String |
render(RenderingContext renderingContext) |
java.lang.String |
renderProjection(RenderingContext renderingContext) |
javax.persistence.criteria.CriteriaBuilder.SimpleCase<C,R> |
when(C condition,
javax.persistence.criteria.Expression<? extends R> result) |
javax.persistence.criteria.CriteriaBuilder.SimpleCase<C,R> |
when(C condition,
R result) |
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNullalias, getCompoundSelectionItems, getValueHandlers, isCompoundSelectionforceConversion, getAlias, getJavaType, getValueHandler, resetJavaType, setAliascriteriaBuilderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitas, in, in, in, in, isNotNull, isNullalias, getCompoundSelectionItems, isCompoundSelectiongetValueHandlersgetValueHandlerpublic SimpleCaseExpression(CriteriaBuilderImpl criteriaBuilder, java.lang.Class<R> javaType, javax.persistence.criteria.Expression<? extends C> expression)
public javax.persistence.criteria.Expression<C> getExpression()
public javax.persistence.criteria.CriteriaBuilder.SimpleCase<C,R> when(C condition, javax.persistence.criteria.Expression<? extends R> result)
public javax.persistence.criteria.Expression<R> otherwise(javax.persistence.criteria.Expression<? extends R> result)
public javax.persistence.criteria.Expression<? extends R> getOtherwiseResult()
public java.util.List<SimpleCaseExpression.WhenClause> getWhenClauses()
public void registerParameters(ParameterRegistry registry)
ParameterContainerregisterParameters in interface ParameterContainerregistry - The parameter registry with which to register.public java.lang.String render(RenderingContext renderingContext)
render in interface Renderablepublic java.lang.String renderProjection(RenderingContext renderingContext)
renderProjection in interface RenderableCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.