Class ODataSQLBuilder

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

    public class ODataSQLBuilder
    extends org.apache.olingo.server.core.RequestURLHierarchyVisitor
    • Constructor Summary

      Constructors 
      Constructor Description
      ODataSQLBuilder​(org.apache.olingo.server.api.OData odata, MetadataStore metadata, boolean prepared, boolean aliasedGroups, String baseURI, org.apache.olingo.server.api.ServiceMetadata serviceMetadata)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void checkExpandLevel​(int expandLevel)  
      Delete delete()  
      DocumentNode getContext()  
      String getNextToken()  
      List<SQLParameter> getParameters()  
      Integer getSkip()  
      Integer getTop()  
      boolean hasNavigation()  
      boolean includeTotalSize()  
      Insert insert​(org.apache.olingo.commons.api.edm.EdmEntityType entityType, org.apache.olingo.commons.api.data.Entity entity, List<org.apache.olingo.server.api.uri.UriParameter> keys, boolean prepared)  
      Query selectQuery()  
      Query selectWithEntityKey​(org.apache.olingo.commons.api.edm.EdmEntityType entityType, org.apache.olingo.commons.api.data.Entity entity, Map<String,​Object> generatedKeys, List<org.teiid.olingo.service.TeiidServiceHandler.ExpandNode> expand)  
      void setOperationParameterValueProvider​(org.teiid.olingo.service.TeiidServiceHandler.OperationParameterValueProvider parameters)  
      Update update​(org.apache.olingo.commons.api.edm.EdmEntityType entityType, org.apache.olingo.commons.api.data.Entity entity, boolean prepared)  
      Update updateProperty​(org.apache.olingo.commons.api.edm.EdmProperty edmProperty, org.apache.olingo.commons.api.data.Property property, boolean prepared, boolean rawValue)  
      Update updateStreamProperty​(org.apache.olingo.commons.api.edm.EdmProperty edmProperty, InputStream content)  
      void visit​(org.apache.olingo.server.api.uri.queryoption.ApplyOption apply)  
      void visit​(org.apache.olingo.server.api.uri.queryoption.ApplyOption apply, ApplyDocumentNode currentContext)  
      void visit​(org.apache.olingo.server.api.uri.queryoption.CountOption info)  
      void visit​(org.apache.olingo.server.api.uri.queryoption.ExpandOption option)  
      void visit​(org.apache.olingo.server.api.uri.queryoption.FilterOption info)  
      void visit​(org.apache.olingo.server.api.uri.queryoption.FormatOption info)  
      void visit​(org.apache.olingo.server.api.uri.queryoption.OrderByOption option)  
      void visit​(org.apache.olingo.server.api.uri.queryoption.SearchOption option)  
      void visit​(org.apache.olingo.server.api.uri.queryoption.SelectOption option)  
      void visit​(org.apache.olingo.server.api.uri.queryoption.SkipOption option)  
      void visit​(org.apache.olingo.server.api.uri.queryoption.SkipTokenOption option)  
      void visit​(org.apache.olingo.server.api.uri.queryoption.TopOption option)  
      void visit​(org.apache.olingo.server.api.uri.UriInfoAll info)  
      void visit​(org.apache.olingo.server.api.uri.UriInfoBatch info)  
      void visit​(org.apache.olingo.server.api.uri.UriInfoCrossjoin info)  
      void visit​(org.apache.olingo.server.api.uri.UriInfoEntityId info)  
      void visit​(org.apache.olingo.server.api.uri.UriInfoMetadata info)  
      void visit​(org.apache.olingo.server.api.uri.UriInfoService info)  
      void visit​(org.apache.olingo.server.api.uri.UriResourceAction info)  
      void visit​(org.apache.olingo.server.api.uri.UriResourceComplexProperty info)  
      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.UriResourceFunction info)  
      void visit​(org.apache.olingo.server.api.uri.UriResourceIt info)  
      void visit​(org.apache.olingo.server.api.uri.UriResourceLambdaAll info)  
      void visit​(org.apache.olingo.server.api.uri.UriResourceLambdaAny info)  
      void visit​(org.apache.olingo.server.api.uri.UriResourceLambdaVariable info)  
      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.UriResourceRef info)  
      void visit​(org.apache.olingo.server.api.uri.UriResourceRoot info)  
      void visit​(org.apache.olingo.server.api.uri.UriResourceSingleton info)  
      void visit​(org.apache.olingo.server.api.uri.UriResourceValue info)  
      • Methods inherited from class org.apache.olingo.server.core.RequestURLHierarchyVisitor

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

      • ODataSQLBuilder

        public ODataSQLBuilder​(org.apache.olingo.server.api.OData odata,
                               MetadataStore metadata,
                               boolean prepared,
                               boolean aliasedGroups,
                               String baseURI,
                               org.apache.olingo.server.api.ServiceMetadata serviceMetadata)
    • Method Detail

      • includeTotalSize

        public boolean includeTotalSize()
      • getSkip

        public Integer getSkip()
      • hasNavigation

        public boolean hasNavigation()
      • selectQuery

        public Query selectQuery()
                          throws TeiidException,
                                 org.apache.olingo.server.api.ODataLibraryException,
                                 org.apache.olingo.server.api.ODataApplicationException
        Throws:
        TeiidException
        org.apache.olingo.server.api.ODataLibraryException
        org.apache.olingo.server.api.ODataApplicationException
      • 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
      • visit

        public void visit​(org.apache.olingo.server.api.uri.queryoption.SkipOption 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.queryoption.TopOption 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.queryoption.CountOption 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.queryoption.SelectOption 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.queryoption.OrderByOption 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.queryoption.FilterOption 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.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.UriResourcePrimitiveProperty info)
        Specified by:
        visit in interface org.apache.olingo.server.core.RequestURLVisitor
        Overrides:
        visit in class org.apache.olingo.server.core.RequestURLHierarchyVisitor
      • getNextToken

        public String getNextToken()
      • visit

        public void visit​(org.apache.olingo.server.api.uri.queryoption.SkipTokenOption 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.queryoption.SearchOption option)
        Specified by:
        visit in interface org.apache.olingo.server.core.RequestURLVisitor
        Overrides:
        visit in class org.apache.olingo.server.core.RequestURLHierarchyVisitor
      • insert

        public Insert insert​(org.apache.olingo.commons.api.edm.EdmEntityType entityType,
                             org.apache.olingo.commons.api.data.Entity entity,
                             List<org.apache.olingo.server.api.uri.UriParameter> keys,
                             boolean prepared)
                      throws TeiidException
        Throws:
        TeiidException
      • selectWithEntityKey

        public Query selectWithEntityKey​(org.apache.olingo.commons.api.edm.EdmEntityType entityType,
                                         org.apache.olingo.commons.api.data.Entity entity,
                                         Map<String,​Object> generatedKeys,
                                         List<org.teiid.olingo.service.TeiidServiceHandler.ExpandNode> expand)
                                  throws TeiidException
        Throws:
        TeiidException
      • update

        public Update update​(org.apache.olingo.commons.api.edm.EdmEntityType entityType,
                             org.apache.olingo.commons.api.data.Entity entity,
                             boolean prepared)
                      throws TeiidException
        Throws:
        TeiidException
      • updateProperty

        public Update updateProperty​(org.apache.olingo.commons.api.edm.EdmProperty edmProperty,
                                     org.apache.olingo.commons.api.data.Property property,
                                     boolean prepared,
                                     boolean rawValue)
                              throws TeiidException
        Throws:
        TeiidException
      • delete

        public Delete delete()
      • visit

        public void visit​(org.apache.olingo.server.api.uri.UriInfoService 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.UriInfoAll 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.UriInfoBatch 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.UriInfoCrossjoin 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.UriInfoMetadata 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.queryoption.ExpandOption 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.queryoption.FormatOption 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.queryoption.ApplyOption apply)
        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.queryoption.ApplyOption apply,
                          ApplyDocumentNode currentContext)
      • visit

        public void visit​(org.apache.olingo.server.api.uri.UriInfoEntityId 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.UriResourceRef 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.UriResourceValue 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.UriResourceAction 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.UriResourceFunction 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.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.UriResourceLambdaAll 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.UriResourceLambdaAny 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.UriResourceLambdaVariable 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.UriResourceSingleton 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.UriResourceComplexProperty info)
        Specified by:
        visit in interface org.apache.olingo.server.core.RequestURLVisitor
        Overrides:
        visit in class org.apache.olingo.server.core.RequestURLHierarchyVisitor
      • setOperationParameterValueProvider

        public void setOperationParameterValueProvider​(org.teiid.olingo.service.TeiidServiceHandler.OperationParameterValueProvider parameters)