Class TableQuerySublayerSource

java.lang.Object
com.esri.arcgisruntime.layers.SublayerSource
com.esri.arcgisruntime.layers.TableQuerySublayerSource

public final class TableQuerySublayerSource extends SublayerSource
Table query sublayer source is a layer/table that is defined by a SQL query.
Since:
100.1.0
  • Constructor Details

    • TableQuerySublayerSource

      public TableQuerySublayerSource(String workspaceId, String query, Iterable<String> oidFieldNames)
      Creates a table query sublayer source based on a Geodatabase workspace.
      Parameters:
      workspaceId - the workspace ID
      query - the SQL query
      oidFieldNames - the object ID field names
      Throws:
      IllegalArgumentException - if workspaceId is null or empty
      IllegalArgumentException - if query is null or empty
      IllegalArgumentException - if oidFields is null or empty
      Since:
      100.1.0
  • Method Details

    • getGeometryType

      public GeometryType getGeometryType()
      Gets the geometry type.
      Returns:
      the geometry type
      Since:
      100.1.0
    • setGeometryType

      public void setGeometryType(GeometryType geometryType)
      Sets the geometry type.
      Parameters:
      geometryType - the geometry type
      Throws:
      IllegalArgumentException - if geometryType is null
      Since:
      100.1.0
    • getObjectIdFieldNames

      public List<String> getObjectIdFieldNames()
      Returns an unmodifiable list of the object ID field names.
      Returns:
      the object ID field names
      Since:
      100.1.0
    • getSqlQuery

      public String getSqlQuery()
      Gets the SQL query used to define this workspace.
      Returns:
      the SQL query
      Since:
      100.1.0
    • getWorkspaceId

      public String getWorkspaceId()
      Gets the workspace ID.
      Returns:
      the workspace ID
      Since:
      100.1.0
    • getSpatialReference

      public SpatialReference getSpatialReference()
      Gets the spatial reference defining this workspace.
      Returns:
      the spatial reference
      Since:
      100.1.0
    • setSpatialReference

      public void setSpatialReference(SpatialReference spatialReference)
      Sets the spatial reference for the resulting sublayer.
      Parameters:
      spatialReference - the spatial reference
      Since:
      100.1.0