Class OracleFilterToSQL

    • Field Detail

      • looseBBOXEnabled

        protected boolean looseBBOXEnabled
        Whether BBOX should be encoded as just a primary filter or primary+secondary
    • Method Detail

      • isLooseBBOXEnabled

        public boolean isLooseBBOXEnabled()
      • setLooseBBOXEnabled

        public void setLooseBBOXEnabled​(boolean looseBBOXEnabled)
      • visit

        public Object visit​(PropertyIsEqualTo filter,
                            Object extraData)
        Description copied from class: FilterToSQL
        Write the SQL for this kind of filter
        Specified by:
        visit in interface FilterVisitor
        Overrides:
        visit in class FilterToSQL
        Parameters:
        filter - the filter to visit
        extraData - extra data (unused by this method)
      • visit

        public Object visit​(Function function,
                            Object extraData)
        Description copied from class: FilterToSQL
        Writes sql for a function expression. By default it will write the call by using the same arguments provided to the GeoTools function, subclasses should override on a case by case basis if this behavior is not the desired one.
        Specified by:
        visit in interface ExpressionVisitor
        Overrides:
        visit in class FilterToSQL
        Parameters:
        function - a function expression
        See Also:
        FilterToSQL.getFunctionName(Function)
      • distillSameTypeGeometries

        protected Geometry distillSameTypeGeometries​(GeometryCollection coll,
                                                     Geometry original)
      • accumulateGeometries

        protected <T> void accumulateGeometries​(List<T> collection,
                                                Geometry g,
                                                Class<? extends T> target)
      • doSDOFilter

        protected void doSDOFilter​(Filter filter,
                                   Expression e1,
                                   Expression e2,
                                   Object extraData)
                            throws IOException
        Throws:
        IOException
      • doSDORelate

        protected void doSDORelate​(Filter filter,
                                   Expression e1,
                                   Expression e2,
                                   boolean swapped,
                                   Object extraData)
                            throws IOException
        Encodes an SDO relate
        Throws:
        IOException
      • escapeName

        public String escapeName​(String name)
        Description copied from class: FilterToSQL
        Surrounds a name with the SQL escape string.

        If the name contains the SQL escape string, the SQL escape string is duplicated.

        Overrides:
        escapeName in class FilterToSQL
      • encodeBinaryComparisonOperator

        protected void encodeBinaryComparisonOperator​(BinaryComparisonOperator filter,
                                                      Object extraData,
                                                      Expression left,
                                                      Expression right,
                                                      Class leftContext,
                                                      Class rightContext)
        Description copied from class: FilterToSQL
        Encode a BinaryComparisonOperator to SQL
        Overrides:
        encodeBinaryComparisonOperator in class FilterToSQL
        Parameters:
        filter - the comparison operator to be turned to SQL
        extraData - extraData
        left - left parameter of the binary operator
        right - right parameter of the binary operator
        leftContext - expression type of the right parameter used as context for the left parameter
        rightContext - expression type of the left parameter used as context for the right parameter
      • jsonExists

        public String jsonExists​(Function function)
      • visitLiteralGeometry

        protected void visitLiteralGeometry​(Literal expression)
                                     throws IOException
        Description copied from class: FilterToSQL
        Subclasses must implement this method in order to encode geometry filters according to the specific database implementation
        Overrides:
        visitLiteralGeometry in class FilterToSQL
        Throws:
        IOException