Class ValueGetter.AsBytes

java.lang.Object
org.apache.sis.internal.sql.feature.ValueGetter<byte[]>
org.apache.sis.internal.sql.feature.ValueGetter.AsBytes
Enclosing class:
ValueGetter<T>

static final class ValueGetter.AsBytes extends ValueGetter<byte[]>
A getter of byte[] values from the current row of a ResultSet. This getter delegates to ResultSet.getBytes(int) and returns that value with no change.
  • Field Details

    • encoding

      private final BinaryEncoding encoding
      The encoding of bytes returned by JDBC driver.
    • INSTANCE

      public static final ValueGetter.AsBytes INSTANCE
      The instance of this accessor for array of bytes without encoding.
    • HEXADECIMAL

      public static final ValueGetter.AsBytes HEXADECIMAL
  • Constructor Details

  • Method Details

    • getValue

      public byte[] getValue(InfoStatements stmts, ResultSet source, int columnIndex) throws SQLException
      Fetches the value from the specified column in the given result set.
      Specified by:
      getValue in class ValueGetter<byte[]>
      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:
      SQLException