接口 ProcedureParameterExtractionAware<T>
-
- 所有已知实现类:
AbstractSingleColumnStandardBasicType,AbstractStandardBasicType,AdaptedImmutableType,AttributeConverterTypeAdapter,BigDecimalType,BigIntegerType,BinaryType,BlobType,BooleanType,ByteType,CalendarDateType,CalendarTimeType,CalendarType,CharacterArrayClobType,CharacterArrayNClobType,CharacterArrayType,CharacterNCharType,CharacterType,CharArrayType,ClassType,ClobType,ComponentType,CurrencyType,CustomType,DateType,DbTimestampType,DoubleType,DurationType,EmbeddedComponentType,FloatType,ImageType,InstantType,IntegerType,LocalDateTimeType,LocalDateType,LocaleType,LocalTimeType,LongType,MaterializedBlobType,MaterializedClobType,MaterializedNClobType,NClobType,NTextType,NumericBooleanType,OffsetDateTimeType,OffsetTimeType,PostgresUUIDType,PrimitiveCharacterArrayClobType,PrimitiveCharacterArrayNClobType,RowVersionType,SerializableToBlobType,SerializableType,ShortType,StandardBasicTypeTemplate,StringNVarcharType,StringType,TextType,TimestampType,TimeType,TimeZoneType,TrueFalseType,UrlType,UUIDBinaryType,UUIDCharType,WrappedMaterializedBlobType,WrapperBinaryType,YesNoType,ZonedDateTimeType
public interface ProcedureParameterExtractionAware<T>OptionalTypecontract for implementations that are aware of how to extract values from store procedure OUT/INOUT parameters.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 booleancanDoExtraction()Can the given instance of this type actually perform the parameter value extractions?Textract(CallableStatement statement, int startIndex, SharedSessionContractImplementor session)Perform the extractionTextract(CallableStatement statement, String[] paramNames, SharedSessionContractImplementor session)Perform the extraction
-
-
-
方法详细资料
-
canDoExtraction
boolean canDoExtraction()
Can the given instance of this type actually perform the parameter value extractions?- 返回:
trueindicates that @{link #extract} calls will not fail due toIllegalStateException.
-
extract
T extract(CallableStatement statement, int startIndex, SharedSessionContractImplementor session) throws SQLException
Perform the extraction- 参数:
statement- The CallableStatement from which to extract the parameter value(s).startIndex- The parameter index from which to start extracting; assumes the values (if multiple) are contiguoussession- The originating session- 返回:
- The extracted value.
- 抛出:
SQLException- Indicates an issue calling into the CallableStatementIllegalStateException- Thrown if this method is called on instances that returnfalseforcanDoExtraction()
-
extract
T extract(CallableStatement statement, String[] paramNames, SharedSessionContractImplementor session) throws SQLException
Perform the extraction- 参数:
statement- The CallableStatement from which to extract the parameter value(s).paramNames- The parameter names.session- The originating session- 返回:
- The extracted value.
- 抛出:
SQLException- Indicates an issue calling into the CallableStatementIllegalStateException- Thrown if this method is called on instances that returnfalseforcanDoExtraction()
-
-