Class 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. See ConverterDescriptor instead
    Externalized representation of an AttributeConverter
    • 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 Class
        autoApply - 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 a Converter 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 a Converter 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 instance
        autoApply - Should the AttributeConverter be auto-applied?
        Returns:
        The constructed definition
      • isAutoApply

        public boolean isAutoApply()
        Deprecated.
      • getEntityAttributeType

        public java.lang.Class getEntityAttributeType()
        Deprecated.
      • getDatabaseColumnType

        public java.lang.Class getDatabaseColumnType()
        Deprecated.
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object