Package org.hibernate.cfg
Class AttributeConverterDefinition
- java.lang.Object
-
- org.hibernate.cfg.AttributeConverterDefinition
-
- All Implemented Interfaces:
AttributeConverterInfo
@Deprecated public class AttributeConverterDefinition extends java.lang.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. SeeConverterDescriptor
insteadExternalized 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 AttributeConverterDefinition
from(java.lang.Class<? extends AttributeConverter> attributeConverterClass)
Deprecated.Build an AttributeConverterDefinition from the AttributeConverter Class reference.static AttributeConverterDefinition
from(java.lang.Class<? extends AttributeConverter> attributeConverterClass, boolean autoApply)
Deprecated.Build an AttributeConverterDefinition from the AttributeConverter Class reference and whether or not to auto-apply it.static AttributeConverterDefinition
from(AttributeConverter attributeConverter)
Deprecated.Build an AttributeConverterDefinition from an AttributeConverter instance.static AttributeConverterDefinition
from(AttributeConverter attributeConverter, boolean autoApply)
Deprecated.Build an AttributeConverterDefinition from the AttributeConverter instance and whether or not to auto-apply it.AttributeConverter
getAttributeConverter()
Deprecated.java.lang.Class<? extends AttributeConverter>
getConverterClass()
Deprecated.java.lang.Class
getDatabaseColumnType()
Deprecated.java.lang.Class
getEntityAttributeType()
Deprecated.boolean
isAutoApply()
Deprecated.ConverterDescriptor
toConverterDescriptor(MetadataBuildingContext context)
Deprecated.java.lang.String
toString()
Deprecated.
-
-
-
Constructor Detail
-
AttributeConverterDefinition
public AttributeConverterDefinition(AttributeConverter attributeConverter, boolean autoApply)
Deprecated.
-
-
Method Detail
-
from
public static AttributeConverterDefinition from(java.lang.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(java.lang.Class<? extends AttributeConverter> attributeConverterClass)
Deprecated.Build an AttributeConverterDefinition from the AttributeConverter Class reference. The converter is searched for aConverter
annotation 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,false
is 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 aConverter
annotation 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,false
is 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 java.lang.Class getEntityAttributeType()
Deprecated.
-
getDatabaseColumnType
public java.lang.Class getDatabaseColumnType()
Deprecated.
-
getConverterClass
public java.lang.Class<? extends AttributeConverter> getConverterClass()
Deprecated.- Specified by:
getConverterClass
in interfaceAttributeConverterInfo
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
toConverterDescriptor
public ConverterDescriptor toConverterDescriptor(MetadataBuildingContext context)
Deprecated.- Specified by:
toConverterDescriptor
in interfaceAttributeConverterInfo
-
-