Class AbstractArrayJavaType<T,E>
- java.lang.Object
-
- org.hibernate.type.descriptor.java.AbstractClassJavaType<T>
-
- org.hibernate.type.descriptor.java.AbstractArrayJavaType<T,E>
-
- All Implemented Interfaces:
Serializable,BasicJavaType<T>,BasicPluralJavaType<E>,JavaType<T>
- Direct Known Subclasses:
ArrayJavaType,BooleanPrimitiveArrayJavaType,DoublePrimitiveArrayJavaType,FloatPrimitiveArrayJavaType,IntegerPrimitiveArrayJavaType,LongPrimitiveArrayJavaType,ShortPrimitiveArrayJavaType
public abstract class AbstractArrayJavaType<T,E> extends AbstractClassJavaType<T> implements BasicPluralJavaType<E>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.type.descriptor.java.JavaType
JavaType.CoercionContext
-
-
Constructor Summary
Constructors Constructor Description AbstractArrayJavaType(Class<T> clazz, JavaType<E> baseDescriptor, MutabilityPlan<T> mutabilityPlan)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JavaType<E>getElementJavaType()Get the Java type descriptor for the element typeJdbcTypegetRecommendedJdbcType(JdbcTypeIndicators indicators)Obtain the "recommended"SQL type descriptorfor this Java type.booleanisWider(JavaType<?> javaType)Determines if this Java type is wider than the given Java type, that is, if the given type can be safely widened to this type.BasicType<?>resolveType(TypeConfiguration typeConfiguration, Dialect dialect, BasicType<E> elementType, ColumnTypeInformation columnTypeInformation, JdbcTypeIndicators stdIndicators)Creates a container type for the given element type-
Methods inherited from class org.hibernate.type.descriptor.java.AbstractClassJavaType
areEqual, extractHashCode, extractLoggableRepresentation, getComparator, getJavaType, getJavaTypeClass, getMutabilityPlan, unknownUnwrap, unknownWrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.type.descriptor.java.BasicJavaType
fromString
-
Methods inherited from interface org.hibernate.type.descriptor.java.JavaType
appendEncodedString, coerce, createJavaType, createJavaType, fromEncodedString, getCheckCondition, getDefaultSqlLength, getDefaultSqlPrecision, getDefaultSqlScale, getDefaultValue, getLongSqlLength, getReplacement, getTypeName, isInstance, isTemporalType, toString, unwrap, useObjectEqualsHashCode, wrap
-
-
-
-
Method Detail
-
getElementJavaType
public JavaType<E> getElementJavaType()
Description copied from interface:BasicPluralJavaTypeGet the Java type descriptor for the element type- Specified by:
getElementJavaTypein interfaceBasicPluralJavaType<T>
-
getRecommendedJdbcType
public JdbcType getRecommendedJdbcType(JdbcTypeIndicators indicators)
Description copied from interface:BasicJavaTypeObtain the "recommended"SQL type descriptorfor this Java type. Often, but not always, the source of this recommendation is the JDBC specification.- Specified by:
getRecommendedJdbcTypein interfaceBasicJavaType<T>- Specified by:
getRecommendedJdbcTypein interfaceJavaType<T>- Parameters:
indicators- Contextual information- Returns:
- The recommended SQL type descriptor
-
isWider
public boolean isWider(JavaType<?> javaType)
Description copied from interface:JavaTypeDetermines if this Java type is wider than the given Java type, that is, if the given type can be safely widened to this type.
-
resolveType
public BasicType<?> resolveType(TypeConfiguration typeConfiguration, Dialect dialect, BasicType<E> elementType, ColumnTypeInformation columnTypeInformation, JdbcTypeIndicators stdIndicators)
Description copied from interface:BasicPluralJavaTypeCreates a container type for the given element type- Specified by:
resolveTypein interfaceBasicPluralJavaType<T>
-
-