Top Fields Constructors Methods
org.hibernate.boot.model.convert.internal

public abstract Class AbstractConverterDescriptor

extends Object
implements ConverterDescriptor
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.model.convert.spi.ConverterDescriptor
Known Direct Subclasses
org.hibernate.boot.model.convert.internal.ClassBasedConverterDescriptor, org.hibernate.boot.model.convert.internal.InstanceBasedConverterDescriptor
Imports
java.util.List, javax.persistence.AttributeConverter, .Converter, org.hibernate.AnnotationException, org.hibernate.boot.internal.ClassmateContext, org.hibernate.boot.model.convert.spi.AutoApplicableConverterDescriptor, .ConverterDescriptor, .JpaAttributeConverterCreationContext, org.hibernate.metamodel.model.convert.internal.JpaAttributeConverterImpl, org.hibernate.metamodel.model.convert.spi.JpaAttributeConverter, org.hibernate.resource.beans.spi.ManagedBean, com.fasterxml.classmate.ResolvedType

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final AutoApplicableConverterDescriptor
private final Class<? extends AttributeConverter<X, Y>>
private final ResolvedType
private final ResolvedType

Constructor Summary

AccessConstructor and Description
public
AbstractConverterDescriptor(Class<? extends AttributeConverter<X, Y>> converterClass, Boolean forceAutoApply, ClassmateContext classmateContext)

Method Summary

Modifier and TypeMethod and Description
public JpaAttributeConverter<O, R>
protected abstract ManagedBean<? extends AttributeConverter<X, Y>>
public Class<? extends AttributeConverter<X, Y>>
public AutoApplicableConverterDescriptor
public ResolvedType
getDomainValueResolvedType()

Implements org.hibernate.boot.model.convert.spi.ConverterDescriptor.getDomainValueResolvedType.

The resolved Classmate type descriptor for the conversion's domain type
public ResolvedType
getRelationalValueResolvedType()

Implements org.hibernate.boot.model.convert.spi.ConverterDescriptor.getRelationalValueResolvedType.

The resolved Classmate type descriptor for the conversion's relational type
private AutoApplicableConverterDescriptor
resolveAutoApplicableDescriptor(Class<? extends AttributeConverter<X, Y>> converterClass, Boolean forceAutoApply)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

autoApplicableDescriptorback to summary
private final AutoApplicableConverterDescriptor autoApplicableDescriptor
converterClassback to summary
private final Class<? extends AttributeConverter<X, Y>> converterClass
domainTypeback to summary
private final ResolvedType domainType
jdbcTypeback to summary
private final ResolvedType jdbcType

Constructor Detail

AbstractConverterDescriptorback to summary
public AbstractConverterDescriptor(Class<? extends AttributeConverter<X, Y>> converterClass, Boolean forceAutoApply, ClassmateContext classmateContext)
Annotations
@SuppressWarnings:WeakerAccess

Method Detail

createJpaAttributeConverterback to summary
public JpaAttributeConverter<O, R> createJpaAttributeConverter(JpaAttributeConverterCreationContext context)

Implements org.hibernate.boot.model.convert.spi.ConverterDescriptor.createJpaAttributeConverter.

Doc from org.hibernate.boot.model.convert.spi.ConverterDescriptor.createJpaAttributeConverter.

Factory for the runtime representation of the converter

Annotations
@Override
@SuppressWarnings:unchecked
createManagedBeanback to summary
protected abstract ManagedBean<? extends AttributeConverter<X, Y>> createManagedBean(JpaAttributeConverterCreationContext context)
getAttributeConverterClassback to summary
public Class<? extends AttributeConverter<X, Y>> getAttributeConverterClass()

Implements org.hibernate.boot.model.convert.spi.ConverterDescriptor.getAttributeConverterClass.

Doc from org.hibernate.boot.model.convert.spi.ConverterDescriptor.getAttributeConverterClass.

The AttributeConverter class

Annotations
@Override
getAutoApplyDescriptorback to summary
public AutoApplicableConverterDescriptor getAutoApplyDescriptor()

Implements org.hibernate.boot.model.convert.spi.ConverterDescriptor.getAutoApplyDescriptor.

Doc from org.hibernate.boot.model.convert.spi.ConverterDescriptor.getAutoApplyDescriptor.

Get the auto-apply checker for this converter. Should never return `null` - prefer org.hibernate.boot.model.convert.internal.AutoApplicableConverterDescriptorBypassedImpl#INSTANCE instead.

Annotations
@Override
getDomainValueResolvedTypeback to summary
public ResolvedType getDomainValueResolvedType()

Implements org.hibernate.boot.model.convert.spi.ConverterDescriptor.getDomainValueResolvedType.

Doc from org.hibernate.boot.model.convert.spi.ConverterDescriptor.getDomainValueResolvedType.

The resolved Classmate type descriptor for the conversion's domain type

Annotations
@Override
getRelationalValueResolvedTypeback to summary
public ResolvedType getRelationalValueResolvedType()

Implements org.hibernate.boot.model.convert.spi.ConverterDescriptor.getRelationalValueResolvedType.

Doc from org.hibernate.boot.model.convert.spi.ConverterDescriptor.getRelationalValueResolvedType.

The resolved Classmate type descriptor for the conversion's relational type

Annotations
@Override
resolveAutoApplicableDescriptorback to summary
private AutoApplicableConverterDescriptor resolveAutoApplicableDescriptor(Class<? extends AttributeConverter<X, Y>> converterClass, Boolean forceAutoApply)