Class DataSourceQuery
java.lang.Object
com.vividsolutions.jump.io.datasource.DataSourceQuery
- Direct Known Subclasses:
SaveToDataStoreDataSourceQuery, SaveToPostGISDataSourceQuery
A wrapper for a query string that attributes it with the DataSource
to apply it against.
-
Constructor Summary
ConstructorsConstructorDescriptionParameterless 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
Modifier and TypeMethodDescriptionReturns the DataSource against which to apply the (implementation-dependent) query string.getQuery()Returns the implementation-dependent query string wrapped by this DataSourceQueryvoidsetDataSource(DataSource dataSource) Called by Java2XMLvoidCalled by Java2XMLtoString()Returns the name of this DataSourceQuery, suitable for use as a layer name.
-
Constructor Details
-
DataSourceQuery
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 Details
-
getDataSource
Returns the DataSource against which to apply the (implementation-dependent) query string.- Returns:
- the DataSource of this DataSourceQuery
-
getQuery
Returns the implementation-dependent query string wrapped by this DataSourceQuery- Returns:
- the Query String of this DataSourceQuery
-
toString
-
setDataSource
Called by Java2XML- Parameters:
dataSource- the DataSource to use for this DataSourceQuery
-
setQuery
Called by Java2XML- Parameters:
query- the query String to use for this DataSourceQuery
-