public class MemberOfPredicate<E,C extends java.util.Collection<E>> extends AbstractSimplePredicate implements java.io.Serializable
javax.persistence.criteria.Predicate.BooleanOperatorParameterContainer.Helper| Constructor and Description |
|---|
MemberOfPredicate(CriteriaBuilderImpl criteriaBuilder,
E element,
PluralAttributePath<C> collectionPath) |
MemberOfPredicate(CriteriaBuilderImpl criteriaBuilder,
javax.persistence.criteria.Expression<E> elementExpression,
PluralAttributePath<C> collectionPath) |
| Modifier and Type | Method and Description |
|---|---|
PluralAttributePath<C> |
getCollectionPath() |
javax.persistence.criteria.Expression<E> |
getElementExpression() |
void |
registerParameters(ParameterRegistry registry)
Register any parameters contained within this query component with the given registry.
|
java.lang.String |
render(boolean isNegated,
RenderingContext renderingContext)
Form of
Renderable.render(org.hibernate.query.criteria.internal.compile.RenderingContext) used when the predicate is wrapped in a negated wrapper. |
getExpressions, getOperator, isJunction, rendergetCompoundSelectionItems, isCompoundSelection, isNegated, notas, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNullalias, getValueHandlersforceConversion, getAlias, getJavaType, getValueHandler, resetJavaType, setAliascriteriaBuilderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcriteriaBuilderas, in, in, in, in, isNotNull, isNullrenderGroupBy, renderProjectiongetValueHandlersgetValueHandlerpublic MemberOfPredicate(CriteriaBuilderImpl criteriaBuilder, javax.persistence.criteria.Expression<E> elementExpression, PluralAttributePath<C> collectionPath)
public MemberOfPredicate(CriteriaBuilderImpl criteriaBuilder, E element, PluralAttributePath<C> collectionPath)
public PluralAttributePath<C> getCollectionPath()
public javax.persistence.criteria.Expression<E> getElementExpression()
public void registerParameters(ParameterRegistry registry)
ParameterContainerregisterParameters in interface ParameterContainerregistry - The parameter registry with which to register.public java.lang.String render(boolean isNegated,
RenderingContext renderingContext)
PredicateImplementorRenderable.render(org.hibernate.query.criteria.internal.compile.RenderingContext) used when the predicate is wrapped in a negated wrapper. Allows passing
down the negation flag.
Note that this form is no-op in compound (junction) predicates. The reason being that compound predicates
are more complex and the negation is applied during its creation.render in interface PredicateImplementorisNegated - Should the predicate be negated.renderingContext - The context for renderingCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.