public class ItemInitialPublishDateCriteria extends DateCriteria
Date
and also allows you to define
the operator for the queried date (Criteria.EQUAL, Criteria.GREATER_THAN, ...).
Examples:
Date july2008 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS").parse("2008-07-06 00:00:00.000");
ItemInitialPublishDateCriteria criteria = new ItemInitialPublishDateCriteria(july2008);
will match the items initially published on 2008 July 06 at 00:00:00.000.ItemInitialPublishDateCriteria criteria = new ItemInitialPublishDateCriteria(july2008,
Criteria.GREATER_THAN);
will match the items initially published after 2008 July 06, 00:00:00.000.ItemInitialPublishDateCriteria criteria = new ItemInitialPublishDateCriteria("2008-07-06 00:00:00.000");
will match the items initially published on 2008 July 06 at 00:00:00.000.ItemInitialPublishDateCriteria criteria = new ItemInitialPublishDateCriteria("2008-07-06 00:00:00.000",
"yyyy-MM-dd HH:mm:ss.SSS");
will match the items initially published on 2008 July 06 at
00:00:00.000.ItemInitialPublishDateCriteria criteria = new ItemInitialPublishDateCriteria("2008-07-06 00:00:00.000",
Criteria.GREATER_THAN)
will match all items initially published after 2008 July 06, 00:00:00.000.ItemInitialPublishDateCriteria criteria = new ItemInitialPublishDateCriteria("2008-07-06 00:00:00.000",
"yyyy-MM-dd HH:mm:ss.SSS", Criteria.GREATER_THAN)
will match all items initially published after
2008 July 06, 00:00:00.000.DATE_FORMAT, ORACLE_DATE_CONVERSION_STRING
EQUAL, GREATER_OR_EQUAL_THAN, GREATER_THAN, LESS_OR_EQUAL_THAN, LESS_THAN, LIKE, NOT_EQUAL
Constructor and Description |
---|
ItemInitialPublishDateCriteria(Date initialPublishDate)
Creates a new criteria with a specific initialPublishDate.
|
ItemInitialPublishDateCriteria(Date initialPublishDate,
FieldOperator operator)
Creates a new date criteria with a specific initialPublishDate and that uses the specified field operator.
|
ItemInitialPublishDateCriteria(String initialPublishDate)
Creates a new date criteria with a specific initialPublishDate string and expected in the format
"yyyy-MM-dd HH:mm:ss.SSS".
|
ItemInitialPublishDateCriteria(String initialPublishDate,
FieldOperator operator)
Creates a new date criteria with a specific initialPublishDate string, expected in the format
"yyyy-MM-dd HH:mm:ss.SSS" and that uses the specified field operator.
|
ItemInitialPublishDateCriteria(String initialPublishDate,
String dateFormat)
Creates a new date criteria with a specific initialPublishDate string and expected in the specified dateFormat.
|
ItemInitialPublishDateCriteria(String initialPublishDate,
String dateFormat,
FieldOperator operator)
Creates a new date criteria with a specific initialPublishDate string, expected in the specified
dateFormat and that uses the specified field operator.
|
getConvertedDate, toString
addCriteria, getCriteriaChildren, getCriteriaName, getFieldOperatorAsString, getParentOperator, getSignature, hasAnyCriteria, isLikeOperatorApplicable, isOperator, setParentOperator
public ItemInitialPublishDateCriteria(Date initialPublishDate)
initialPublishDate
- The date to be used by this criteria.public ItemInitialPublishDateCriteria(String initialPublishDate) throws CriteriaException
initialPublishDate
- The string representation of the date (expected in the format
"yyyy-MM-dd HH:mm:ss.SSS") to be used by this criteria.CriteriaException
- if the sent initialPublishDate cannot be parsed with the format
"yyyy-MM-dd HH:mm:ss.SSS".public ItemInitialPublishDateCriteria(String initialPublishDate, String dateFormat) throws CriteriaException
initialPublishDate
- The string representation of the date to be used by this criteria.dateFormat
- The the date format in which the initialPublishDate is specified.CriteriaException
- if the sent initialPublishDate cannot be parsed with the given dateFormat.public ItemInitialPublishDateCriteria(String initialPublishDate, FieldOperator operator) throws CriteriaException
initialPublishDate
- The string representation of the date (expected in the format
"yyyy-MM-dd HH:mm:ss.SSS") to be used by this criteria.operator
- Operator for the queried date (Criteria.EQUAL, Criteria.GREATER_THAN, ...).CriteriaException
- if the sent initialPublishDate cannot be parsed with the format
"yyyy-MM-dd HH:mm:ss.SSS".public ItemInitialPublishDateCriteria(String initialPublishDate, String dateFormat, FieldOperator operator) throws CriteriaException
initialPublishDate
- The string representation of the date to be used by this criteria.dateFormat
- The the date format in which the initialPublishDate is specified.operator
- Operator for the queried date (Criteria.EQUAL, Criteria.GREATER_THAN, ...).CriteriaException
- if the sent initialPublishDate cannot be parsed with the given dateFormat.public ItemInitialPublishDateCriteria(Date initialPublishDate, FieldOperator operator)
initialPublishDate
- The date to be used by this criteria.operator
- Operator for the queried date (Criteria.EQUAL, Criteria.GREATER_THAN, ...).Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries