Class AttributeConverterManager
java.lang.Object
org.hibernate.boot.model.convert.internal.AttributeConverterManager
- All Implemented Interfaces:
ConverterAutoApplyHandler
- Implementation Note:
- It is important that all
RegisteredConversion
be registered prior to attempts to register anyConverterDescriptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addConverter
(ConverterDescriptor descriptor) void
addRegistration
(RegisteredConversion conversion, BootstrapContext context) 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.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.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: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:
attributeMember
- The HCANN descriptor for the basic attribute
-
findAutoApplyConverterForCollectionElement
public ConverterDescriptor findAutoApplyConverterForCollectionElement(org.hibernate.models.spi.MemberDetails attributeMember, 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:
attributeMember
- The HCANN descriptor for the plural attribute
-
findAutoApplyConverterForMapKey
public ConverterDescriptor findAutoApplyConverterForMapKey(org.hibernate.models.spi.MemberDetails attributeMember, 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:
attributeMember
- The HCANN descriptor for the Map-typed plural attribute
-