Class ValueGetter.AsOffsetDateTime

java.lang.Object
org.apache.sis.internal.sql.feature.ValueGetter<OffsetDateTime>
org.apache.sis.internal.sql.feature.ValueGetter.AsOffsetDateTime
Enclosing class:
ValueGetter<T>

static final class ValueGetter.AsOffsetDateTime extends ValueGetter<OffsetDateTime>
A getter of OffsetDateTime values from the current row of a ResultSet. This getter delegates to ResultSet.getTimestamp(int), converts the object by a call to Timestamp.toInstant() then apply the time zone offset.
  • Field Details

  • Constructor Details

    • AsOffsetDateTime

      private AsOffsetDateTime()
  • Method Details

    • getValue

      public OffsetDateTime 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<OffsetDateTime>
      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