Class DataSourceQuery
- java.lang.Object
-
- org.locationtech.jts.jump.io.datasource.DataSourceQuery
-
public class DataSourceQuery extends Object
A wrapper for a query string that attributes it with the DataSource to apply it against.
-
-
Constructor Summary
Constructors Constructor Description DataSourceQuery()
Parameterless constructor called by Java2XMLDataSourceQuery(DataSource dataSource, String query, String name)
Constructs a DataSourceQuery that wraps a query string (implementation-dependent) and a DataSource to apply it against.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataSource
getDataSource()
Returns the DataSource against which to apply the (implementation-dependent) query string.String
getQuery()
Returns the implementation-dependent query string wrapped by this DataSourceQueryvoid
setDataSource(DataSource dataSource)
Called by Java2XMLvoid
setQuery(String query)
Called by Java2XMLString
toString()
Returns the name of this DataSourceQuery, suitable for use as a layer name.
-
-
-
Constructor Detail
-
DataSourceQuery
public DataSourceQuery(DataSource dataSource, String query, String name)
Constructs a DataSourceQuery that wraps a query string (implementation-dependent) and a DataSource to apply it against.- Parameters:
query
- identifies the dataset; may take the form of a SQL statement, a table name, null (if there is only one dataset), or other formatname
- will be used for the layer name
-
DataSourceQuery
public DataSourceQuery()
Parameterless constructor called by Java2XML
-
-
Method Detail
-
getDataSource
public DataSource getDataSource()
Returns the DataSource against which to apply the (implementation-dependent) query string.
-
getQuery
public String getQuery()
Returns the implementation-dependent query string wrapped by this DataSourceQuery
-
toString
public String toString()
Returns the name of this DataSourceQuery, suitable for use as a layer name.
-
setDataSource
public void setDataSource(DataSource dataSource)
Called by Java2XML
-
setQuery
public void setQuery(String query)
Called by Java2XML
-
-