Class DynamicModelJavaType
- java.lang.Object
-
- org.hibernate.type.descriptor.java.spi.DynamicModelJavaType
-
- All Implemented Interfaces:
Serializable,JavaType<Map<?,?>>
public class DynamicModelJavaType extends Object implements JavaType<Map<?,?>>
JavaType for dynamic models- 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 DynamicModelJavaType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<?,?>fromString(CharSequence string)Class<Map<?,?>>getJavaTypeClass()Get the Java type (theClassobject) described by thisJavaType.JdbcTypegetRecommendedJdbcType(JdbcTypeIndicators context)Obtain the "recommended"SQL type descriptorfor this Java type.<X> Xunwrap(Map<?,?> value, Class<X> type, WrapperOptions options)Unwrap an instance of our handled Java type into the requested type.<X> Map<?,?>wrap(X value, WrapperOptions options)Wrap a value as our handled Java type.-
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.JavaType
appendEncodedString, areEqual, coerce, createJavaType, createJavaType, extractHashCode, extractLoggableRepresentation, fromEncodedString, getCheckCondition, getComparator, getDefaultSqlLength, getDefaultSqlPrecision, getDefaultSqlScale, getDefaultValue, getJavaType, getLongSqlLength, getMutabilityPlan, getReplacement, getTypeName, isInstance, isTemporalType, isWider, toString, useObjectEqualsHashCode
-
-
-
-
Method Detail
-
getRecommendedJdbcType
public JdbcType getRecommendedJdbcType(JdbcTypeIndicators context)
Description copied from interface:JavaTypeObtain the "recommended"SQL type descriptorfor this Java type. Often, but not always, the source of this recommendation is the JDBC specification.- Specified by:
getRecommendedJdbcTypein interfaceJavaType<Map<?,?>>- Parameters:
context- Contextual information- Returns:
- The recommended SQL type descriptor
-
fromString
public Map<?,?> fromString(CharSequence string)
- Specified by:
fromStringin interfaceJavaType<Map<?,?>>
-
unwrap
public <X> X unwrap(Map<?,?> value, Class<X> type, WrapperOptions options)
Description copied from interface:JavaTypeUnwrap an instance of our handled Java type into the requested type.As an example, if this is a
JavaType<Integer>and we are asked to unwrap theInteger valueas aLong, we would return something likeLong.valueOf( value.longValue() ).Intended use is during
PreparedStatementbinding.
-
wrap
public <X> Map<?,?> wrap(X value, WrapperOptions options)
Description copied from interface:JavaTypeWrap a value as our handled Java type.Intended use is during
ResultSetextraction.
-
getJavaTypeClass
public Class<Map<?,?>> getJavaTypeClass()
Description copied from interface:JavaTypeGet the Java type (theClassobject) described by thisJavaType.- Specified by:
getJavaTypeClassin interfaceJavaType<Map<?,?>>- See Also:
JavaType.getJavaType()
-
-