com.esri.core.internal.value
Class QueryTableDataSource

java.lang.Object
  extended by com.esri.core.internal.value.DataSource
      extended by com.esri.core.internal.value.QueryTableDataSource

public class QueryTableDataSource
extends DataSource

The Class QueryTableDataSource is a layer/table that is defined by a SQL query.

Note:

  • When querying a table that stores geometry in the database native format the result is returned as a layer that can be used in any operation supported by dynamic layer. For example, use this layer in export operation by specifying a renderer.
  • When querying a table that stores geometry in the non-native format the result is returned as a table that can be used in query operations.
  • When querying a table that does not have geometry column, do not include geometryType and spatialReference.


    Nested Class Summary
     
    Nested classes/interfaces inherited from class com.esri.core.internal.value.DataSource
    DataSource.DataSourceType
     
    Constructor Summary
    QueryTableDataSource()
              Instantiates a new query table data source.
     
    Method Summary
     Geometry.Type getGeometryType()
              Gets the geometry type.
     String getOidFields()
              Gets the oid fields.
     String getQuery()
              Gets the query.
     SpatialReference getSpatialRef()
              Gets the spatial reference.
     String getWorkspaceId()
              Gets the workspace id.
     void setGeometryType(Geometry.Type geometryType)
              Sets the geometry type.
     void setOidFields(String oidFields)
              Sets the oid fields.
     void setQuery(String query)
              Sets the query.
     void setSpatialRef(SpatialReference spatialRef)
              Sets the spatial reference.
     void setWorkspaceId(String id)
              Sets the workspace id.
     String toJson()
               
     
    Methods inherited from class com.esri.core.internal.value.DataSource
    getType, setType
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    QueryTableDataSource

    public QueryTableDataSource()
    Instantiates a new query table data source.

    Method Detail

    getWorkspaceId

    public String getWorkspaceId()
    Gets the workspace id.

    Returns:
    the workspace id

    setWorkspaceId

    public void setWorkspaceId(String id)
    Sets the workspace id.

    Parameters:
    id - the new workspace id

    getQuery

    public String getQuery()
    Gets the query.

    Returns:
    the query

    setQuery

    public void setQuery(String query)
    Sets the query.

    Parameters:
    query - the new query

    getOidFields

    public String getOidFields()
    Gets the oid fields. This is a comma separated list of OID fields.

    Returns:
    the oid fields

    setOidFields

    public void setOidFields(String oidFields)
    Sets the oid fields. This is a comma separated list of OID fields.

    Parameters:
    oidFields - the new oid fields

    getGeometryType

    public Geometry.Type getGeometryType()
    Gets the geometry type.

    Returns:
    the geometry type

    setGeometryType

    public void setGeometryType(Geometry.Type geometryType)
    Sets the geometry type.

    Parameters:
    geometryType - the new geometry type

    getSpatialRef

    public SpatialReference getSpatialRef()
    Gets the spatial reference.

    Returns:
    the spatial reference

    setSpatialRef

    public void setSpatialRef(SpatialReference spatialRef)
    Sets the spatial reference.

    Parameters:
    spatialRef - the new spatial reference

    toJson

    public String toJson()
                  throws IOException
    Specified by:
    toJson in class DataSource
    Throws:
    IOException


    Copyright © 2012. All Rights Reserved.