Package ipsk.math.bool
Class ExtBoolExpr
- java.lang.Object
-
- ipsk.math.bool.BoolExpr
-
- ipsk.math.bool.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 Summary
Fields Modifier and Type Field Description static java.lang.StringBOUNDstatic java.lang.StringCONTAINSstatic java.lang.StringENDS_WITHstatic java.lang.StringEQUALSstatic java.lang.StringEQUALS_NOTstatic java.lang.StringMEMBERstatic java.lang.StringNOT_BOUNDstatic java.lang.StringNOT_MEMBERstatic java.lang.StringSTARTS_WITH-
Fields inherited from class ipsk.math.bool.BoolExpr
AND, EQUAL, GREATER_EQUAL, GREATER_THEN, LESS_EQUAL, LESS_THEN, NOT_EQUAL, operand0, operand1, operator, OR
-
-
Constructor Summary
Constructors Constructor Description ExtBoolExpr()ExtBoolExpr(java.lang.String col, java.lang.Object val)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtBoolExpraddEmptyExpression()Adds an empty expression.java.lang.Objectclone()static java.lang.String[]getExprOperators()static java.lang.String[]getExprOperatorsWithoutRelationshipOperators()static java.lang.String[]getNumberExprOperators()booleanisCaseInSensitive()booleanisExpression()booleanisObjectRelationShip()Returns true if this a object relationship condition.static booleanisOperatorSupportingType(java.lang.Object operator, java.lang.Class<?> type)voidsetCaseInSensitive(boolean caseInSensitive)booleanunaryOperator()-
Methods inherited from class ipsk.math.bool.BoolExpr
cloneType, equals, getOperand0, getOperand1, getOperator, setOperand0, setOperand1, setOperator
-
-
-
-
Field Detail
-
STARTS_WITH
public static final java.lang.String STARTS_WITH
- See Also:
- Constant Field Values
-
ENDS_WITH
public static final java.lang.String ENDS_WITH
- See Also:
- Constant Field Values
-
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
-
-
Method Detail
-
isExpression
public boolean isExpression()
- Overrides:
isExpressionin classBoolExpr
-
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
-
isCaseInSensitive
public boolean isCaseInSensitive()
-
setCaseInSensitive
public void setCaseInSensitive(boolean caseInSensitive)
-
-