Package org.hpccsystems.commons.filter
Class SQLOperator
- java.lang.Object
-
- org.hpccsystems.commons.filter.SQLOperator
-
public class SQLOperator extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSQLOperator.OperatorType
-
Field Summary
Fields Modifier and Type Field Description static Stringandstatic StringANDSPLITPATTERNstatic Stringeqstatic Stringgtstatic Stringgtestatic Stringinstatic StringINSPLITPATTERNstatic StringisNotNullstatic StringISNOTNULLSPLITPATTERNstatic StringisNullstatic StringISNULLSPLITPATTERNstatic Stringltstatic Stringltestatic Stringneqstatic Stringneq2static StringnotInstatic StringNOTINSPLITPATTERNstatic StringNOTSPLITPATTERNstatic Stringorstatic StringORSPLITPATTERN
-
Constructor Summary
Constructors Constructor Description SQLOperator(String fragment)Instantiates a new SQL operator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SQLOperator.OperatorTypegetType()Gets the type.StringgetValue()Gets the value.booleanisBinary()Checks if is binary.booleanisValid()Checks if is valid.String[]splitExpressionFragment(String fragment)Split expression fragment.StringtoString()
-
-
-
Field Detail
-
eq
public static final String eq
-
neq
public static final String neq
-
neq2
public static final String neq2
-
isNull
public static final String isNull
-
isNotNull
public static final String isNotNull
-
gt
public static final String gt
-
lt
public static final String lt
-
gte
public static final String gte
-
lte
public static final String lte
-
and
public static final String and
-
or
public static final String or
-
in
public static final String in
-
notIn
public static final String notIn
-
ISNULLSPLITPATTERN
public static final String ISNULLSPLITPATTERN
- See Also:
- Constant Field Values
-
ISNOTNULLSPLITPATTERN
public static final String ISNOTNULLSPLITPATTERN
- See Also:
- Constant Field Values
-
ANDSPLITPATTERN
public static final String ANDSPLITPATTERN
- See Also:
- Constant Field Values
-
ORSPLITPATTERN
public static final String ORSPLITPATTERN
- See Also:
- Constant Field Values
-
NOTSPLITPATTERN
public static final String NOTSPLITPATTERN
- See Also:
- Constant Field Values
-
INSPLITPATTERN
public static final String INSPLITPATTERN
- See Also:
- Constant Field Values
-
NOTINSPLITPATTERN
public static final String NOTINSPLITPATTERN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SQLOperator
public SQLOperator(String fragment)
Instantiates a new SQL operator.- Parameters:
fragment- the fragment
-
-
Method Detail
-
getValue
public String getValue()
Gets the value.- Returns:
- the value
-
isBinary
public boolean isBinary()
Checks if is binary.- Returns:
- true, if is binary
-
getType
public SQLOperator.OperatorType getType()
Gets the type.- Returns:
- the type
-
isValid
public boolean isValid()
Checks if is valid.- Returns:
- true, if is valid
-
splitExpressionFragment
public String[] splitExpressionFragment(String fragment)
Split expression fragment.- Parameters:
fragment- the fragment- Returns:
- the string[]
-
-