public class ItemLastPublishedDateCriteria 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");
ItemLastPublishedDateCriteria criteria = new ItemLastPublishedDateCriteria(july2008);
will match the items last published on 2008 July 06 at 00:00:00.000.ItemLastPublishedDateCriteria criteria = new ItemLastPublishedDateCriteria(july2008,
Criteria.GREATER_THAN);
will match the items last published after 2008 July 06, 00:00:00.000.ItemLastPublishedDateCriteria criteria = new ItemLastPublishedDateCriteria("2008-07-06 00:00:00.000");
will match the items last published on 2008 July 06 at 00:00:00.000.ItemLastPublishedDateCriteria criteria = new ItemLastPublishedDateCriteria("2008-07-06 00:00:00.000",
"yyyy-MM-dd HH:mm:ss.SSS");
will match the items last published on 2008 July 06 at 00:00:00.000.ItemLastPublishedDateCriteria criteria = new ItemLastPublishedDateCriteria("2008-07-06 00:00:00.000",
Criteria.GREATER_THAN)
will match all items last published after 2008 July 06, 00:00:00.000.ItemLastPublishedDateCriteria criteria = new ItemLastPublishedDateCriteria("2008-07-06 00:00:00.000",
"yyyy-MM-dd HH:mm:ss.SSS", Criteria.GREATER_THAN)
will match all items last 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 |
---|
ItemLastPublishedDateCriteria(Date lastPublishedDate)
Creates a new criteria with a specific lastPublishedDate.
|
ItemLastPublishedDateCriteria(Date lastPublishedDate,
FieldOperator operator)
Creates a new date criteria with a specific lastPublishedDate and that uses the specified field operator.
|
ItemLastPublishedDateCriteria(String lastPublishedDate)
Constructs ItemLastPublishedDateCriteria criteria.
|
ItemLastPublishedDateCriteria(String lastPublishedDate,
FieldOperator operator)
Constructs ItemLastPublishedDateCriteria criteria.
|
ItemLastPublishedDateCriteria(String lastPublishedDate,
String dateFormat)
Creates a new date criteria with a specific lastPublishedDate string and expected in the specified dateFormat.
|
ItemLastPublishedDateCriteria(String lastPublishedDate,
String dateFormat,
FieldOperator operator)
Creates a new date criteria with a specific lastPublishedDate 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 ItemLastPublishedDateCriteria(String lastPublishedDate) throws CriteriaException
lastPublishedDate
- Last published date expected in format "yyyy-MM-dd HH:mm:ss.SSS".CriteriaException
- if the sent last published date cannot be parsed with the format
"yyyy-MM-dd HH:mm:ss.SSS".public ItemLastPublishedDateCriteria(String lastPublishedDate, FieldOperator operator) throws CriteriaException
lastPublishedDate
- Last published date expected in format "yyyy-MM-dd HH:mm:ss.SSS".operator
- Operator for last published date (Criteria.EQUAL, Criteria.GREATER_THAN, ...)CriteriaException
- if the sent Last published date cannot be parsed with the format
"yyyy-MM-dd HH:mm:ss.SSS".public ItemLastPublishedDateCriteria(Date lastPublishedDate)
lastPublishedDate
- The date to be used by this criteria.public ItemLastPublishedDateCriteria(String lastPublishedDate, String dateFormat) throws CriteriaException
lastPublishedDate
- 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 creationDate cannot be parsed with the given dateFormat.public ItemLastPublishedDateCriteria(String lastPublishedDate, String dateFormat, FieldOperator operator) throws CriteriaException
lastPublishedDate
- The string representation of the date to be used by this criteria.dateFormat
- The the date format in which the lastPublishedDate is specified.operator
- Operator for the queried date (Criteria.EQUAL, Criteria.GREATER_THAN, ...).CriteriaException
- if the sent lastPublishedDate cannot be parsed with the given dateFormat.public ItemLastPublishedDateCriteria(Date lastPublishedDate, FieldOperator operator)
lastPublishedDate
- 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