public abstract class DateCriteria extends Criteria
Date
.Modifier and Type | Field and Description |
---|---|
static String |
DATE_FORMAT
This is the internal date format used.
|
static String |
ORACLE_DATE_CONVERSION_STRING
This is the string used in Oracle to convert our string into an Oracle date.
|
EQUAL, GREATER_OR_EQUAL_THAN, GREATER_THAN, LESS_OR_EQUAL_THAN, LESS_THAN, LIKE, NOT_EQUAL
Modifier | Constructor and Description |
---|---|
protected |
DateCriteria(String criteriaName,
Date date)
Creates a new date criteria with a specific date.
|
protected |
DateCriteria(String criteriaName,
Date date,
FieldOperator operator)
Creates a new date criteria with a specific date, a certain name and that uses the specified field operator.
|
protected |
DateCriteria(String criteriaName,
String stringDate)
Creates a new date criteria with a specific date.
|
protected |
DateCriteria(String criteriaName,
String stringDate,
FieldOperator operator)
Creates a new date criteria with a specific date string, with a certain name and that uses
the specified field operator.
|
protected |
DateCriteria(String criteriaName,
String stringDate,
String dateFormat)
Creates a new date criteria with a specific date string, expected in the specified dateFormat
and with a certain name.
|
protected |
DateCriteria(String criteriaName,
String stringDate,
String dateFormat,
FieldOperator operator)
Creates a new date criteria with a specific date string, expected in the specified dateFormat,
with a certain name and that uses the specified field operator.
|
Modifier and Type | Method and Description |
---|---|
Date |
getConvertedDate()
Gets the internal string representation of the date used by this criteria.
|
String |
toString()
Returns string presentation of the criteria.
|
addCriteria, getCriteriaChildren, getCriteriaName, getFieldOperatorAsString, getParentOperator, getSignature, hasAnyCriteria, isLikeOperatorApplicable, isOperator, setParentOperator
public static final String DATE_FORMAT
public static final String ORACLE_DATE_CONVERSION_STRING
protected DateCriteria(String criteriaName, Date date)
criteriaName
- The internal name of the criteria.date
- The date to be used by this criteria.protected DateCriteria(String criteriaName, String stringDate) throws CriteriaException
criteriaName
- The internal name of the criteria.stringDate
- The stringDate to be used by this criteria expected in format "yyyy-MM-dd HH:mm:ss.SSS".CriteriaException
- - if the sent stringDate cannot be parsed in format "yyyy-MM-dd HH:mm:ss.SSS".protected DateCriteria(String criteriaName, String stringDate, String dateFormat) throws CriteriaException
criteriaName
- The internal name of the criteria.dateFormat
- The the date format in which the string date is specified.CriteriaException
- - if the sent stringDate cannot be parsed with the given dateFormat.protected DateCriteria(String criteriaName, String stringDate, FieldOperator operator) throws CriteriaException
criteriaName
- The internal name of the criteria.stringDate
- The string representation of the date to be used by this criteria.operator
- Operator for the queried date (Criteria.EQUAL, Criteria.GREATER_THAN, ...).CriteriaException
- - if the sent stringDate cannot be parsed in format "yyyy-MM-dd HH:mm:ss.SSS".protected DateCriteria(String criteriaName, String stringDate, String dateFormat, FieldOperator operator) throws CriteriaException
criteriaName
- The internal name of the criteria.stringDate
- The string representation of the date to be used by this criteria.dateFormat
- The the date format in which the string date is specified.operator
- Operator for the queried date (Criteria.EQUAL, Criteria.GREATER_THAN, ...).CriteriaException
- - if the sent stringDate cannot be parsed with the given dateFormat.protected DateCriteria(String criteriaName, Date date, FieldOperator operator)
criteriaName
- The internal name of the criteria.date
- The date to be used by this criteria.operator
- Operator for the queried date (Criteria.EQUAL, Criteria.GREATER_THAN, ...).public Date getConvertedDate()
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries