public class QueryDataSource
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Method and Description |
---|---|
static QueryDataSource |
create()
Creates a new QueryDataSource object.
|
static QueryDataSource |
create(com.google.gwt.core.client.JavaScriptObject jso)
Creates a new QueryDataSource object.
|
Geometry.GeometryType |
getGeometryType()
The geometry type of the data source.
|
com.google.gwt.core.client.JavaScriptObject |
getJson()
Converts object to its ArcGIS Server JSON representation.
|
com.google.gwt.core.client.JsArrayString |
getOidFields()
An array of field names that define a unique identifier for the feature.
|
java.lang.String |
getQuery()
The SQL query string that defines the data source output.
|
SpatialReference |
getSpatialReference()
The spatial reference for the data source.
|
java.lang.String |
getWorkspaceId()
The workspace id for the registered file geodatabase, SDE or Shapefile workspace.
|
void |
setGeometryType(Geometry.GeometryType geometryType)
Set the geometry type.
|
void |
setOidFields(java.lang.String[] oidFields)
Set the oid fields.
|
void |
setQuery(java.lang.String query)
Set the sql query.
|
void |
setSpatialReference(SpatialReference spatialReference)
Set the spatial reference.
|
void |
setWorkspaceId(java.lang.String workspaceId)
Set the workspace id.
|
public static QueryDataSource create()
public static QueryDataSource create(com.google.gwt.core.client.JavaScriptObject jso)
jso
- - JSON object representing the QueryDataSource.public final Geometry.GeometryType getGeometryType()
public final void setGeometryType(Geometry.GeometryType geometryType)
geometryType
- - The geometry type of the data source. Required if the specified data source
has a geometry column.public final com.google.gwt.core.client.JsArrayString getOidFields()
public final void setOidFields(java.lang.String[] oidFields)
oidFields
- - An array of field names that define a unique identifier for the feature. The
combiniation of one or more fields will be used to generate a unique identifier for the feature.public final java.lang.String getQuery()
public final void setQuery(java.lang.String query)
query
- - The SQL query string that defines the data source output.public final SpatialReference getSpatialReference()
public final void setSpatialReference(SpatialReference spatialReference)
spatialReference
- - The spatial reference for the data source. Required if the specified data
source has a geometry column.public final java.lang.String getWorkspaceId()
public final void setWorkspaceId(java.lang.String workspaceId)
workspaceId
- - The workspace id for the registered file geodatabase, SDE or Shapefile workspace.public final com.google.gwt.core.client.JavaScriptObject getJson()