public class ConditionUtil extends java.lang.Object implements ConditionConstants
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
Copyright.
|
Constructor and Description |
---|
ConditionUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean | evaluate2Strings(java.lang.String value1, java.lang.String value2, java.lang.String operator, java.lang.String value3)
This method will compare two string values to a third using the specified operator.
|
static boolean | evaluateBigDecimal(java.math.BigDecimal value1, java.lang.String operator, java.math.BigDecimal value2)
This method will compare two big decimal values using the specified operator.
|
static boolean | evaluateDate(java.lang.String value1, java.lang.String operator, java.lang.String value2)
This method will compare two date values using the specified operator.
|
static boolean | evaluateDurationInDays(java.sql.Timestamp timestamp, java.lang.String operator, java.lang.Integer value)
This method will compare a timestamp to an integer value using the specified operator.
|
static boolean | evaluateDurationInDays(java.sql.Timestamp timestamp, java.lang.String operator, java.lang.Integer value, java.sql.Timestamp compareTime)
This method will compare a timestamp to an integer value using the specified operator.
|
static boolean | evaluateInteger(java.lang.Integer value1, java.lang.String operator, java.lang.Integer value2)
This method will compare two integer values using the specified operator.
|
static boolean | evaluateString(java.lang.String value1, java.lang.String operator, java.lang.String value2)
This method will compare two string values using the specified operator.
|
static boolean | evaluateStringIgnoreCase(java.lang.String value1, java.lang.String operator, java.lang.String value2)
This method will compare two string values using the specified operator.
|
static java.sql.Timestamp | getCurrentTime(ActivityToken token)
This method returns the current time.
|
static Condition | removeSimpleConditionFromList(Condition condition, java.lang.String conditionVariable)
This method takes a condition object and a variable name, and removes all simple condition objects with the given variable name within the given condition object.
|
public static final java.lang.String COPYRIGHT
public static boolean evaluateString(java.lang.String value1, java.lang.String operator, java.lang.String value2)
public static boolean evaluateStringIgnoreCase(java.lang.String value1, java.lang.String operator, java.lang.String value2)
public static boolean evaluate2Strings(java.lang.String value1, java.lang.String value2, java.lang.String operator, java.lang.String value3)
public static boolean evaluateInteger(java.lang.Integer value1, java.lang.String operator, java.lang.Integer value2)
public static boolean evaluateBigDecimal(java.math.BigDecimal value1, java.lang.String operator, java.math.BigDecimal value2)
public static boolean evaluateDurationInDays(java.sql.Timestamp timestamp, java.lang.String operator, java.lang.Integer value, java.sql.Timestamp compareTime)
This method will compare a timestamp to an integer value using the specified operator. The integer value represents the number of days from the specified time.
This method can be used to answer whether or not a given timestamp is the same as, occurs before or occurs after a base, comparison timestamp.
public static boolean evaluateDurationInDays(java.sql.Timestamp timestamp, java.lang.String operator, java.lang.Integer value)
This method will compare a timestamp to an integer value using the specified operator. The integer value represents the number of days from the current system time.
This method can be used to answer whether or not a given timestamp is the same as, occurs before or occurs after the current system time.
public static boolean evaluateDate(java.lang.String value1, java.lang.String operator, java.lang.String value2)
public static Condition removeSimpleConditionFromList(Condition condition, java.lang.String conditionVariable)
public static java.sql.Timestamp getCurrentTime(ActivityToken token)