com.infoengine.jndi
Class DirectoryQueryTranslator

java.lang.Object
  extended bycom.infoengine.jndi.DirectoryQueryTranslator

public class DirectoryQueryTranslator
extends Object


Field Summary
private static String RESOURCE
           
private  int whereCursor
           
private  Vector whereTokens
           
 
Constructor Summary
DirectoryQueryTranslator()
          Constructor.
 
Method Summary
 String translate(String whereClause)
          Translate a SQL-like WHERE clause to a directory search filter.
private  String translateTerm()
          Translate a term of an Info*Engine WHERE clause to an LDAP search expression.
private  String translateWhereClause()
          Translate an Info*Engine WHERE clause to an LDAP search expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

whereCursor

private int whereCursor

whereTokens

private Vector whereTokens
Constructor Detail

DirectoryQueryTranslator

public DirectoryQueryTranslator()
Constructor.

Method Detail

translate

public String translate(String whereClause)
                 throws IEAdapterIOException
Translate a SQL-like WHERE clause to a directory search filter.

Parameters:
whereClause - The WHERE clause to be translated
Returns:
The directory search filter
Throws:
IEAdapterIOException

translateWhereClause

private String translateWhereClause()
Translate an Info*Engine WHERE clause to an LDAP search expression.

Returns:
The LDAP search expression, or null if expression can not be translated.

translateTerm

private String translateTerm()
Translate a term of an Info*Engine WHERE clause to an LDAP search expression.

Returns:
LDAP search expression, or null if expression can not be translated.