Class DynamicModelJavaType
java.lang.Object
org.hibernate.type.descriptor.java.spi.DynamicModelJavaType
- All Implemented Interfaces:
Serializable,JavaType<Map<?,?>>
JavaType for dynamic models
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.type.descriptor.java.JavaType
JavaType.CoercionContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMap<?,?> fromString(CharSequence string) Get the Java type (theClassobject) described by thisJavaType.getRecommendedJdbcType(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, waitMethods inherited from interface org.hibernate.type.descriptor.java.JavaType
appendEncodedString, areEqual, coerce, createJavaType, extractHashCode, extractLoggableRepresentation, fromEncodedString, getCheckCondition, getComparator, getDefaultSqlLength, getDefaultSqlPrecision, getDefaultSqlScale, getDefaultValue, getJavaType, getLongSqlLength, getMutabilityPlan, getReplacement, getTypeName, isInstance, isTemporalType, isWider, toString, useObjectEqualsHashCode
-
Constructor Details
-
DynamicModelJavaType
public DynamicModelJavaType()
-
-
Method Details
-
getRecommendedJdbcType
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
- Specified by:
fromStringin interfaceJavaType<Map<?,?>>
-
unwrap
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
Description copied from interface:JavaTypeWrap a value as our handled Java type.Intended use is during
ResultSetextraction. -
getJavaTypeClass
Description copied from interface:JavaTypeGet the Java type (theClassobject) described by thisJavaType.- Specified by:
getJavaTypeClassin interfaceJavaType<Map<?,?>> - See Also:
-