Class Criteria.PropertyOperand

  • Enclosing interface:
    Criteria

    public static class Criteria.PropertyOperand
    extends Object
    Property operand.
    • Constructor Detail

      • PropertyOperand

        public PropertyOperand​(String entityName,
                               String propertyName)
    • Method Detail

      • getEntityName

        public String getEntityName()
      • getPropertyName

        public String getPropertyName()
      • 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​(Object value)
        Create a LIKE condition on this property.
      • like

        public Criteria like​(String entityName,
                             String propertyName)
        Equivalent to like(Criteria.property(entityName, propertyName)).
      • notLike

        public Criteria notLike​(Object value)
        Create a NOT LIKE condition on this property.
      • 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.
      • 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.