Class ObjectGetter
java.lang.Object
org.apache.sis.internal.sql.feature.ValueGetter<Object>
org.apache.sis.internal.sql.postgis.ObjectGetter
Decoder of object of arbitrary kinds.
- Since:
- 1.2
- Version:
- 1.2
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final ObjectGetter
The singleton instance.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) Gets the value in the column at specified index.Methods inherited from class org.apache.sis.internal.sql.feature.ValueGetter
toCollection
-
Field Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
ObjectGetter
private ObjectGetter()Creates the singleton instance.
-
-
Method Details
-
getValue
Gets the value in the column at specified index. The given result set must have its cursor position on the line to read. This method does not modify the cursor position.- Specified by:
getValue
in classValueGetter<Object>
- 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:
- Object value in the given column. May be
null
. - Throws:
Exception
- if an error occurred. May be an SQL error, a WKB parsing error, etc.
-