Package org.hibernate.type
Class ConvertedBasicArrayType<T,S,E>
- java.lang.Object
-
- org.hibernate.type.AbstractStandardBasicType<T>
-
- org.hibernate.type.AbstractSingleColumnStandardBasicType<T>
-
- org.hibernate.type.ConvertedBasicArrayType<T,S,E>
-
- Type Parameters:
E
- the unconverted element typeT
- the unconverted array typeS
- the converted array type
- All Implemented Interfaces:
BasicType<T>
,Type<T>
,Serializable
,BasicValuedMapping
,Bindable
,JdbcMapping
,JdbcMappingContainer
,MappingModelExpressible
,MappingType
,SqlExpressible
,ValueMapping
,BasicDomainType<T>
,DomainType<T>
,SimpleDomainType<T>
,BindableType<T>
,OutputableType<T>
,ReturnableType<T>
,SqmExpressible<T>
,AdjustableBasicType<T>
,BasicPluralType<T,E>
,BasicType<T>
,JavaTypedExpressible
,ProcedureParameterExtractionAware<T>
,ProcedureParameterNamedBinder<T>
,Type
public class ConvertedBasicArrayType<T,S,E> extends AbstractSingleColumnStandardBasicType<T> implements AdjustableBasicType<T>, BasicPluralType<T,E>
Given aBasicValueConverter
for an array type,- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.Bindable
Bindable.JdbcValuesBiConsumer<X,Y>, Bindable.JdbcValuesConsumer
-
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Type
Type.PersistenceType
-
-
Constructor Summary
Constructors Constructor Description ConvertedBasicArrayType(BasicType<E> baseDescriptor, JdbcType arrayJdbcType, JavaType<T> arrayTypeDescriptor, BasicValueConverter<T,S> converter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
BasicType<E>
getElementType()
Get element typeJavaType<?>
getJdbcJavaType()
JdbcLiteralFormatter<T>
getJdbcLiteralFormatter()
The strategy for formatting values of this expressible type to a SQL literal.ValueBinder<T>
getJdbcValueBinder()
The strategy for binding values of this expressible type to JDBCPreparedStatement
s andCallableStatement
s.ValueExtractor<T>
getJdbcValueExtractor()
The strategy for extracting values of this expressible type from JDBC ResultSets, CallableStatements, etcString
getName()
Returns the abbreviated name of the type.BasicValueConverter<T,?>
getValueConverter()
Returns the converter that this basic type uses for transforming from the domain type, to the relational type, ornull
if there is no conversion.int
hashCode()
protected boolean
registerUnderJavaType()
<X> BasicType<X>
resolveIndicatedType(JdbcTypeIndicators indicators, JavaType<X> domainJtd)
Perform the adjustment-
Methods inherited from class org.hibernate.type.AbstractSingleColumnStandardBasicType
nullSafeSet
-
Methods inherited from class org.hibernate.type.AbstractStandardBasicType
assemble, beforeAssemble, canDoExtraction, canDoSetting, compare, deepCopy, deepCopy, disassemble, extract, extract, fromString, getCastType, getColumnSpan, getHashCode, getHashCode, getJavaType, getJavaTypeDescriptor, getJdbcType, getMutabilityPlan, getRegistrationKeys, getReturnedClass, getSqlTypeCodes, getTypeForEqualsHashCode, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeSet, nullSafeSet, nullSafeSet, nullSafeSet, replace, replace, toColumnNullness, toLoggableString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.metamodel.model.domain.BasicDomainType
areEqual, getPersistenceType
-
Methods inherited from interface org.hibernate.type.BasicType
compare, disassemble, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcType, getCheckCondition, getExpressibleJavaType, getJavaTypeDescriptor, getJdbcMapping, getJdbcMapping, getJdbcTypeCount, getMappedJavaType, getMappedType, getRegistrationKeys, getSingleJdbcMapping
-
Methods inherited from interface org.hibernate.metamodel.mapping.BasicValuedMapping
addToCacheKey
-
Methods inherited from interface org.hibernate.metamodel.mapping.Bindable
forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue
-
Methods inherited from interface org.hibernate.metamodel.model.domain.DomainType
getSqmType, getTupleLength
-
Methods inherited from interface org.hibernate.metamodel.mapping.JdbcMapping
convertToDomainValue, convertToRelationalValue, getCastType, getJdbcType
-
Methods inherited from interface org.hibernate.query.OutputableType
canDoExtraction, extract, extract, getJdbcType
-
Methods inherited from interface org.hibernate.metamodel.model.domain.SimpleDomainType
getBindableJavaType
-
Methods inherited from interface org.hibernate.query.sqm.SqmExpressible
getRelationalJavaType, getTypeName, isInstance, resolveExpressible
-
Methods inherited from interface jakarta.persistence.metamodel.Type
getJavaType
-
Methods inherited from interface org.hibernate.type.Type
assemble, beforeAssemble, compare, deepCopy, disassemble, disassemble, getColumnSpan, getHashCode, getHashCode, getReturnedClass, getReturnedClassName, getSqlTypeCodes, getTypeForEqualsHashCode, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeSet, nullSafeSet, replace, replace, toColumnNullness, toLoggableString
-
Methods inherited from interface org.hibernate.metamodel.mapping.ValueMapping
treatAs
-
-
-
-
Method Detail
-
getElementType
public BasicType<E> getElementType()
Description copied from interface:BasicPluralType
Get element type- Specified by:
getElementType
in interfaceBasicPluralType<T,S>
-
getName
public String getName()
Description copied from interface:Type
Returns the abbreviated name of the type.
-
registerUnderJavaType
protected boolean registerUnderJavaType()
- Overrides:
registerUnderJavaType
in classAbstractStandardBasicType<T>
-
resolveIndicatedType
public <X> BasicType<X> resolveIndicatedType(JdbcTypeIndicators indicators, JavaType<X> domainJtd)
Description copied from interface:AdjustableBasicType
Perform the adjustment- Specified by:
resolveIndicatedType
in interfaceAdjustableBasicType<T>
-
getValueConverter
public BasicValueConverter<T,?> getValueConverter()
Description copied from interface:JdbcMapping
Returns the converter that this basic type uses for transforming from the domain type, to the relational type, ornull
if there is no conversion.- Specified by:
getValueConverter
in interfaceBasicType<T>
- Specified by:
getValueConverter
in interfaceJdbcMapping
-
getJdbcJavaType
public JavaType<?> getJdbcJavaType()
- Specified by:
getJdbcJavaType
in interfaceJdbcMapping
-
getJdbcValueExtractor
public ValueExtractor<T> getJdbcValueExtractor()
Description copied from interface:JdbcMapping
The strategy for extracting values of this expressible type from JDBC ResultSets, CallableStatements, etc- Specified by:
getJdbcValueExtractor
in interfaceBasicType<T>
- Specified by:
getJdbcValueExtractor
in interfaceJdbcMapping
- Overrides:
getJdbcValueExtractor
in classAbstractStandardBasicType<T>
-
getJdbcValueBinder
public ValueBinder<T> getJdbcValueBinder()
Description copied from interface:JdbcMapping
The strategy for binding values of this expressible type to JDBCPreparedStatement
s andCallableStatement
s.- Specified by:
getJdbcValueBinder
in interfaceBasicType<T>
- Specified by:
getJdbcValueBinder
in interfaceJdbcMapping
- Overrides:
getJdbcValueBinder
in classAbstractStandardBasicType<T>
-
getJdbcLiteralFormatter
public JdbcLiteralFormatter<T> getJdbcLiteralFormatter()
Description copied from interface:JdbcMapping
The strategy for formatting values of this expressible type to a SQL literal.- Specified by:
getJdbcLiteralFormatter
in interfaceBasicType<T>
- Specified by:
getJdbcLiteralFormatter
in interfaceJdbcMapping
- Overrides:
getJdbcLiteralFormatter
in classAbstractStandardBasicType<T>
-
-