java.lang.Object
com.esri.arcgisruntime.layers.SublayerSource
com.esri.arcgisruntime.layers.TableQuerySublayerSource
Table query sublayer source is a layer/table that is defined by a SQL query.
- Since:
- 100.1.0
-
Constructor Summary
ConstructorDescriptionTableQuerySublayerSource
(String workspaceId, String query, Iterable<String> oidFieldNames) Creates a table query sublayer source based on a Geodatabase workspace. -
Method Summary
Modifier and TypeMethodDescriptionGets the geometry type.Returns an unmodifiable list of the object ID field names.Gets the spatial reference defining this workspace.Gets the SQL query used to define this workspace.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 Details
-
TableQuerySublayerSource
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 Details
-
getGeometryType
Gets the geometry type.- Returns:
- the geometry type
- Since:
- 100.1.0
-
setGeometryType
Sets the geometry type.- Parameters:
geometryType
- the geometry type- Throws:
IllegalArgumentException
- if geometryType is null- Since:
- 100.1.0
-
getObjectIdFieldNames
Returns an unmodifiable list of the object ID field names.- Returns:
- the object ID field names
- Since:
- 100.1.0
-
getSqlQuery
Gets the SQL query used to define this workspace.- Returns:
- the SQL query
- Since:
- 100.1.0
-
getWorkspaceId
Gets the workspace ID.- Returns:
- the workspace ID
- Since:
- 100.1.0
-
getSpatialReference
Gets the spatial reference defining this workspace.- Returns:
- the spatial reference
- Since:
- 100.1.0
-
setSpatialReference
Sets the spatial reference for the resulting sublayer.- Parameters:
spatialReference
- the spatial reference- Since:
- 100.1.0
-