Package org.hibernate.type
Interface OutputableType<J>
- All Superinterfaces:
BindableType<J>,Type<J>
- All Known Subinterfaces:
AdjustableBasicType<J>,BasicDomainType<J>,BasicPluralType<C,,E> BasicType<T>,ConvertedBasicType<J>,DiscriminatorType<O>,ProcedureParameterExtractionAware<T>
- All Known Implementing Classes:
AbstractSingleColumnStandardBasicType,AbstractStandardBasicType,BasicArrayType,BasicCollectionType,BasicTypeImpl,BasicTypeImpl,BottomType,ComponentType,ConvertedBasicArrayType,ConvertedBasicCollectionType,ConvertedBasicTypeImpl,CustomMutabilityConvertedBasicTypeImpl,CustomMutabilityConvertedPrimitiveBasicTypeImpl,CustomType,DiscriminatorType,DiscriminatorTypeImpl,EmbeddedComponentType,ImmutableNamedBasicTypeImpl,JavaObjectType,NamedBasicTypeImpl,NullType,PrimitiveBasicTypeImpl,QueryParameterJavaObjectType,SerializableType,StandardBasicTypeTemplate,UserComponentType
Specialization of
DomainType for types that
can be used as a parameter output for a ProcedureCall.- API Note:
- We assume a type that maps to exactly one SQL value, hence
getJdbcType()
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Type
Type.PersistenceType -
Method Summary
Modifier and TypeMethodDescriptionbooleanCan the given instance of this type actually perform the parameter value extractions?extract(CallableStatement statement, int paramIndex, SharedSessionContractImplementor session) Perform the extractionextract(CallableStatement statement, String paramName, SharedSessionContractImplementor session) Perform the extractionDescriptor for the SQL type mapped by this type.Methods inherited from interface org.hibernate.type.BindableType
resolveExpressibleMethods inherited from interface jakarta.persistence.metamodel.Type
getJavaType, getPersistenceType
-
Method Details
-
canDoExtraction
boolean canDoExtraction()Can the given instance of this type actually perform the parameter value extractions?- Returns:
trueindicates thatextract(java.sql.CallableStatement, int, org.hibernate.engine.spi.SharedSessionContractImplementor)calls will not fail due toIllegalStateException.
-
getJdbcType
JdbcType getJdbcType()Descriptor for the SQL type mapped by this type.
-