类 BasicExtractor<J>
- java.lang.Object
-
- org.hibernate.type.descriptor.sql.BasicExtractor<J>
-
- 所有已实现的接口:
ValueExtractor<J>
public abstract class BasicExtractor<J> extends Object implements ValueExtractor<J>
Convenience base implementation ofValueExtractor- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 BasicExtractor(JavaTypeDescriptor<J> javaDescriptor, SqlTypeDescriptor sqlDescriptor)
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected abstract JdoExtract(CallableStatement statement, int index, WrapperOptions options)Perform the extraction.protected abstract JdoExtract(CallableStatement statement, String name, WrapperOptions options)Perform the extraction.protected abstract JdoExtract(ResultSet rs, String name, WrapperOptions options)Perform the extraction.Jextract(CallableStatement statement, int index, WrapperOptions options)Jextract(CallableStatement statement, String[] paramNames, WrapperOptions options)Jextract(ResultSet rs, String name, WrapperOptions options)Extract value from result setJavaTypeDescriptor<J>getJavaDescriptor()SqlTypeDescriptorgetSqlDescriptor()
-
-
-
构造器详细资料
-
BasicExtractor
public BasicExtractor(JavaTypeDescriptor<J> javaDescriptor, SqlTypeDescriptor sqlDescriptor)
-
-
方法详细资料
-
getJavaDescriptor
public JavaTypeDescriptor<J> getJavaDescriptor()
-
getSqlDescriptor
public SqlTypeDescriptor getSqlDescriptor()
-
extract
public J extract(ResultSet rs, String name, WrapperOptions options) throws SQLException
从接口复制的说明:ValueExtractorExtract value from result set- 指定者:
extract在接口中ValueExtractor<J>- 参数:
rs- The result set from which to extract the valuename- The name by which to extract the value from the result setoptions- The options- 返回:
- The extracted value
- 抛出:
SQLException- Indicates a JDBC error occurred.
-
doExtract
protected abstract J doExtract(ResultSet rs, String name, WrapperOptions options) throws SQLException
Perform the extraction. Called fromextract(java.sql.ResultSet, java.lang.String, org.hibernate.type.descriptor.WrapperOptions). Null checking of the value (as well as consultingResultSet.wasNull()) is done there.- 参数:
rs- The result setname- The value name in the result setoptions- The binding options- 返回:
- The extracted value.
- 抛出:
SQLException- Indicates a problem access the result set
-
extract
public J extract(CallableStatement statement, int index, WrapperOptions options) throws SQLException
- 指定者:
extract在接口中ValueExtractor<J>- 抛出:
SQLException
-
doExtract
protected abstract J doExtract(CallableStatement statement, int index, WrapperOptions options) throws SQLException
Perform the extraction. Called fromextract(java.sql.ResultSet, java.lang.String, org.hibernate.type.descriptor.WrapperOptions). Null checking of the value (as well as consultingResultSet.wasNull()) is done there.- 参数:
statement- The callable statement containing the output parameterindex- The index (position) of the output parameteroptions- The binding options- 返回:
- The extracted value.
- 抛出:
SQLException- Indicates a problem accessing the parameter value
-
extract
public J extract(CallableStatement statement, String[] paramNames, WrapperOptions options) throws SQLException
- 指定者:
extract在接口中ValueExtractor<J>- 抛出:
SQLException
-
doExtract
protected abstract J doExtract(CallableStatement statement, String name, WrapperOptions options) throws SQLException
Perform the extraction. Called fromextract(java.sql.ResultSet, java.lang.String, org.hibernate.type.descriptor.WrapperOptions). Null checking of the value (as well as consultingResultSet.wasNull()) is done there.- 参数:
statement- The callable statement containing the output parametername- The output parameter nameoptions- The binding options- 返回:
- The extracted value.
- 抛出:
SQLException- Indicates a problem accessing the parameter value
-
-