|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.federation.DirectoryQuerySpecTranslator
This class translates Windchill QuerySpec objects to directory search filter strings.
Field Summary | |
private String |
classFilter
|
private Hashtable |
classTable
|
private static String |
RESOURCE
|
private FederatedDirectoryService |
service
|
private DirectoryTranslationTable |
translationTable
|
private static boolean |
VERBOSE
|
private static String |
versionID
|
private int |
whereCursor
|
private Vector |
whereTokens
|
Constructor Summary | |
DirectoryQuerySpecTranslator()
Constructor returning an instance initialized with a null service reference. |
|
DirectoryQuerySpecTranslator(FederatedDirectoryService service)
Constructor returning an instance initialized with a service reference. |
Method Summary | |
void |
setService(FederatedService service)
Associate a FederatedService with the translator instance. |
private String |
translateIdentifier(String identifier)
Translate an identifier of an SQL WHERE clause to an SQL-like Info*Engine search filter. |
String |
translateQuerySpec(QuerySpec spec)
Translate a Windchill QuerySpec to an LDAP search expression. |
private String |
translateTerm()
Translate a term of an SQL WHERE clause to an LDAP search expression. |
private String |
translateWhereClause()
Translate an SQL 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 |
private static final String versionID
private static final String RESOURCE
private String classFilter
private Hashtable classTable
private FederatedDirectoryService service
private DirectoryTranslationTable translationTable
private int whereCursor
private Vector whereTokens
private static boolean VERBOSE
Constructor Detail |
public DirectoryQuerySpecTranslator(FederatedDirectoryService service)
service
- FederatedDirectoryService to interface withpublic DirectoryQuerySpecTranslator()
Method Detail |
public void setService(FederatedService service)
setService
in interface QuerySpecTranslator
service
- FederatedService object to associate with this translatorpublic String translateQuerySpec(QuerySpec spec) throws FederationServicesException
translateQuerySpec
in interface QuerySpecTranslator
spec
- QuerySpec
FederationServicesException
private String translateWhereClause()
private String translateTerm()
private String translateIdentifier(String identifier)
identifier
- the identifier to translate (e.g., A0.name)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |