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(java.lang.String workspaceId, java.lang.String query, java.lang.Iterable<java.lang.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.java.util.List<java.lang.String>
getObjectIdFieldNames()
Returns an unmodifiable list of the object ID field names.SpatialReference
getSpatialReference()
Gets the spatial reference defining this workspace.java.lang.String
getSqlQuery()
Gets the SQL query used to define this workspace.java.lang.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(java.lang.String workspaceId, java.lang.String query, java.lang.Iterable<java.lang.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:
java.lang.IllegalArgumentException
- if workspaceId is null or emptyjava.lang.IllegalArgumentException
- if query is null or emptyjava.lang.IllegalArgumentException
- 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:
java.lang.IllegalArgumentException
- if geometryType is null- Since:
- 100.1.0
-
getObjectIdFieldNames
public java.util.List<java.lang.String> getObjectIdFieldNames()
Returns an unmodifiable list of the object ID field names.- Returns:
- the object ID field names
- Since:
- 100.1.0
-
getSqlQuery
public java.lang.String getSqlQuery()
Gets the SQL query used to define this workspace.- Returns:
- the SQL query
- Since:
- 100.1.0
-
getWorkspaceId
public java.lang.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
-
-