com.infoengine.email
Class EMailQueryTranslator
java.lang.Object
com.infoengine.email.EMailQueryTranslator
- public class EMailQueryTranslator
- extends Object
Method Summary |
private String |
getNextToken(StringTokenizer tokens,
Stack tokenStack)
|
private javax.mail.search.SearchTerm |
translate()
Translate an Info*Engine WHERE clause to an e-mail search term. |
javax.mail.search.SearchTerm |
translate(String whereClause)
Translate a SQL-like WHERE clause to an e-mail search term. |
private javax.mail.search.SearchTerm |
translateTerm()
Translate a term of an Info*Engine WHERE clause to an e-mail
search term. |
static javax.mail.search.SearchTerm |
translateWhereClause(String whereClause)
Translate a SQL-like WHERE clause to an e-mail search term. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESOURCE
private static final String RESOURCE
- See Also:
- Constant Field Values
PREFIX
private static final int PREFIX
- See Also:
- Constant Field Values
SUFFIX
private static final int SUFFIX
- See Also:
- Constant Field Values
SUBSTRING
private static final int SUBSTRING
- See Also:
- Constant Field Values
EXACT
private static final int EXACT
- See Also:
- Constant Field Values
whitespace
private static final String whitespace
- See Also:
- Constant Field Values
whereCursor
private int whereCursor
whereTokens
private Vector whereTokens
EMailQueryTranslator
public EMailQueryTranslator()
- Constructor.
translateWhereClause
public static javax.mail.search.SearchTerm translateWhereClause(String whereClause)
throws IEException
- Translate a SQL-like WHERE clause to an e-mail search term.
- Parameters:
whereClause
- The WHERE clause to be translated
- Returns:
- The e-mail search term
- Throws:
IEException
translate
public javax.mail.search.SearchTerm translate(String whereClause)
throws IEException
- Translate a SQL-like WHERE clause to an e-mail search term.
- Parameters:
whereClause
- The WHERE clause to be translated
- Returns:
- The e-mail search term
- Throws:
IEException
getNextToken
private String getNextToken(StringTokenizer tokens,
Stack tokenStack)
translate
private javax.mail.search.SearchTerm translate()
- Translate an Info*Engine WHERE clause to an e-mail search term.
- Returns:
- The search term, or null if expression can not be translated.
translateTerm
private javax.mail.search.SearchTerm translateTerm()
- Translate a term of an Info*Engine WHERE clause to an e-mail
search term.
- Returns:
- e-mail search term, or null if term can not be translated.