Class BuilderResult

  • All Implemented Interfaces:
    org.orbisgis.data.api.dsl.IBuilderResult
    Direct Known Subclasses:
    FilterBuilder, QueryBuilder

    public abstract class BuilderResult
    extends Object
    implements org.orbisgis.data.api.dsl.IBuilderResult
    Implementation of IBuilderResult.
    Author:
    Erwan Bocher (CNRS), Sylvain PALOMINOS (UBS 2019)
    • Constructor Detail

      • BuilderResult

        public BuilderResult()
    • Method Detail

      • getDataSource

        protected abstract org.orbisgis.data.api.datasource.IJdbcDataSource getDataSource()
        Return the database to use to execute the query.
        Returns:
        The database to use to execute the query.
      • getQuery

        protected abstract String getQuery()
        Return the query to execute.
        Returns:
        The query to execute.
      • eachRow

        public void eachRow​(groovy.lang.Closure<Object> closure)
                     throws Exception
        Specified by:
        eachRow in interface org.orbisgis.data.api.dsl.IBuilderResult
        Throws:
        Exception
      • asType

        public Object asType​(Class<?> clazz)
                      throws Exception
        Specified by:
        asType in interface org.orbisgis.data.api.dsl.IBuilderResult
        Throws:
        Exception
      • toString

        public String toString()
        Specified by:
        toString in interface org.orbisgis.data.api.dsl.IBuilderResult
        Overrides:
        toString in class Object
      • getTable

        public org.orbisgis.data.api.dataset.ITable getTable()
                                                      throws Exception
        Specified by:
        getTable in interface org.orbisgis.data.api.dsl.IBuilderResult
        Throws:
        Exception
      • getSpatialTable

        public org.orbisgis.data.api.dataset.ISpatialTable getSpatialTable()
                                                                    throws Exception
        Specified by:
        getSpatialTable in interface org.orbisgis.data.api.dsl.IBuilderResult
        Throws:
        Exception