Package org.datanucleus.api.jpa.criteria
Class SimpleCaseExpressionImpl<C,R>
- java.lang.Object
-
- org.datanucleus.api.jpa.criteria.ExpressionImpl<R>
-
- org.datanucleus.api.jpa.criteria.SimpleCaseExpressionImpl<C,R>
-
- Type Parameters:
C
- Condition typeR
- Action type
- All Implemented Interfaces:
Serializable
,javax.persistence.criteria.CriteriaBuilder.SimpleCase<C,R>
,javax.persistence.criteria.Expression<R>
,javax.persistence.criteria.Selection<R>
,javax.persistence.TupleElement<R>
public class SimpleCaseExpressionImpl<C,R> extends ExpressionImpl<R> implements javax.persistence.criteria.CriteriaBuilder.SimpleCase<C,R>
Implementation of JPA SimpleCase expression.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.datanucleus.api.jpa.criteria.ExpressionImpl
cb
-
-
Constructor Summary
Constructors Constructor Description SimpleCaseExpressionImpl(CriteriaBuilderImpl cb, ExpressionImpl expr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.persistence.criteria.Expression<C>
getExpression()
javax.persistence.criteria.Expression<R>
otherwise(javax.persistence.criteria.Expression<? extends R> result)
javax.persistence.criteria.Expression<R>
otherwise(R result)
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)
-
Methods inherited from class org.datanucleus.api.jpa.criteria.ExpressionImpl
alias, as, getAlias, getCompoundSelectionItems, getJavaType, getQueryExpression, in, in, in, in, isCompoundSelection, isNotNull, isNull, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNull
-
-
-
-
Constructor Detail
-
SimpleCaseExpressionImpl
public SimpleCaseExpressionImpl(CriteriaBuilderImpl cb, ExpressionImpl expr)
-
-
Method Detail
-
getExpression
public javax.persistence.criteria.Expression<C> getExpression()
-
when
public javax.persistence.criteria.CriteriaBuilder.SimpleCase<C,R> when(C condition, R result)
-
when
public javax.persistence.criteria.CriteriaBuilder.SimpleCase<C,R> when(C condition, javax.persistence.criteria.Expression<? extends R> result)
-
-