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>
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.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.internal.sql.feature.ValueGetter
ValueGetter.AsArray, ValueGetter.AsBigDecimal, ValueGetter.AsBoolean, ValueGetter.AsByte, ValueGetter.AsBytes, ValueGetter.AsDate, ValueGetter.AsDouble, ValueGetter.AsFloat, ValueGetter.AsInstant, ValueGetter.AsInteger, ValueGetter.AsLocalTime, ValueGetter.AsLong, ValueGetter.AsObject, ValueGetter.AsOffsetDateTime, ValueGetter.AsOffsetTime, ValueGetter.AsShort, ValueGetter.AsString
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BinaryEncoding
The encoding of bytes returned by JDBC driver.static final ValueGetter.AsBytes
static final ValueGetter.AsBytes
The instance of this accessor for array of bytes without encoding.Fields inherited from class org.apache.sis.internal.sql.feature.ValueGetter
valueType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getValue
(InfoStatements stmts, ResultSet source, int columnIndex) Fetches the value from the specified column in the given result set.Methods inherited from class org.apache.sis.internal.sql.feature.ValueGetter
toCollection
-
Field Details
-
encoding
The encoding of bytes returned by JDBC driver. -
INSTANCE
The instance of this accessor for array of bytes without encoding. -
HEXADECIMAL
-
-
Constructor Details
-
AsBytes
-
-
Method Details
-
getValue
Fetches the value from the specified column in the given result set.- Specified by:
getValue
in classValueGetter<byte[]>
- Parameters:
stmts
- prepared statements for fetching CRS from SRID, ornull
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
-