Package org.orbisgis.data.jdbc.dsl
Class BuilderResult
- java.lang.Object
-
- org.orbisgis.data.jdbc.dsl.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 ofIBuilderResult.- Author:
- Erwan Bocher (CNRS), Sylvain PALOMINOS (UBS 2019)
-
-
Constructor Summary
Constructors Constructor Description BuilderResult()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ObjectasType(Class<?> clazz)voideachRow(groovy.lang.Closure<Object> closure)protected abstract org.orbisgis.data.api.datasource.IJdbcDataSourcegetDataSource()Return the database to use to execute the query.protected abstract StringgetQuery()Return the query to execute.org.orbisgis.data.api.dataset.ISpatialTablegetSpatialTable()org.orbisgis.data.api.dataset.ITablegetTable()StringtoString()
-
-
-
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:
eachRowin interfaceorg.orbisgis.data.api.dsl.IBuilderResult- Throws:
Exception
-
asType
public Object asType(Class<?> clazz) throws Exception
- Specified by:
asTypein interfaceorg.orbisgis.data.api.dsl.IBuilderResult- Throws:
Exception
-
toString
public String toString()
-
getTable
public org.orbisgis.data.api.dataset.ITable getTable() throws Exception- Specified by:
getTablein interfaceorg.orbisgis.data.api.dsl.IBuilderResult- Throws:
Exception
-
-