Class ValueGetter.AsArray

java.lang.Object
org.apache.sis.internal.sql.feature.ValueGetter<Collection<?>>
org.apache.sis.internal.sql.feature.ValueGetter.AsArray
Enclosing class:
ValueGetter<T>

static final class ValueGetter.AsArray extends ValueGetter<Collection<?>>
A getter of values specified as Java array. This is okay for array of reasonable size. Should not be used for very large arrays.
  • Field Details

    • cmget

      public final ValueGetter<?> cmget
      The getter for components in the array, or null for automatic.
    • INSTANCE

      public static final ValueGetter.AsArray INSTANCE
      Accessor for components of automatic type.
  • Constructor Details

    • AsArray

      AsArray(ValueGetter<?> cmget)
      Creates a new getter of arrays.
  • Method Details

    • getValue

      public Collection<?> getValue(InfoStatements stmts, ResultSet source, int columnIndex) throws Exception
      Fetches the value from the specified column in the given result set.
      Specified by:
      getValue in class ValueGetter<Collection<?>>
      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:
      value in the given column. May be null.
      Throws:
      Exception - if an error occurred. May be an SQL error, a WKB parsing error, etc.