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 class
SQLOperator.OperatorType
-
Field Summary
Fields Modifier and Type Field Description static String
and
static String
ANDSPLITPATTERN
static String
eq
static String
gt
static String
gte
static String
in
static String
INSPLITPATTERN
static String
isNotNull
static String
ISNOTNULLSPLITPATTERN
static String
isNull
static String
ISNULLSPLITPATTERN
static String
lt
static String
lte
static String
neq
static String
neq2
static String
notIn
static String
NOTINSPLITPATTERN
static String
NOTSPLITPATTERN
static String
or
static String
ORSPLITPATTERN
-
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.OperatorType
getType()
Gets the type.String
getValue()
Gets the value.boolean
isBinary()
Checks if is binary.boolean
isValid()
Checks if is valid.String[]
splitExpressionFragment(String fragment)
Split expression fragment.String
toString()
-
-
-
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[]
-
-