Package org.hibernate.type
Interface ProcedureParameterExtractionAware<T>
-
- All Known Implementing Classes:
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
,GeolatteGeometryType
,ImageType
,InstantType
,IntegerType
,JTSGeometryType
,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>
OptionalType
contract for implementations that are aware of how to extract values from store procedure OUT/INOUT parameters.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canDoExtraction()
Can the given instance of this type actually perform the parameter value extractions?T
extract(java.sql.CallableStatement statement, int startIndex, SharedSessionContractImplementor session)
Perform the extractionT
extract(java.sql.CallableStatement statement, java.lang.String[] paramNames, SharedSessionContractImplementor session)
Perform the extraction
-
-
-
Method Detail
-
canDoExtraction
boolean canDoExtraction()
Can the given instance of this type actually perform the parameter value extractions?- Returns:
true
indicates that @{link #extract} calls will not fail due toIllegalStateException
.
-
extract
T extract(java.sql.CallableStatement statement, int startIndex, SharedSessionContractImplementor session) throws java.sql.SQLException
Perform the extraction- Parameters:
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- Returns:
- The extracted value.
- Throws:
java.sql.SQLException
- Indicates an issue calling into the CallableStatementjava.lang.IllegalStateException
- Thrown if this method is called on instances that returnfalse
forcanDoExtraction()
-
extract
T extract(java.sql.CallableStatement statement, java.lang.String[] paramNames, SharedSessionContractImplementor session) throws java.sql.SQLException
Perform the extraction- Parameters:
statement
- The CallableStatement from which to extract the parameter value(s).paramNames
- The parameter names.session
- The originating session- Returns:
- The extracted value.
- Throws:
java.sql.SQLException
- Indicates an issue calling into the CallableStatementjava.lang.IllegalStateException
- Thrown if this method is called on instances that returnfalse
forcanDoExtraction()
-
-