com.ibm.tivoli.maximo.report.cognos.metadata.generator

Class ExpressionParser

  • java.lang.Object
    • com.ibm.tivoli.maximo.report.cognos.metadata.generator.ExpressionParser


  • public class ExpressionParser
    extends java.lang.Object
    This class is responsible for parsing the where clause expression.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ExpressionParser() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      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 object, in case of any complex expression, an exception is thrown.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExpressionParser

        public ExpressionParser()
    • Method Detail

      • parseExpression

        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.

        Parameters:
        childName - the name of the object detail object
        parentName - the name of the parent object
        relationshipName - the relationship name
        whereClause - the where clause to be parsed
        databaseType - the Maximo database name, only needed if the database type is SQL-Server
        Throws:
        CognosTransformationException - if exception occurred while parsing the expression