Package org.hibernate.type.descriptor
Interface ValueExtractor<X>
-
- All Known Implementing Classes:
BasicExtractor
public interface ValueExtractor<X>Contract for extracting value via JDBC (fromResultSetor as output param fromCallableStatement).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Xextract(CallableStatement statement, int index, WrapperOptions options)Xextract(CallableStatement statement, String[] paramNames, WrapperOptions options)Xextract(ResultSet rs, String name, WrapperOptions options)Extract value from result set
-
-
-
Method Detail
-
extract
X extract(ResultSet rs, String name, WrapperOptions options) throws SQLException
Extract value from result set- Parameters:
rs- The result set from which to extract the valuename- The name by which to extract the value from the result setoptions- The options- Returns:
- The extracted value
- Throws:
SQLException- Indicates a JDBC error occurred.
-
extract
X extract(CallableStatement statement, int index, WrapperOptions options) throws SQLException
- Throws:
SQLException
-
extract
X extract(CallableStatement statement, String[] paramNames, WrapperOptions options) throws SQLException
- Throws:
SQLException
-
-