Class ODataExpressionToSQLVisitor

  • All Implemented Interfaces:
    org.apache.olingo.server.core.RequestURLVisitor, ODataExpressionVisitor

    public class ODataExpressionToSQLVisitor
    extends org.apache.olingo.server.core.RequestURLHierarchyVisitor
    implements ODataExpressionVisitor
    • Constructor Summary

      Constructors 
      Constructor Description
      ODataExpressionToSQLVisitor​(DocumentNode resource, boolean prepared, org.apache.olingo.server.api.uri.UriInfo info, MetadataStore metadata, org.apache.olingo.server.api.OData odata, org.teiid.olingo.service.TeiidServiceHandler.UniqueNameGenerator nameGenerator, List<SQLParameter> params, org.teiid.olingo.service.ODataSQLBuilder.URLParseService parseService)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      QueryCommand buildRootSubQuery​(String element, DocumentNode resource)  
      DocumentNode getEntityResource()  
      Expression getExpression​(org.apache.olingo.server.api.uri.queryoption.expression.Expression expr)  
      Expression getExpression​(org.apache.olingo.server.api.uri.UriInfoResource info)  
      void visit​(org.apache.olingo.server.api.uri.queryoption.expression.Alias expr)  
      void visit​(org.apache.olingo.server.api.uri.queryoption.expression.Binary expr)  
      void visit​(org.apache.olingo.server.api.uri.queryoption.expression.Enumeration expr)  
      void visit​(org.apache.olingo.server.api.uri.queryoption.expression.LambdaRef expr)  
      void visit​(org.apache.olingo.server.api.uri.queryoption.expression.Literal expr)  
      void visit​(org.apache.olingo.server.api.uri.queryoption.expression.Member expr)  
      void visit​(org.apache.olingo.server.api.uri.queryoption.expression.Method expr)  
      void visit​(org.apache.olingo.server.api.uri.queryoption.expression.TypeLiteral expr)  
      void visit​(org.apache.olingo.server.api.uri.queryoption.expression.Unary expr)  
      void visit​(org.apache.olingo.server.api.uri.UriResourceCount option)  
      void visit​(org.apache.olingo.server.api.uri.UriResourceEntitySet info)  
      void visit​(org.apache.olingo.server.api.uri.UriResourceIt info)  
      void visit​(org.apache.olingo.server.api.uri.UriResourceLambdaAll all)  
      void visit​(org.apache.olingo.server.api.uri.UriResourceLambdaAny any)  
      void visit​(org.apache.olingo.server.api.uri.UriResourceLambdaVariable resource)  
      void visit​(org.apache.olingo.server.api.uri.UriResourceNavigation info)  
      void visit​(org.apache.olingo.server.api.uri.UriResourcePrimitiveProperty info)  
      void visit​(org.apache.olingo.server.api.uri.UriResourceRoot info)  
      • Methods inherited from class org.apache.olingo.server.core.RequestURLHierarchyVisitor

        getUriInfo, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
    • Constructor Detail

      • ODataExpressionToSQLVisitor

        public ODataExpressionToSQLVisitor​(DocumentNode resource,
                                           boolean prepared,
                                           org.apache.olingo.server.api.uri.UriInfo info,
                                           MetadataStore metadata,
                                           org.apache.olingo.server.api.OData odata,
                                           org.teiid.olingo.service.TeiidServiceHandler.UniqueNameGenerator nameGenerator,
                                           List<SQLParameter> params,
                                           org.teiid.olingo.service.ODataSQLBuilder.URLParseService parseService)
    • Method Detail

      • getEntityResource

        public DocumentNode getEntityResource()
      • visit

        public void visit​(org.apache.olingo.server.api.uri.queryoption.expression.Alias expr)
        Specified by:
        visit in interface ODataExpressionVisitor
      • visit

        public void visit​(org.apache.olingo.server.api.uri.queryoption.expression.Binary expr)
        Specified by:
        visit in interface ODataExpressionVisitor
      • visit

        public void visit​(org.apache.olingo.server.api.uri.queryoption.expression.Enumeration expr)
        Specified by:
        visit in interface ODataExpressionVisitor
      • visit

        public void visit​(org.apache.olingo.server.api.uri.queryoption.expression.LambdaRef expr)
        Specified by:
        visit in interface ODataExpressionVisitor
      • visit

        public void visit​(org.apache.olingo.server.api.uri.queryoption.expression.Literal expr)
        Specified by:
        visit in interface ODataExpressionVisitor
      • visit

        public void visit​(org.apache.olingo.server.api.uri.queryoption.expression.Member expr)
        Specified by:
        visit in interface ODataExpressionVisitor
      • visit

        public void visit​(org.apache.olingo.server.api.uri.queryoption.expression.Method expr)
        Specified by:
        visit in interface ODataExpressionVisitor
      • visit

        public void visit​(org.apache.olingo.server.api.uri.queryoption.expression.TypeLiteral expr)
        Specified by:
        visit in interface ODataExpressionVisitor
      • visit

        public void visit​(org.apache.olingo.server.api.uri.queryoption.expression.Unary expr)
        Specified by:
        visit in interface ODataExpressionVisitor
      • visit

        public void visit​(org.apache.olingo.server.api.uri.UriResourcePrimitiveProperty info)
        Specified by:
        visit in interface org.apache.olingo.server.core.RequestURLVisitor
        Overrides:
        visit in class org.apache.olingo.server.core.RequestURLHierarchyVisitor
      • visit

        public void visit​(org.apache.olingo.server.api.uri.UriResourceCount option)
        Specified by:
        visit in interface org.apache.olingo.server.core.RequestURLVisitor
        Overrides:
        visit in class org.apache.olingo.server.core.RequestURLHierarchyVisitor
      • visit

        public void visit​(org.apache.olingo.server.api.uri.UriResourceNavigation info)
        Specified by:
        visit in interface org.apache.olingo.server.core.RequestURLVisitor
        Overrides:
        visit in class org.apache.olingo.server.core.RequestURLHierarchyVisitor
      • visit

        public void visit​(org.apache.olingo.server.api.uri.UriResourceLambdaAll all)
        Specified by:
        visit in interface org.apache.olingo.server.core.RequestURLVisitor
        Overrides:
        visit in class org.apache.olingo.server.core.RequestURLHierarchyVisitor
      • visit

        public void visit​(org.apache.olingo.server.api.uri.UriResourceLambdaAny any)
        Specified by:
        visit in interface org.apache.olingo.server.core.RequestURLVisitor
        Overrides:
        visit in class org.apache.olingo.server.core.RequestURLHierarchyVisitor
      • visit

        public void visit​(org.apache.olingo.server.api.uri.UriResourceLambdaVariable resource)
        Specified by:
        visit in interface org.apache.olingo.server.core.RequestURLVisitor
        Overrides:
        visit in class org.apache.olingo.server.core.RequestURLHierarchyVisitor
      • visit

        public void visit​(org.apache.olingo.server.api.uri.UriResourceIt info)
        Specified by:
        visit in interface org.apache.olingo.server.core.RequestURLVisitor
        Overrides:
        visit in class org.apache.olingo.server.core.RequestURLHierarchyVisitor
      • visit

        public void visit​(org.apache.olingo.server.api.uri.UriResourceRoot info)
        Specified by:
        visit in interface org.apache.olingo.server.core.RequestURLVisitor
        Overrides:
        visit in class org.apache.olingo.server.core.RequestURLHierarchyVisitor
      • visit

        public void visit​(org.apache.olingo.server.api.uri.UriResourceEntitySet info)
        Specified by:
        visit in interface org.apache.olingo.server.core.RequestURLVisitor
        Overrides:
        visit in class org.apache.olingo.server.core.RequestURLHierarchyVisitor