public final class MoreRestrictions
extends java.lang.Object
LikeExpression.| Modifier and Type | Method and Description |
|---|---|
static org.hibernate.criterion.Criterion |
alwaysFalse()
Creates a criterion that is always
false. |
static org.hibernate.criterion.Criterion |
alwaysTrue()
Creates a criterion that is always
true. |
static org.hibernate.criterion.LikeExpression |
ilike(java.lang.String propertyName,
java.lang.String value,
java.lang.Character escapeChar)
Create a new case-insensitive like expression.
|
static org.hibernate.criterion.LikeExpression |
ilike(java.lang.String propertyName,
java.lang.String value,
org.hibernate.criterion.MatchMode matchMode,
java.lang.Character escapeChar)
Create a new case-insensitive like expression.
|
static org.hibernate.criterion.LikeExpression |
ilike(java.lang.String propertyName,
java.lang.String value,
org.hibernate.criterion.MatchMode matchMode,
java.lang.String escapeString)
Create a new case-insensitive like expression.
|
static org.hibernate.criterion.LikeExpression |
ilike(java.lang.String propertyName,
java.lang.String value,
java.lang.String escapeString)
Create a new case-insensitive like expression.
|
static org.hibernate.criterion.LikeExpression |
like(java.lang.String propertyName,
java.lang.String value)
Create a new case-sensitive like expression.
|
static org.hibernate.criterion.LikeExpression |
like(java.lang.String propertyName,
java.lang.String value,
java.lang.Character escapeChar,
boolean ignoreCase)
Create a new like expression.
|
static org.hibernate.criterion.LikeExpression |
like(java.lang.String propertyName,
java.lang.String value,
org.hibernate.criterion.MatchMode matchMode)
Create a new case-sensitive like expression.
|
static org.hibernate.criterion.LikeExpression |
like(java.lang.String propertyName,
java.lang.String value,
org.hibernate.criterion.MatchMode matchMode,
java.lang.Character escapeChar,
boolean ignoreCase)
Create a new like expression.
|
static org.hibernate.criterion.LikeExpression |
like(java.lang.String propertyName,
java.lang.String value,
org.hibernate.criterion.MatchMode matchMode,
java.lang.String escapeString,
boolean ignoreCase)
Create a new like expression.
|
static org.hibernate.criterion.LikeExpression |
like(java.lang.String propertyName,
java.lang.String value,
java.lang.String escapeString,
boolean ignoreCase)
Create a new like expression.
|
static java.util.stream.Collector<org.hibernate.criterion.Criterion,?,org.hibernate.criterion.Criterion> |
toConjunction()
Create a
Collector that collects criterions to a conjunction. |
static java.util.stream.Collector<org.hibernate.criterion.Criterion,?,org.hibernate.criterion.Criterion> |
toDisjunction()
Create a
Collector that collects criterions to a disjunction. |
public static org.hibernate.criterion.LikeExpression ilike(java.lang.String propertyName,
java.lang.String value,
java.lang.Character escapeChar)
propertyName - the property namevalue - the value to compare againstescapeChar - the escape char to usepublic static org.hibernate.criterion.LikeExpression ilike(java.lang.String propertyName,
java.lang.String value,
java.lang.String escapeString)
propertyName - the property namevalue - the value to compare againstescapeString - the escape string to usepublic static org.hibernate.criterion.LikeExpression ilike(java.lang.String propertyName,
java.lang.String value,
org.hibernate.criterion.MatchMode matchMode,
java.lang.Character escapeChar)
propertyName - the property namevalue - the value to compare againstmatchMode - the match modeescapeChar - the escape char to usepublic static org.hibernate.criterion.LikeExpression ilike(java.lang.String propertyName,
java.lang.String value,
org.hibernate.criterion.MatchMode matchMode,
java.lang.String escapeString)
propertyName - the property namevalue - the value to compare againstmatchMode - the match modeescapeString - the escape string to usepublic static org.hibernate.criterion.LikeExpression like(java.lang.String propertyName,
java.lang.String value,
java.lang.Character escapeChar,
boolean ignoreCase)
propertyName - the property namevalue - the value to compare againstescapeChar - the escape char to useignoreCase - if the match should be case-insensitivepublic static org.hibernate.criterion.LikeExpression like(java.lang.String propertyName,
java.lang.String value,
java.lang.String escapeString,
boolean ignoreCase)
propertyName - the property namevalue - the value to compare againstescapeString - the escape string to useignoreCase - if the match should be case-insensitivepublic static org.hibernate.criterion.LikeExpression like(java.lang.String propertyName,
java.lang.String value)
propertyName - the property namevalue - the value to compare againstpublic static org.hibernate.criterion.LikeExpression like(java.lang.String propertyName,
java.lang.String value,
org.hibernate.criterion.MatchMode matchMode)
propertyName - the property namevalue - the value to compare againstmatchMode - the match modepublic static org.hibernate.criterion.LikeExpression like(java.lang.String propertyName,
java.lang.String value,
org.hibernate.criterion.MatchMode matchMode,
java.lang.String escapeString,
boolean ignoreCase)
propertyName - the property namevalue - the value to compare againstmatchMode - the match modeescapeString - the escape string to useignoreCase - if the match should be case-insensitivepublic static org.hibernate.criterion.LikeExpression like(java.lang.String propertyName,
java.lang.String value,
org.hibernate.criterion.MatchMode matchMode,
java.lang.Character escapeChar,
boolean ignoreCase)
propertyName - the property namevalue - the value to compare againstmatchMode - the match modeescapeChar - the escape char to useignoreCase - if the match should be case-insensitivepublic static org.hibernate.criterion.Criterion alwaysFalse()
false.public static org.hibernate.criterion.Criterion alwaysTrue()
true.public static java.util.stream.Collector<org.hibernate.criterion.Criterion,?,org.hibernate.criterion.Criterion> toDisjunction()
Collector that collects criterions to a disjunction.public static java.util.stream.Collector<org.hibernate.criterion.Criterion,?,org.hibernate.criterion.Criterion> toConjunction()
Collector that collects criterions to a conjunction.Copyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.