Package org.hibernate.cfg.internal
Class ConvertedJdbcMapping<T>
- java.lang.Object
-
- org.hibernate.cfg.internal.ConvertedJdbcMapping<T>
-
- All Implemented Interfaces:
JdbcMapping
,JdbcMappingContainer
,MappingType
public class ConvertedJdbcMapping<T> extends Object implements JdbcMapping
Ad-hoc JdbcMapping implementation for cases where we only have a converter
-
-
Constructor Summary
Constructors Constructor Description ConvertedJdbcMapping(ManagedBean<jakarta.persistence.AttributeConverter<?,?>> converterBean, TypeConfiguration typeConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JavaType<T>
getJavaTypeDescriptor()
The descriptor for the Java type represented by this expressible typeJdbcType
getJdbcType()
The descriptor for the SQL type represented by this expressible typeValueBinder<T>
getJdbcValueBinder()
The strategy for binding values of this expressible type to JDBCPreparedStatement
s andCallableStatement
s.ValueExtractor<?>
getJdbcValueExtractor()
The strategy for extracting values of this expressible type from JDBC ResultSets, CallableStatements, etc-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.metamodel.mapping.JdbcMapping
forEachJdbcType, forEachJdbcType, getCastType, getJdbcMappings, getJdbcTypeCount, getMappedJavaType
-
-
-
-
Constructor Detail
-
ConvertedJdbcMapping
public ConvertedJdbcMapping(ManagedBean<jakarta.persistence.AttributeConverter<?,?>> converterBean, TypeConfiguration typeConfiguration)
-
-
Method Detail
-
getJavaTypeDescriptor
public JavaType<T> getJavaTypeDescriptor()
Description copied from interface:JdbcMapping
The descriptor for the Java type represented by this expressible type- Specified by:
getJavaTypeDescriptor
in interfaceJdbcMapping
-
getJdbcType
public JdbcType getJdbcType()
Description copied from interface:JdbcMapping
The descriptor for the SQL type represented by this expressible type- Specified by:
getJdbcType
in interfaceJdbcMapping
-
getJdbcValueExtractor
public ValueExtractor<?> getJdbcValueExtractor()
Description copied from interface:JdbcMapping
The strategy for extracting values of this expressible type from JDBC ResultSets, CallableStatements, etc- Specified by:
getJdbcValueExtractor
in interfaceJdbcMapping
-
getJdbcValueBinder
public ValueBinder<T> getJdbcValueBinder()
Description copied from interface:JdbcMapping
The strategy for binding values of this expressible type to JDBCPreparedStatement
s andCallableStatement
s.- Specified by:
getJdbcValueBinder
in interfaceJdbcMapping
-
-