Class AttributeConverterManager
java.lang.Object
org.hibernate.boot.model.convert.internal.AttributeConverterManager
- All Implemented Interfaces:
ConverterAutoApplyHandler
- Implementation Note:
- It is important that all
RegisteredConversionbe registered prior to attempts to register anyConverterDescriptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConverter(ConverterDescriptor<?, ?> descriptor) voidaddRegistration(RegisteredConversion conversion, BootstrapContext context) ConverterDescriptor<?, ?> findAutoApplyConverterForAttribute(org.hibernate.models.spi.MemberDetails attributeMember, MetadataBuildingContext context) Resolve the auto-applied converter to be applied to a basic attribute described by the passed property descriptor.ConverterDescriptor<?, ?> findAutoApplyConverterForCollectionElement(org.hibernate.models.spi.MemberDetails attributeMember, 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.models.spi.MemberDetails attributeMember, MetadataBuildingContext context) Resolve the auto-applied converter to be applied to the keys of a plural Map attribute described by the passed property descriptor.findRegisteredConversion(Class<?> domainType)
-
Constructor Details
-
AttributeConverterManager
public AttributeConverterManager()
-
-
Method Details
-
findRegisteredConversion
-
addConverter
-
addRegistration
-
findAutoApplyConverterForAttribute
public ConverterDescriptor<?,?> findAutoApplyConverterForAttribute(org.hibernate.models.spi.MemberDetails attributeMember, 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:
attributeMember- The HCANN descriptor for the basic attribute
-
findAutoApplyConverterForCollectionElement
public ConverterDescriptor<?,?> findAutoApplyConverterForCollectionElement(org.hibernate.models.spi.MemberDetails attributeMember, 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:
attributeMember- The HCANN descriptor for the plural attribute
-
findAutoApplyConverterForMapKey
public ConverterDescriptor<?,?> findAutoApplyConverterForMapKey(org.hibernate.models.spi.MemberDetails attributeMember, 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:
attributeMember- The HCANN descriptor for the Map-typed plural attribute
-