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 (theClass
object) described by thisJavaType
.JdbcType
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, createJavaType, extractHashCode, extractLoggableRepresentation, fromEncodedString, getComparator, getDefaultSqlLength, getDefaultSqlPrecision, getDefaultSqlScale, getDefaultValue, getJavaType, getLongSqlLength, getMutabilityPlan, getReplacement, isInstance, isTemporalType, isWider, toString
-
-
-
-
Method Detail
-
getRecommendedJdbcType
public JdbcType getRecommendedJdbcType(JdbcTypeIndicators context)
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
public Map<?,?> fromString(CharSequence string)
- Specified by:
fromString
in interfaceJavaType<Map<?,?>>
-
unwrap
public <X> X unwrap(Map<?,?> value, Class<X> type, WrapperOptions options)
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
public <X> Map<?,?> wrap(X value, WrapperOptions options)
Description copied from interface:JavaType
Wrap a value as our handled Java type.Intended use is during
ResultSet
extraction.
-
getJavaTypeClass
public Class<Map<?,?>> getJavaTypeClass()
Description copied from interface:JavaType
Get the Java type (theClass
object) described by thisJavaType
.- Specified by:
getJavaTypeClass
in interfaceJavaType<Map<?,?>>
- See Also:
JavaType.getJavaType()
-
-