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 aRegisteredConversion
record class.RegisteredConversion
(Class<?> explicitDomainType, Class<? extends AttributeConverter<?, ?>> converterType, boolean autoApply, MetadataBuildingContext context) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of theautoApply
record component.ConverterDescriptor<?,
?> Returns the value of theconverterDescriptor
record component.Class<? extends AttributeConverter<?,
?>> Returns the value of theconverterType
record component.boolean
Indicates whether some other object is "equal to" this one.Class<?>
Returns the value of theexplicitDomainType
record component.ConverterDescriptor<?,
?> Class<? extends AttributeConverter<?,
?>> Class<?>
int
hashCode()
Returns a hash code value for this object.boolean
final String
toString()
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 aRegisteredConversion
record class.- Parameters:
explicitDomainType
- the value for theexplicitDomainType
record componentconverterType
- the value for theconverterType
record componentautoApply
- the value for theautoApply
record componentconverterDescriptor
- the value for theconverterDescriptor
record 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 theexplicitDomainType
record component.- Returns:
- the value of the
explicitDomainType
record component
-
converterType
Returns the value of theconverterType
record component.- Returns:
- the value of the
converterType
record component
-
autoApply
public boolean autoApply()Returns the value of theautoApply
record component.- Returns:
- the value of the
autoApply
record component
-
converterDescriptor
Returns the value of theconverterDescriptor
record component.- Returns:
- the value of the
converterDescriptor
record component
-