Class CriteriaBuilderImpl.SimpleCaseImpl<C,R>
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.querydef.SelectionImpl<X>
-
- org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl<X>
-
- org.eclipse.persistence.internal.jpa.querydef.FunctionExpressionImpl<R>
-
- org.eclipse.persistence.internal.jpa.querydef.CriteriaBuilderImpl.SimpleCaseImpl<C,R>
-
- Type Parameters:
C-R-
- All Implemented Interfaces:
java.io.Serializable,javax.persistence.criteria.CriteriaBuilder.SimpleCase<C,R>,javax.persistence.criteria.Expression<R>,javax.persistence.criteria.Selection<R>,javax.persistence.TupleElement<R>,InternalExpression,InternalSelection
- Enclosing class:
- CriteriaBuilderImpl
public class CriteriaBuilderImpl.SimpleCaseImpl<C,R> extends FunctionExpressionImpl<R> implements javax.persistence.criteria.CriteriaBuilder.SimpleCase<C,R>
Implementation of SimpleCase interface from CriteriaBuilder- Author:
- tware
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.FunctionExpressionImpl
expressions, operator
-
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl
isLiteral, literal, metamodel
-
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, currentNode, javaType
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSimpleCaseImpl(javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<R> resultClass, org.eclipse.persistence.internal.expressions.FunctionExpression expressionNode, java.util.List<javax.persistence.criteria.Expression<?>> compoundExpressions, java.lang.String operator, javax.persistence.criteria.Expression<C> expression)protectedSimpleCaseImpl(javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<R> resultClass, org.eclipse.persistence.internal.expressions.FunctionExpression expressionNode, java.util.List<javax.persistence.criteria.Expression<?>> compoundExpressions, javax.persistence.criteria.Expression<C> expression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfindRootAndParameters(CommonAbstractCriteriaImpl query)javax.persistence.criteria.Expression<C>getExpression()Returns the expression to be tested against the conditions.javax.persistence.criteria.Expression<R>otherwise(javax.persistence.criteria.Expression<? extends R> result)Add an "else" clause to the case expression.javax.persistence.criteria.Expression<R>otherwise(R result)Add an "else" clause to the case expression.javax.persistence.criteria.CriteriaBuilder.SimpleCase<C,R>when(C condition, javax.persistence.criteria.Expression<? extends R> result)Add a when/then clause to the case expression.javax.persistence.criteria.CriteriaBuilder.SimpleCase<C,R>when(C condition, R result)Add a when/then clause to the case expression.-
Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.FunctionExpressionImpl
getChildExpressions, getOperation, isCompoundExpression, isExpression
-
Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl
as, buildExpressionForAs, in, in, in, in, isJunction, isLiteral, isNotNull, isNull, isParameter, isPredicate, isSubquery
-
Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, getAlias, getCompoundSelectionItems, getCurrentNode, getJavaType, isCompoundSelection, isConstructor, isFrom, isRoot, setJavaType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNull
-
-
-
-
Constructor Detail
-
SimpleCaseImpl
protected SimpleCaseImpl(javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<R> resultClass, org.eclipse.persistence.internal.expressions.FunctionExpression expressionNode, java.util.List<javax.persistence.criteria.Expression<?>> compoundExpressions, javax.persistence.criteria.Expression<C> expression)
-
SimpleCaseImpl
protected SimpleCaseImpl(javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<R> resultClass, org.eclipse.persistence.internal.expressions.FunctionExpression expressionNode, java.util.List<javax.persistence.criteria.Expression<?>> compoundExpressions, java.lang.String operator, javax.persistence.criteria.Expression<C> expression)
-
-
Method Detail
-
getExpression
public javax.persistence.criteria.Expression<C> getExpression()
Returns the expression to be tested against the conditions.
-
when
public javax.persistence.criteria.CriteriaBuilder.SimpleCase<C,R> when(C condition, R result)
Add a when/then clause to the case expression.
-
when
public javax.persistence.criteria.CriteriaBuilder.SimpleCase<C,R> when(C condition, javax.persistence.criteria.Expression<? extends R> result)
Add a when/then clause to the case expression.
-
otherwise
public javax.persistence.criteria.Expression<R> otherwise(R result)
Add an "else" clause to the case expression.
-
otherwise
public javax.persistence.criteria.Expression<R> otherwise(javax.persistence.criteria.Expression<? extends R> result)
Add an "else" clause to the case expression.
-
findRootAndParameters
public void findRootAndParameters(CommonAbstractCriteriaImpl query)
- Specified by:
findRootAndParametersin interfaceInternalSelection- Overrides:
findRootAndParametersin classFunctionExpressionImpl<R>
-
-