public class ItemModificationDateCriteria 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");
ItemModificationDateCriteria criteria = new ItemModificationDateCriteria(july2008);
will match the items with modified date 2008 July 06, 00:00:00.000.ItemModificationDateCriteria criteria = new ItemModificationDateCriteria(july2008,
Criteria.GREATER_THAN); will match the items with modified date after 2008 July 06, 00:00:00.000.ItemModificationDateCriteria criteria = new ItemModificationDateCriteria("2008-07-06 00:00:00.000");
will match the items with modified date 2008 July 06, 00:00:00.000.ItemModificationDateCriteria criteria = new ItemModificationDateCriteria("2008-07-06 00:00:00.000",
"yyyy-MM-dd HH:mm:ss.SSS"); will match the items with modified date 2008 July 06, 00:00:00.000.ItemModificationDateCriteria criteria = new ItemModificationDateCriteria("2008-07-06 00:00:00.000",
Criteria.GREATER_THAN) will match all items with modified date after 2008 July 06, 00:00:00.000.ItemModificationDateCriteria criteria = new ItemModificationDateCriteria("2008-07-06 00:00:00.000",
"yyyy-MM-dd HH:mm:ss.SSS", Criteria.GREATER_THAN) will match all items with modified date after
2008 July 06, 00:00:00.000.DATE_FORMAT, ORACLE_DATE_CONVERSION_STRINGEQUAL, GREATER_OR_EQUAL_THAN, GREATER_THAN, LESS_OR_EQUAL_THAN, LESS_THAN, LIKE, NOT_EQUAL| Constructor and Description |
|---|
ItemModificationDateCriteria(Date modificationDate)
Creates a new criteria with a specific modificationDate.
|
ItemModificationDateCriteria(Date modificationDate,
FieldOperator operator)
Creates a new date criteria with a specific modificationDate and that uses the specified field operator.
|
ItemModificationDateCriteria(String modificationDate)
Creates a new date criteria with a specific modificationDate string and expected in the format
"yyyy-MM-dd HH:mm:ss.SSS".
|
ItemModificationDateCriteria(String modificationDate,
FieldOperator operator)
Creates a new date criteria with a specific modificationDate string, expected in the format
"yyyy-MM-dd HH:mm:ss.SSS" and that uses the specified field operator.
|
ItemModificationDateCriteria(String modificationDate,
String dateFormat)
Creates a new date criteria with a specific modificationDate string and expected in the specified dateFormat.
|
ItemModificationDateCriteria(String modificationDate,
String dateFormat,
FieldOperator operator)
Creates a new date criteria with a specific modificationDate string, expected in the specified
dateFormat and that uses the specified field operator.
|
getConvertedDate, toStringaddCriteria, getCriteriaChildren, getCriteriaName, getFieldOperatorAsString, getParentOperator, getSignature, hasAnyCriteria, isLikeOperatorApplicable, isOperator, setParentOperatorpublic ItemModificationDateCriteria(Date modificationDate)
modificationDate - The date to be used by this criteria.public ItemModificationDateCriteria(String modificationDate) throws CriteriaException
modificationDate - 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 modificationDate cannot be parsed with the format
"yyyy-MM-dd HH:mm:ss.SSS".public ItemModificationDateCriteria(String modificationDate, String dateFormat) throws CriteriaException
modificationDate - The string representation of the date to be used by this criteria.dateFormat - The the date format in which the modificationDate is specified.CriteriaException - if the sent modificationDate cannot be parsed with the given dateFormat.public ItemModificationDateCriteria(String modificationDate, FieldOperator operator) throws CriteriaException
modificationDate - 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 modificationDate cannot be parsed with the format
"yyyy-MM-dd HH:mm:ss.SSS".public ItemModificationDateCriteria(String modificationDate, String dateFormat, FieldOperator operator) throws CriteriaException
modificationDate - The string representation of the date to be used by this criteria.dateFormat - The the date format in which the modificationDate is specified.operator - Operator for the queried date (Criteria.EQUAL, Criteria.GREATER_THAN, ...).CriteriaException - if the sent modificationDate cannot be parsed with the given dateFormat.public ItemModificationDateCriteria(Date modificationDate, FieldOperator operator)
modificationDate - 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