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
RegisteredConversionbe 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 voidaddConverter(ConverterDescriptor descriptor)voidaddRegistration(RegisteredConversion conversion, BootstrapContext context)ConverterDescriptorfindAutoApplyConverterForAttribute(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.ConverterDescriptorfindAutoApplyConverterForCollectionElement(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.ConverterDescriptorfindAutoApplyConverterForMapKey(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.RegisteredConversionfindRegisteredConversion(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:ConverterAutoApplyHandlerResolve the auto-applied converter to be applied to a basic attribute described by the passed property descriptor.nullindicates that no auto-applied converter matched- Specified by:
findAutoApplyConverterForAttributein 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:ConverterAutoApplyHandlerResolve the auto-applied converter to be applied to the elements of a plural attribute described by the passed property descriptor.nullindicates that no auto-applied converter matched- Specified by:
findAutoApplyConverterForCollectionElementin 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:ConverterAutoApplyHandlerResolve the auto-applied converter to be applied to the keys of a plural Map attribute described by the passed property descriptor.nullindicates that no auto-applied converter matched- Specified by:
findAutoApplyConverterForMapKeyin interfaceConverterAutoApplyHandler- Parameters:
property- The HCANN descriptor for the Map-typed plural attribute
-
-