public class DataSourceQuery extends Object
| Constructor and Description |
|---|
DataSourceQuery()
Parameterless constructor called by Java2XML
|
DataSourceQuery(DataSource dataSource,
String query,
String name)
Constructs a DataSourceQuery that wraps a query string
(implementation-dependent) and a DataSource to apply it against.
|
| Modifier and Type | Method and 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
DataSourceQuery
|
void |
setDataSource(DataSource dataSource)
Called by Java2XML
|
void |
setQuery(String query)
Called by Java2XML
|
String |
toString()
Returns the name of this DataSourceQuery, suitable for use as a layer name.
|
public DataSourceQuery(DataSource dataSource, String query, String name)
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 namepublic DataSourceQuery()
public DataSource getDataSource()
public String getQuery()
public String toString()
public void setDataSource(DataSource dataSource)
public void setQuery(String query)
Copyright © 2015. All rights reserved.