Class Criteria.PropertyOperand
- java.lang.Object
-
- net.lecousin.reactive.data.relational.query.criteria.Criteria.PropertyOperand
-
-
Constructor Summary
Constructors Constructor Description PropertyOperand(String entityName, String propertyName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CriteriaarrayContains(Object value)Create a condition on an array property that returns true if the array property contains the specified value.Criteria.PropertyOperanddateToDayOfMonth()Extract the day of month from this property that must have a compatible type for this operation.Criteria.PropertyOperanddateToDayOfYear()Extract the day of year from this property that must have a compatible type for this operation.Criteria.PropertyOperanddateToIsoDayOfWeek()Extract the ISO day of week from this property that must have a compatible type for this operation.Criteria.PropertyOperanddateToIsoWeek()Extract the ISO week number from this property that must have a compatible type for this operation.Criteria.PropertyOperanddateToMonth()Extract the month from this property that must have a compatible type for this operation.Criteria.PropertyOperanddateToYear()Extract the year from this property that must have a compatible type for this operation.StringgetEntityName()List<RelationalDatabaseSchemaDialect.SqlFunction>getFunctionsToApply()StringgetPropertyName()CriteriagreaterOrEqualTo(Object value)Create a '>=' condition on this property with the given value.CriteriagreaterOrEqualTo(String entityName, String propertyName)Equivalent to greaterOrEqualTo(Criteria.property(entityName, propertyName)).CriteriagreaterThan(Object value)Create a '>' condition on this property with the given value.CriteriagreaterThan(String entityName, String propertyName)Equivalent to greaterThan(Criteria.property(entityName, propertyName)).Criteriain(Collection<?> values)Create a IN condition to compare this property with the set of given values.Criteriais(Object value)Create a 'is equal' condition on this property with the given value.Criteriais(String entityName, String propertyName)Equivalent to is(Criteria.property(entityName, propertyName)).CriteriaisNot(Object value)Create a 'is not equal' condition on this property with the given value.CriteriaisNot(String entityName, String propertyName)Equivalent to isNot(Criteria.property(entityName, propertyName)).CriteriaisNotNull()Create a IS NOT NULL condition on this property.CriteriaisNull()Create a IS NULL condition on this property.CriterialessOrEqualTo(Object value)Create a '<=' condition on this property with the given value.CriterialessOrEqualTo(String entityName, String propertyName)Equivalent to lessOrEqualTo(Criteria.property(entityName, propertyName)).CriterialessThan(Object value)Create a '<' condition on this property with the given value.CriterialessThan(String entityName, String propertyName)Equivalent to lessThan(Criteria.property(entityName, propertyName)).Criterialike(Object value)Create a LIKE condition on this property.Criterialike(String entityName, String propertyName)Equivalent to like(Criteria.property(entityName, propertyName)).CriterianotIn(Collection<?> values)Create a NOT IN condition to compare this property with the set of given values.CriterianotLike(Object value)Create a NOT LIKE condition on this property.CriterianotLike(String entityName, String propertyName)Equivalent to notLike(Criteria.property(entityName, propertyName)).Criteria.PropertyOperandtimeToHour()Extract the hour from this property that must have a compatible type for this operation.Criteria.PropertyOperandtimeToMinute()Extract the minute from this property that must have a compatible type for this operation.Criteria.PropertyOperandtimeToSecond()Extract the second from this property that must have a compatible type for this operation.Criteria.PropertyOperandtoLowerCase()Apply the LOWER function to this property to use in a comparison operation.StringtoString()Criteria.PropertyOperandtoUpperCase()Apply the UPPER function to this property to use in a comparison operation.
-
-
-
Method Detail
-
getEntityName
public String getEntityName()
-
getPropertyName
public String getPropertyName()
-
getFunctionsToApply
public List<RelationalDatabaseSchemaDialect.SqlFunction> getFunctionsToApply()
-
is
public Criteria is(Object value)
Create a 'is equal' condition on this property with the given value. The value may be an entity in case this property is a foreign key, another property operand for properties comparison, or a literal value such as a number, string, date...
-
is
public Criteria is(String entityName, String propertyName)
Equivalent to is(Criteria.property(entityName, propertyName)).
-
isNot
public Criteria isNot(Object value)
Create a 'is not equal' condition on this property with the given value. The value may be an entity in case this property is a foreign key, another property operand for properties comparison, or a literal value such as a number, string, date...
-
isNot
public Criteria isNot(String entityName, String propertyName)
Equivalent to isNot(Criteria.property(entityName, propertyName)).
-
greaterThan
public Criteria greaterThan(Object value)
Create a '>' condition on this property with the given value. The property must be comparable with the given value, which may be a property operand for a comparison between two properties.
-
greaterThan
public Criteria greaterThan(String entityName, String propertyName)
Equivalent to greaterThan(Criteria.property(entityName, propertyName)).
-
greaterOrEqualTo
public Criteria greaterOrEqualTo(Object value)
Create a '>=' condition on this property with the given value. The property must be comparable with the given value, which may be a property operand for a comparison between two properties.
-
greaterOrEqualTo
public Criteria greaterOrEqualTo(String entityName, String propertyName)
Equivalent to greaterOrEqualTo(Criteria.property(entityName, propertyName)).
-
lessThan
public Criteria lessThan(Object value)
Create a '<' condition on this property with the given value. The property must be comparable with the given value, which may be a property operand for a comparison between two properties.
-
lessThan
public Criteria lessThan(String entityName, String propertyName)
Equivalent to lessThan(Criteria.property(entityName, propertyName)).
-
lessOrEqualTo
public Criteria lessOrEqualTo(Object value)
Create a '<=' condition on this property with the given value. The property must be comparable with the given value, which may be a property operand for a comparison between two properties.
-
lessOrEqualTo
public Criteria lessOrEqualTo(String entityName, String propertyName)
Equivalent to lessOrEqualTo(Criteria.property(entityName, propertyName)).
-
isNull
public Criteria isNull()
Create a IS NULL condition on this property.
-
isNotNull
public Criteria isNotNull()
Create a IS NOT NULL condition on this property.
-
like
public Criteria like(String entityName, String propertyName)
Equivalent to like(Criteria.property(entityName, propertyName)).
-
notLike
public Criteria notLike(String entityName, String propertyName)
Equivalent to notLike(Criteria.property(entityName, propertyName)).
-
in
public Criteria in(Collection<?> values)
Create a IN condition to compare this property with the set of given values.
-
notIn
public Criteria notIn(Collection<?> values)
Create a NOT IN condition to compare this property with the set of given values.
-
arrayContains
public Criteria arrayContains(Object value)
Create a condition on an array property that returns true if the array property contains the specified value.
-
toUpperCase
public Criteria.PropertyOperand toUpperCase()
Apply the UPPER function to this property to use in a comparison operation.
-
toLowerCase
public Criteria.PropertyOperand toLowerCase()
Apply the LOWER function to this property to use in a comparison operation.
-
dateToIsoDayOfWeek
public Criteria.PropertyOperand dateToIsoDayOfWeek()
Extract the ISO day of week from this property that must have a compatible type for this operation.
-
dateToDayOfMonth
public Criteria.PropertyOperand dateToDayOfMonth()
Extract the day of month from this property that must have a compatible type for this operation.
-
dateToDayOfYear
public Criteria.PropertyOperand dateToDayOfYear()
Extract the day of year from this property that must have a compatible type for this operation.
-
dateToMonth
public Criteria.PropertyOperand dateToMonth()
Extract the month from this property that must have a compatible type for this operation.
-
dateToYear
public Criteria.PropertyOperand dateToYear()
Extract the year from this property that must have a compatible type for this operation.
-
dateToIsoWeek
public Criteria.PropertyOperand dateToIsoWeek()
Extract the ISO week number from this property that must have a compatible type for this operation.
-
timeToHour
public Criteria.PropertyOperand timeToHour()
Extract the hour from this property that must have a compatible type for this operation.
-
timeToMinute
public Criteria.PropertyOperand timeToMinute()
Extract the minute from this property that must have a compatible type for this operation.
-
timeToSecond
public Criteria.PropertyOperand timeToSecond()
Extract the second from this property that must have a compatible type for this operation.
-
-