Package org.hibernate.type.descriptor
Interface ValueExtractor<X>
- All Known Implementing Classes:
BasicExtractor
,DB2GetObjectExtractor
,GetObjectExtractor
,SDOGeometryValueExtractor
public interface ValueExtractor<X>
Contract for extracting values from a JDBC
ResultSet
or
from output the parameters of a CallableStatement
.- API Note:
- Extractors, as well as binders, should never apply conversions. Instead, callers of the extractor are expected to coordinate between the extraction and conversion.
-
Method Summary
Modifier and TypeMethodDescriptionextract
(CallableStatement statement, int paramIndex, WrapperOptions options) Extract value from a callable output parameter by indexextract
(CallableStatement statement, String paramName, WrapperOptions options) Extract value from a callable output parameter by nameextract
(ResultSet rs, int paramIndex, WrapperOptions options) Extract value from result set
-
Method Details
-
extract
Extract value from result set- Throws:
SQLException
- Indicates a JDBC error occurred.
-
extract
Extract value from a callable output parameter by index- Throws:
SQLException
- Indicates a JDBC error occurred.
-
extract
X extract(CallableStatement statement, String paramName, WrapperOptions options) throws SQLException Extract value from a callable output parameter by name- Throws:
SQLException
- Indicates a JDBC error occurred.
-