Package com.esri.arcgisruntime.layers
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 an SQL query.- Since:
- 100.1.0
-
-
Constructor Summary
Constructors Constructor Description TableQuerySublayerSource(String workspaceId, String query, Iterable<String> oidFieldNames)
Creates a table query sublayer source based on a Geodatabase workspace.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeometryType
getGeometryType()
Gets the geometry type.List<String>
getObjectIdFieldNames()
Returns an unmodifiable list of the object ID field names.SpatialReference
getSpatialReference()
Gets the spatial reference defining this workspace.String
getSqlQuery()
Gets the SQL query used to define this workspace.String
getWorkspaceId()
Gets the workspace ID.void
setGeometryType(GeometryType geometryType)
Sets the geometry type.void
setSpatialReference(SpatialReference spatialReference)
Sets the spatial reference for the resulting sublayer.
-
-
-
Constructor Detail
-
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 IDquery
- the SQL queryoidFieldNames
- the object ID field names- Throws:
IllegalArgumentException
- if workspaceId is null or emptyIllegalArgumentException
- if query is null or emptyIllegalArgumentException
- if oidFields is null or empty- Since:
- 100.1.0
-
-
Method Detail
-
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
-
-