Oracle Email Java API Reference
Release 2(9.0.4)

B10724-01

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

Field Summary
static int RECEIVED_DATE
           
static int SENT_DATE
           

 

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.

 

Method Summary
 java.util.Date getDate()
           
 int getDateType()
           
 int getDays()
           
static void main(java.lang.String[] args)
           
 boolean match(javax.mail.Message msg)
           

 

Field Detail

RECEIVED_DATE

public static final int RECEIVED_DATE

SENT_DATE

public static final int SENT_DATE
Constructor Detail

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.
Method Detail

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)

Oracle Email Java API Reference
Release 2(9.0.4)

B10724-01

Copyright © 1988, 2003 Oracle Corporation. All Rights Reserved.