WebCenter Interaction API  
 

IPTSearchFactory.createComparisonQuery Method (IPTSField, Int32, XPDateTime)

Construct an IPTSQuery for a comparison involving a date/time field and a non-relative operator.

IPTSQuery createComparisonQuery(
   IPTSField dateField,
   int comparisonOperator,
   XPDateTime comparisonValue
);

Parameters

dateField
the field to compare. Must have type PTSFieldType.DATETIME.
comparisonOperator
operator to use for the comparison. Must be one of PT_FILTEROPS.PT_FILTEROP_LT, PT_FILTEROPS.PT_FILTEROP_GT, PT_FILTEROPS.PT_FILTEROP_LTE, PT_FILTEROPS.PT_FILTEROP_GTE, PT_FILTEROPS.PT_FILTEROP_EQ or PT_FILTEROPS.PT_FILTEROP_NUMERIC_EQ, PT_FILTEROPS.PT_FILTEROP_NE or PT_FILTEROPS.PT_FILTEROP_NUMERIC_NOTEQ.
comparisonValue
value to compare with. May not be null.

See Also

IPTSearchFactory Interface | com.plumtree.server.search Namespace | IPTSearchFactory.createComparisonQuery Overload List