oracle.mail.sdk.esmail
Class TodayTerm
oracle.mail.sdk.esmail.TodayTerm
- public class TodayTerm
This class implements a TodayTerm. With Oracle's Email Server 6.0, the user has the ability to set wireless filters to perform searches using today-n(number of days). The caller must use the TodayTerm to use this specialized search term. The constructor of this class takes in a integer value to indicate the number of days before today.
NOTE: ...
- Version:
- 1.0, 2002/06/11
Constructor Summary |
TodayTerm(int comparison, int numOfDays, int dateType)
Since we need to distinguish between sent date and received date, use the constants: comparison : use the ComparisonTerm.LT and EQ only. |
RECEIVED_DATE
public static final int RECEIVED_DATE
SENT_DATE
public static final int SENT_DATE
TodayTerm
public TodayTerm(int comparison,
int numOfDays,
int dateType)
- Since we need to distinguish between sent date and received date, use the constants: comparison : use the ComparisonTerm.LT and EQ only. numOfDays : days before today, if you want today, set to 0 dateType : TodayTerm.SENT_DATE for Sent Date and TodayTerm.RECEIVED_DATE for Received date.
getDate
public java.util.Date getDate()
match
public boolean match(javax.mail.Message msg)
getDays
public int getDays()
getDateType
public int getDateType()
main
public static void main(java.lang.String[] args)
Copyright © 1988, 2003 Oracle Corporation. All Rights Reserved.