Class ObjectGetter

java.lang.Object
org.apache.sis.internal.sql.feature.ValueGetter<Object>
org.apache.sis.internal.sql.postgis.ObjectGetter

final class ObjectGetter extends ValueGetter<Object>
Decoder of object of arbitrary kinds.
Since:
1.2
Version:
1.2
  • Field Details

    • INSTANCE

      static final ObjectGetter INSTANCE
      The singleton instance.
  • Constructor Details

    • ObjectGetter

      private ObjectGetter()
      Creates the singleton instance.
  • Method Details

    • getValue

      public Object getValue(InfoStatements stmts, ResultSet source, int columnIndex) throws Exception
      Gets the value in the column at specified index. The given result set must have its cursor position on the line to read. This method does not modify the cursor position.
      Specified by:
      getValue in class ValueGetter<Object>
      Parameters:
      stmts - prepared statements for fetching CRS from SRID, or null if none.
      source - the result set from which to get the value.
      columnIndex - index of the column in which to get the value.
      Returns:
      Object value in the given column. May be null.
      Throws:
      Exception - if an error occurred. May be an SQL error, a WKB parsing error, etc.