Class ValueGetter.AsBoolean
java.lang.Object
org.apache.sis.internal.sql.feature.ValueGetter<Boolean>
org.apache.sis.internal.sql.feature.ValueGetter.AsBoolean
- Enclosing class:
- ValueGetter<T>
A getter of signed
Boolean values from the current row of a ResultSet.
This getter delegates to ResultSet.getBoolean(int) and wraps the result if the
value is not null.-
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 TypeFieldDescriptionstatic final ValueGetter.AsBooleanThe unique instance of this accessor.Fields inherited from class org.apache.sis.internal.sql.feature.ValueGetter
valueType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValue(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
-
INSTANCE
The unique instance of this accessor.
-
-
Constructor Details
-
AsBoolean
private AsBoolean()
-
-
Method Details
-
getValue
public Boolean getValue(InfoStatements stmts, ResultSet source, int columnIndex) throws SQLException Fetches the value from the specified column in the given result set.- Specified by:
getValuein classValueGetter<Boolean>- Parameters:
stmts- prepared statements for fetching CRS from SRID, ornullif 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
-