Class ExtBoolExpr

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class ExtBoolExpr
    extends BoolExpr
    Boolean expression with extra operators intended for SQ/HQL querys.
    Author:
    klausj
    • Field Detail

      • CONTAINS

        public static java.lang.String CONTAINS
      • EQUALS

        public static java.lang.String EQUALS
      • EQUALS_NOT

        public static java.lang.String EQUALS_NOT
      • MEMBER

        public static java.lang.String MEMBER
      • NOT_MEMBER

        public static java.lang.String NOT_MEMBER
      • BOUND

        public static java.lang.String BOUND
      • NOT_BOUND

        public static java.lang.String NOT_BOUND
    • Constructor Detail

      • ExtBoolExpr

        public ExtBoolExpr()
      • ExtBoolExpr

        public ExtBoolExpr​(java.lang.String col,
                           java.lang.Object val)
    • Method Detail

      • addEmptyExpression

        public ExtBoolExpr addEmptyExpression()
                                       throws java.lang.CloneNotSupportedException
        Adds an empty expression. This is intended for HTML forms, to allow the user to extend the condition.
        Throws:
        java.lang.CloneNotSupportedException
      • getNumberExprOperators

        public static java.lang.String[] getNumberExprOperators()
      • getExprOperators

        public static java.lang.String[] getExprOperators()
      • getExprOperatorsWithoutRelationshipOperators

        public static java.lang.String[] getExprOperatorsWithoutRelationshipOperators()
      • unaryOperator

        public boolean unaryOperator()
      • isOperatorSupportingType

        public static boolean isOperatorSupportingType​(java.lang.Object operator,
                                                       java.lang.Class<?> type)
      • isObjectRelationShip

        public boolean isObjectRelationShip()
        Returns true if this a object relationship condition. JPQL example: SELECT o FROM Organisation o WHERE :operand1 MEMBER OF o.persons
        Returns:
        true if expression is a relationship between objects
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class BoolExpr
        Throws:
        java.lang.CloneNotSupportedException
      • isCaseInSensitive

        public boolean isCaseInSensitive()
      • setCaseInSensitive

        public void setCaseInSensitive​(boolean caseInSensitive)