|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.federation.IESQLQuerySpecTranslator
This class translates Windchill QuerySpec objects to SQL-like search filter strings for Info*Engine.
Field Summary | |
private Hashtable |
classTable
|
private static String |
RESOURCE
|
private FederatedInfoEngineService |
service
|
private InfoEngineTranslationTable |
translationTable
|
private static boolean |
VERBOSE
|
private static String |
versionID
|
private int |
whereCursor
|
private Vector |
whereTokens
|
Constructor Summary | |
IESQLQuerySpecTranslator()
Constructor returning an instance initialized with a null service reference. |
|
IESQLQuerySpecTranslator(FederatedInfoEngineService service)
Constructor returning an instance initialized with a service reference. |
Method Summary | |
static String |
encodeAndEscapeURLString(String s,
String encoding)
Escape the special characters and call WTURLEncode to encode the rest. |
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 SQL WHERE clause |
private String |
translateTerm(String encoding)
Translate a term of an SQL WHERE clause to an SQL-like Info*Engine search filter. |
private String |
translateWhereClause()
Translate an SQL WHERE clause to an SQL-like Info*Engine search filter. |
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 Hashtable classTable
private FederatedInfoEngineService service
private InfoEngineTranslationTable translationTable
private int whereCursor
private Vector whereTokens
private static boolean VERBOSE
Constructor Detail |
public IESQLQuerySpecTranslator(FederatedInfoEngineService service)
service
- FederatedInfoEngineService to interface withpublic IESQLQuerySpecTranslator()
Method Detail |
public static String encodeAndEscapeURLString(String s, String encoding)
s
- a string to be encoded.
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() throws FederationServicesException
FederationServicesException
private String translateTerm(String encoding) throws FederationServicesException
FederationServicesException
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 |