Package org.hibernate.cfg
Class AttributeConverterDefinition
- java.lang.Object
-
- org.hibernate.cfg.AttributeConverterDefinition
-
- All Implemented Interfaces:
AttributeConverterInfo
@Deprecated public class AttributeConverterDefinition extends Object implements AttributeConverterInfo
Deprecated.(since 5.3) forces the converter instance to be built too early, which precludes the ability to resolve them from CDI, etc. SeeConverterDescriptorinsteadExternalized representation of an AttributeConverter
-
-
Constructor Summary
Constructors Constructor Description AttributeConverterDefinition(AttributeConverter attributeConverter, boolean autoApply)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static AttributeConverterDefinitionfrom(AttributeConverter attributeConverter)Deprecated.Build an AttributeConverterDefinition from an AttributeConverter instance.static AttributeConverterDefinitionfrom(AttributeConverter attributeConverter, boolean autoApply)Deprecated.Build an AttributeConverterDefinition from the AttributeConverter instance and whether or not to auto-apply it.static AttributeConverterDefinitionfrom(Class<? extends AttributeConverter> attributeConverterClass)Deprecated.Build an AttributeConverterDefinition from the AttributeConverter Class reference.static AttributeConverterDefinitionfrom(Class<? extends AttributeConverter> attributeConverterClass, boolean autoApply)Deprecated.Build an AttributeConverterDefinition from the AttributeConverter Class reference and whether or not to auto-apply it.AttributeConvertergetAttributeConverter()Deprecated.Class<? extends AttributeConverter>getConverterClass()Deprecated.ClassgetDatabaseColumnType()Deprecated.ClassgetEntityAttributeType()Deprecated.booleanisAutoApply()Deprecated.ConverterDescriptortoConverterDescriptor(MetadataBuildingContext context)Deprecated.StringtoString()Deprecated.
-
-
-
Constructor Detail
-
AttributeConverterDefinition
public AttributeConverterDefinition(AttributeConverter attributeConverter, boolean autoApply)
Deprecated.
-
-
Method Detail
-
from
public static AttributeConverterDefinition from(Class<? extends AttributeConverter> attributeConverterClass, boolean autoApply)
Deprecated.Build an AttributeConverterDefinition from the AttributeConverter Class reference and whether or not to auto-apply it.- Parameters:
attributeConverterClass- The AttributeConverter ClassautoApply- Should the AttributeConverter be auto-applied?- Returns:
- The constructed definition
-
from
public static AttributeConverterDefinition from(Class<? extends AttributeConverter> attributeConverterClass)
Deprecated.Build an AttributeConverterDefinition from the AttributeConverter Class reference. The converter is searched for aConverterannotation to determine whether it should be treated as auto-apply. If the annotation is present,Converter.autoApply()is used to make that determination. If the annotation is not present,falseis assumed.- Parameters:
attributeConverterClass- The converter class- Returns:
- The constructed definition
-
from
public static AttributeConverterDefinition from(AttributeConverter attributeConverter)
Deprecated.Build an AttributeConverterDefinition from an AttributeConverter instance. The converter is searched for aConverterannotation to determine whether it should be treated as auto-apply. If the annotation is present,Converter.autoApply()is used to make that determination. If the annotation is not present,falseis assumed.- Parameters:
attributeConverter- The AttributeConverter instance- Returns:
- The constructed definition
-
from
public static AttributeConverterDefinition from(AttributeConverter attributeConverter, boolean autoApply)
Deprecated.Build an AttributeConverterDefinition from the AttributeConverter instance and whether or not to auto-apply it.- Parameters:
attributeConverter- The AttributeConverter instanceautoApply- Should the AttributeConverter be auto-applied?- Returns:
- The constructed definition
-
getAttributeConverter
public AttributeConverter getAttributeConverter()
Deprecated.
-
isAutoApply
public boolean isAutoApply()
Deprecated.
-
getEntityAttributeType
public Class getEntityAttributeType()
Deprecated.
-
getDatabaseColumnType
public Class getDatabaseColumnType()
Deprecated.
-
getConverterClass
public Class<? extends AttributeConverter> getConverterClass()
Deprecated.- Specified by:
getConverterClassin interfaceAttributeConverterInfo
-
toConverterDescriptor
public ConverterDescriptor toConverterDescriptor(MetadataBuildingContext context)
Deprecated.- Specified by:
toConverterDescriptorin interfaceAttributeConverterInfo
-
-