Class 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 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 ID
        query - the SQL query
        oidFieldNames - the object ID field names
        Throws:
        java.lang.IllegalArgumentException - if workspaceId is null or empty
        java.lang.IllegalArgumentException - if query is null or empty
        java.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