Class JsonJavaType<T>
- java.lang.Object
-
- org.hibernate.type.descriptor.java.AbstractJavaType<T>
-
- org.hibernate.type.descriptor.java.spi.FormatMapperBasedJavaType<T>
-
- org.hibernate.type.descriptor.java.spi.JsonJavaType<T>
-
- All Implemented Interfaces:
Serializable
,BasicJavaType<T>
,JavaType<T>
,MutabilityPlan<T>
@Incubating public class JsonJavaType<T> extends FormatMapperBasedJavaType<T>
- 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 JsonJavaType(Type type, MutabilityPlan<T> mutabilityPlan, TypeConfiguration typeConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FormatMapper
getFormatMapper(TypeConfiguration typeConfiguration)
JdbcType
getRecommendedJdbcType(JdbcTypeIndicators context)
Obtain the "recommended"SQL type descriptor
for this Java type.String
toString()
-
Methods inherited from class org.hibernate.type.descriptor.java.spi.FormatMapperBasedJavaType
assemble, deepCopy, disassemble, fromString, getMutabilityPlan, isMutable, toString, unwrap, wrap
-
Methods inherited from class org.hibernate.type.descriptor.java.AbstractJavaType
areEqual, extractHashCode, extractLoggableRepresentation, getComparator, getJavaType, unknownUnwrap, unknownWrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.type.descriptor.java.JavaType
appendEncodedString, coerce, createJavaType, createJavaType, fromEncodedString, getDefaultSqlLength, getDefaultSqlPrecision, getDefaultSqlScale, getDefaultValue, getJavaTypeClass, getLongSqlLength, getReplacement, isInstance, isTemporalType, isWider
-
-
-
-
Constructor Detail
-
JsonJavaType
public JsonJavaType(Type type, MutabilityPlan<T> mutabilityPlan, TypeConfiguration typeConfiguration)
-
-
Method Detail
-
getFormatMapper
protected FormatMapper getFormatMapper(TypeConfiguration typeConfiguration)
- Specified by:
getFormatMapper
in classFormatMapperBasedJavaType<T>
-
getRecommendedJdbcType
public JdbcType getRecommendedJdbcType(JdbcTypeIndicators context)
Description copied from interface:BasicJavaType
Obtain the "recommended"SQL type descriptor
for this Java type. Often, but not always, the source of this recommendation is the JDBC specification.- Specified by:
getRecommendedJdbcType
in interfaceBasicJavaType<T>
- Specified by:
getRecommendedJdbcType
in interfaceJavaType<T>
- Overrides:
getRecommendedJdbcType
in classFormatMapperBasedJavaType<T>
- Parameters:
context
- Contextual information- Returns:
- The recommended SQL type descriptor
-
-