Class ExtendedInfo

java.lang.Object
org.apache.sis.internal.sql.feature.InfoStatements
org.apache.sis.internal.sql.postgis.ExtendedInfo
All Implemented Interfaces:
AutoCloseable, Localized

final class ExtendedInfo extends InfoStatements
A specialization for PostGIS database of prepared statements about spatial information.
Since:
1.2
Version:
1.1
  • Field Details

    • geographyColumns

      private PreparedStatement geographyColumns
      A statement for fetching geometric information for a specific column. This statement is used for objects of type "Geography", which is a data type specific to PostGIS.
    • rasterColumns

      protected PreparedStatement rasterColumns
      A statement for fetching raster information for a specific column.
    • rasterReader

      private RasterReader rasterReader
      The object for reading a raster, or null if not yet created.
  • Constructor Details

    • ExtendedInfo

      ExtendedInfo(Database<?> session, Connection connection)
      Creates an initially empty PostgisStatements which will use the given connection for creating PreparedStatements.
  • Method Details

    • completeIntrospection

      public void completeIntrospection(TableReference source, Map<String,Column> columns) throws Exception
      Gets all geometry columns for the given table and sets the geometry information on the corresponding columns.
      Overrides:
      completeIntrospection in class InfoStatements
      Parameters:
      source - the table for which to get all geometry columns.
      columns - all columns for the specified table. Keys are column names.
      Throws:
      Exception
    • getRasterReader

      final RasterReader getRasterReader()
      Returns a reader for decoding PostGIS Raster binary format to grid coverage instances.
    • close

      public void close() throws SQLException
      Closes all prepared statements. This method does not close the connection.
      Specified by:
      close in interface AutoCloseable
      Overrides:
      close in class InfoStatements
      Throws:
      SQLException - if an error occurred while closing a connection.