public class ExpressionParser
extends java.lang.Object
Constructor and Description |
---|
ExpressionParser() |
Modifier and Type | Method and Description |
---|---|
static Expression |
parseExpression(java.lang.String childName,
java.lang.String parentName,
java.lang.String relationshipName,
java.lang.String whereClause,
java.lang.String databaseType)
This method is responsible for parsing the where clause to construct the
Expression |
public static Expression parseExpression(java.lang.String childName, java.lang.String parentName, java.lang.String relationshipName, java.lang.String whereClause, java.lang.String databaseType) throws CognosTransformationException
This method is responsible for parsing the where clause to construct the
Expression
object, in case of any complex expression, an exception is thrown.
The names for the source query items are lowered case if the database type is SQL-Server.
childName
- the name of the object detail objectparentName
- the name of the parent objectrelationshipName
- the relationship namewhereClause
- the where clause to be parseddatabaseType
- the Maximo database name, only needed if the database type is SQL-ServerCognosTransformationException
- if exception occurred while parsing the expression