Record Class RegisteredConversion
java.lang.Object
java.lang.Record
org.hibernate.boot.model.convert.spi.RegisteredConversion
public record RegisteredConversion(Class<?> explicitDomainType, Class<? extends AttributeConverter<?,?>> converterType, boolean autoApply, ConverterDescriptor<?,?> converterDescriptor)
extends Record
A registered conversion.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRegisteredConversion(Class<?> explicitDomainType, Class<? extends AttributeConverter<?, ?>> converterType, boolean autoApply, ConverterDescriptor<?, ?> converterDescriptor) Creates an instance of aRegisteredConversionrecord class.RegisteredConversion(Class<?> explicitDomainType, Class<? extends AttributeConverter<?, ?>> converterType, boolean autoApply, MetadataBuildingContext context) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theautoApplyrecord component.ConverterDescriptor<?, ?> Returns the value of theconverterDescriptorrecord component.Class<? extends AttributeConverter<?, ?>> Returns the value of theconverterTyperecord component.booleanIndicates whether some other object is "equal to" this one.Class<?> Returns the value of theexplicitDomainTyperecord component.ConverterDescriptor<?, ?> Class<? extends AttributeConverter<?, ?>> Class<?> inthashCode()Returns a hash code value for this object.booleanfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RegisteredConversion
public RegisteredConversion(Class<?> explicitDomainType, Class<? extends AttributeConverter<?, ?>> converterType, boolean autoApply, ConverterDescriptor<?, ?> converterDescriptor) Creates an instance of aRegisteredConversionrecord class.- Parameters:
explicitDomainType- the value for theexplicitDomainTyperecord componentconverterType- the value for theconverterTyperecord componentautoApply- the value for theautoApplyrecord componentconverterDescriptor- the value for theconverterDescriptorrecord component
-
RegisteredConversion
public RegisteredConversion(Class<?> explicitDomainType, Class<? extends AttributeConverter<?, ?>> converterType, boolean autoApply, MetadataBuildingContext context)
-
-
Method Details
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
getExplicitDomainType
-
getConverterType
-
isAutoApply
public boolean isAutoApply() -
getConverterDescriptor
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
explicitDomainType
Returns the value of theexplicitDomainTyperecord component.- Returns:
- the value of the
explicitDomainTyperecord component
-
converterType
Returns the value of theconverterTyperecord component.- Returns:
- the value of the
converterTyperecord component
-
autoApply
public boolean autoApply()Returns the value of theautoApplyrecord component.- Returns:
- the value of the
autoApplyrecord component
-
converterDescriptor
Returns the value of theconverterDescriptorrecord component.- Returns:
- the value of the
converterDescriptorrecord component
-