oracle.mail.sdk.esmail
Class TodayTerm
java.lang.Object
|
+--javax.mail.search.SearchTerm
|
+--javax.mail.search.ComparisonTerm
|
+--javax.mail.search.DateTerm
|
+--oracle.mail.sdk.esmail.TodayTerm
- public class TodayTerm
- extends javax.mail.search.DateTerm
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: ...
- See Also:
- Serialized Form
Fields inherited from class javax.mail.search.ComparisonTerm |
EQ, GE, GT, LE, LT, NE |
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. |
Methods inherited from class javax.mail.search.DateTerm |
equals, getComparison, hashCode |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
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()
-
- Overrides:
- getDate in class javax.mail.search.DateTerm
match
public boolean match(javax.mail.Message msg)
-
- Overrides:
- match in class javax.mail.search.SearchTerm
getDays
public int getDays()
getDateType
public int getDateType()
main
public static void main(java.lang.String[] args)
Copyright © 1988, 2005, Oracle. All rights reserved.