public class LikePredicate extends AbstractSimplePredicate implements java.io.Serializable
javax.persistence.criteria.Predicate.BooleanOperator
ParameterContainer.Helper
Constructor and Description |
---|
LikePredicate(CriteriaBuilderImpl criteriaBuilder,
javax.persistence.criteria.Expression<java.lang.String> matchExpression,
javax.persistence.criteria.Expression<java.lang.String> pattern) |
LikePredicate(CriteriaBuilderImpl criteriaBuilder,
javax.persistence.criteria.Expression<java.lang.String> matchExpression,
javax.persistence.criteria.Expression<java.lang.String> pattern,
char escapeCharacter) |
LikePredicate(CriteriaBuilderImpl criteriaBuilder,
javax.persistence.criteria.Expression<java.lang.String> matchExpression,
javax.persistence.criteria.Expression<java.lang.String> pattern,
javax.persistence.criteria.Expression<java.lang.Character> escapeCharacter) |
LikePredicate(CriteriaBuilderImpl criteriaBuilder,
javax.persistence.criteria.Expression<java.lang.String> matchExpression,
java.lang.String pattern) |
LikePredicate(CriteriaBuilderImpl criteriaBuilder,
javax.persistence.criteria.Expression<java.lang.String> matchExpression,
java.lang.String pattern,
char escapeCharacter) |
LikePredicate(CriteriaBuilderImpl criteriaBuilder,
javax.persistence.criteria.Expression<java.lang.String> matchExpression,
java.lang.String pattern,
javax.persistence.criteria.Expression<java.lang.Character> escapeCharacter) |
Modifier and Type | Method and Description |
---|---|
javax.persistence.criteria.Expression<java.lang.Character> |
getEscapeCharacter() |
javax.persistence.criteria.Expression<java.lang.String> |
getMatchExpression() |
javax.persistence.criteria.Expression<java.lang.String> |
getPattern() |
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.jpa.criteria.compile.RenderingContext) used when the predicate is wrapped in a negated wrapper. |
getExpressions, getOperator, isJunction, render, renderProjection
getCompoundSelectionItems, isCompoundSelection, isNegated, not
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNull
alias, getValueHandlers
forceConversion, getAlias, getJavaType, getValueHandler, resetJavaType, setAlias
criteriaBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
criteriaBuilder
as, in, in, in, in, isNotNull, isNull
getValueHandlers
getValueHandler
public LikePredicate(CriteriaBuilderImpl criteriaBuilder, javax.persistence.criteria.Expression<java.lang.String> matchExpression, javax.persistence.criteria.Expression<java.lang.String> pattern)
public LikePredicate(CriteriaBuilderImpl criteriaBuilder, javax.persistence.criteria.Expression<java.lang.String> matchExpression, java.lang.String pattern)
public LikePredicate(CriteriaBuilderImpl criteriaBuilder, javax.persistence.criteria.Expression<java.lang.String> matchExpression, javax.persistence.criteria.Expression<java.lang.String> pattern, javax.persistence.criteria.Expression<java.lang.Character> escapeCharacter)
public LikePredicate(CriteriaBuilderImpl criteriaBuilder, javax.persistence.criteria.Expression<java.lang.String> matchExpression, javax.persistence.criteria.Expression<java.lang.String> pattern, char escapeCharacter)
public LikePredicate(CriteriaBuilderImpl criteriaBuilder, javax.persistence.criteria.Expression<java.lang.String> matchExpression, java.lang.String pattern, char escapeCharacter)
public LikePredicate(CriteriaBuilderImpl criteriaBuilder, javax.persistence.criteria.Expression<java.lang.String> matchExpression, java.lang.String pattern, javax.persistence.criteria.Expression<java.lang.Character> escapeCharacter)
public javax.persistence.criteria.Expression<java.lang.Character> getEscapeCharacter()
public javax.persistence.criteria.Expression<java.lang.String> getMatchExpression()
public javax.persistence.criteria.Expression<java.lang.String> getPattern()
public void registerParameters(ParameterRegistry registry)
ParameterContainer
registerParameters
in interface ParameterContainer
registry
- The parameter registry with which to register.public java.lang.String render(boolean isNegated, RenderingContext renderingContext)
PredicateImplementor
Renderable.render(org.hibernate.jpa.criteria.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 PredicateImplementor
isNegated
- Should the predicate be negated.renderingContext
- The context for renderingCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.