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 (theClass
object) described by thisJavaType
.getRecommendedJdbcType
(JdbcTypeIndicators context) Obtain the "recommended"SQL type descriptor
for this Java type.<X> X
unwrap
(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, 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:JavaType
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 interfaceJavaType<Map<?,
?>> - Parameters:
context
- Contextual information- Returns:
- The recommended SQL type descriptor
-
fromString
- Specified by:
fromString
in interfaceJavaType<Map<?,
?>>
-
unwrap
Description copied from interface:JavaType
Unwrap 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 value
as aLong
, we would return something likeLong.valueOf( value.longValue() )
.Intended use is during
PreparedStatement
binding. -
wrap
Description copied from interface:JavaType
Wrap a value as our handled Java type.Intended use is during
ResultSet
extraction. -
getJavaTypeClass
Description copied from interface:JavaType
Get the Java type (theClass
object) described by thisJavaType
.- Specified by:
getJavaTypeClass
in interfaceJavaType<Map<?,
?>> - See Also:
-