Class GetObjectExtractor<T>
- java.lang.Object
-
- org.hibernate.type.descriptor.jdbc.BasicExtractor<T>
-
- org.hibernate.type.descriptor.jdbc.internal.GetObjectExtractor<T>
-
- All Implemented Interfaces:
Serializable
,ValueExtractor<T>
- Direct Known Subclasses:
DB2GetObjectExtractor
public class GetObjectExtractor<T> extends BasicExtractor<T>
Support for extracting values directly through `getObject` JDBC driver calls.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GetObjectExtractor(JavaType<T> javaType, JavaTimeJdbcType jdbcType, Class<?> baseClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected T
doExtract(CallableStatement statement, int paramIndex, WrapperOptions options)
Perform the extraction.protected T
doExtract(CallableStatement statement, String name, WrapperOptions options)
Perform the extraction.protected T
doExtract(ResultSet rs, int paramIndex, WrapperOptions options)
Perform the extraction.-
Methods inherited from class org.hibernate.type.descriptor.jdbc.BasicExtractor
extract, extract, extract, getJavaType, getJdbcType
-
-
-
-
Constructor Detail
-
GetObjectExtractor
public GetObjectExtractor(JavaType<T> javaType, JavaTimeJdbcType jdbcType, Class<?> baseClass)
-
-
Method Detail
-
doExtract
protected T doExtract(ResultSet rs, int paramIndex, WrapperOptions options) throws SQLException
Description copied from class:BasicExtractor
Perform the extraction.Called from
BasicExtractor.extract(java.sql.ResultSet, int, org.hibernate.type.descriptor.WrapperOptions)
. Null checking of the value (as well as consultingResultSet.wasNull()
) is done there.- Specified by:
doExtract
in classBasicExtractor<T>
- Returns:
- The extracted value.
- Throws:
SQLException
- Indicates a problem access the result set
-
doExtract
protected T doExtract(CallableStatement statement, int paramIndex, WrapperOptions options) throws SQLException
Description copied from class:BasicExtractor
Perform the extraction.Called from
BasicExtractor.extract(java.sql.ResultSet, int, org.hibernate.type.descriptor.WrapperOptions)
. Null checking of the value (as well as consultingResultSet.wasNull()
) is done there.- Specified by:
doExtract
in classBasicExtractor<T>
- Returns:
- The extracted value.
- Throws:
SQLException
- Indicates a problem accessing the parameter value
-
doExtract
protected T doExtract(CallableStatement statement, String name, WrapperOptions options) throws SQLException
Description copied from class:BasicExtractor
Perform the extraction.Called from
BasicExtractor.extract(java.sql.ResultSet, int, org.hibernate.type.descriptor.WrapperOptions)
. Null checking of the value (as well as consultingResultSet.wasNull()
) is done there.- Specified by:
doExtract
in classBasicExtractor<T>
- Parameters:
statement
- The callable statement containing the output parametername
- The output parameter nameoptions
- The binding options- Returns:
- The extracted value.
- Throws:
SQLException
- Indicates a problem accessing the parameter value
-
-