Class AttributeConverterManager
- java.lang.Object
-
- org.hibernate.boot.model.convert.internal.AttributeConverterManager
-
- All Implemented Interfaces:
ConverterAutoApplyHandler
public class AttributeConverterManager extends Object implements ConverterAutoApplyHandler
- Implementation Note:
- It is important that all
RegisteredConversion
be registered prior to attempts to register anyConverterDescriptor
-
-
Constructor Summary
Constructors Constructor Description AttributeConverterManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConverter(ConverterDescriptor descriptor)
void
addRegistration(RegisteredConversion conversion, BootstrapContext context)
ConverterDescriptor
findAutoApplyConverterForAttribute(org.hibernate.annotations.common.reflection.XProperty property, MetadataBuildingContext context)
Resolve the auto-applied converter to be applied to a basic attribute described by the passed property descriptor.ConverterDescriptor
findAutoApplyConverterForCollectionElement(org.hibernate.annotations.common.reflection.XProperty property, MetadataBuildingContext context)
Resolve the auto-applied converter to be applied to the elements of a plural attribute described by the passed property descriptor.ConverterDescriptor
findAutoApplyConverterForMapKey(org.hibernate.annotations.common.reflection.XProperty property, MetadataBuildingContext context)
Resolve the auto-applied converter to be applied to the keys of a plural Map attribute described by the passed property descriptor.RegisteredConversion
findRegisteredConversion(Class<?> domainType)
-
-
-
Method Detail
-
findRegisteredConversion
public RegisteredConversion findRegisteredConversion(Class<?> domainType)
-
addConverter
public void addConverter(ConverterDescriptor descriptor)
-
addRegistration
public void addRegistration(RegisteredConversion conversion, BootstrapContext context)
-
findAutoApplyConverterForAttribute
public ConverterDescriptor findAutoApplyConverterForAttribute(org.hibernate.annotations.common.reflection.XProperty property, MetadataBuildingContext context)
Description copied from interface:ConverterAutoApplyHandler
Resolve the auto-applied converter to be applied to a basic attribute described by the passed property descriptor.null
indicates that no auto-applied converter matched- Specified by:
findAutoApplyConverterForAttribute
in interfaceConverterAutoApplyHandler
- Parameters:
property
- The HCANN descriptor for the basic attribute
-
findAutoApplyConverterForCollectionElement
public ConverterDescriptor findAutoApplyConverterForCollectionElement(org.hibernate.annotations.common.reflection.XProperty property, MetadataBuildingContext context)
Description copied from interface:ConverterAutoApplyHandler
Resolve the auto-applied converter to be applied to the elements of a plural attribute described by the passed property descriptor.null
indicates that no auto-applied converter matched- Specified by:
findAutoApplyConverterForCollectionElement
in interfaceConverterAutoApplyHandler
- Parameters:
property
- The HCANN descriptor for the plural attribute
-
findAutoApplyConverterForMapKey
public ConverterDescriptor findAutoApplyConverterForMapKey(org.hibernate.annotations.common.reflection.XProperty property, MetadataBuildingContext context)
Description copied from interface:ConverterAutoApplyHandler
Resolve the auto-applied converter to be applied to the keys of a plural Map attribute described by the passed property descriptor.null
indicates that no auto-applied converter matched- Specified by:
findAutoApplyConverterForMapKey
in interfaceConverterAutoApplyHandler
- Parameters:
property
- The HCANN descriptor for the Map-typed plural attribute
-
-