Module eclipselink

Class ConverterClass<T extends jakarta.persistence.AttributeConverter<X,​Y>,​X,​Y>

  • All Implemented Interfaces:
    Serializable, CoreConverter<DatabaseMapping,​Session>, org.eclipse.persistence.internal.descriptors.ClassNameConversionRequired, Converter

    public class ConverterClass<T extends jakarta.persistence.AttributeConverter<X,​Y>,​X,​Y>
    extends Object
    implements Converter, org.eclipse.persistence.internal.descriptors.ClassNameConversionRequired
    A JPA attribute converter class wrapped with an EclipseLink converter. This class is placed directly on mappings.
    See Also:
    Serialized Form
    Author:
    Guy Pelletier
    Since:
    Eclipselink 2.5
    • Field Detail

      • isForMapKey

        protected boolean isForMapKey
      • disableConversion

        protected boolean disableConversion
      • fieldClassification

        protected Class<?> fieldClassification
      • fieldClassificationName

        protected String fieldClassificationName
      • attributeConverterClassName

        protected String attributeConverterClassName
      • attributeConverter

        protected jakarta.persistence.AttributeConverter<X,​Y> attributeConverter
      • session

        protected org.eclipse.persistence.internal.sessions.AbstractSession session
    • Constructor Detail

      • ConverterClass

        public ConverterClass​(String attributeConverterClassName,
                              boolean isForMapKey,
                              String fieldClassificationName,
                              boolean disableConversion)
        INTERNAL: This method will be called when creating a converter for an embedded mapping attribute. The isForMapKey information will need to be known for proper initialization.
    • Method Detail

      • convertClassNamesToClasses

        public void convertClassNamesToClasses​(ClassLoader classLoader)
        INTERNAL: Convert all the class-name-based settings in this converter to actual class-based settings. This method is used when converting a project that has been built with class names to a project with classes.
        Specified by:
        convertClassNamesToClasses in interface org.eclipse.persistence.internal.descriptors.ClassNameConversionRequired
      • isMutable

        public boolean isMutable()
        INTERNAL:
        Specified by:
        isMutable in interface Converter
      • setSession

        public void setSession​(org.eclipse.persistence.internal.sessions.AbstractSession session)
      • getAttributeConverter

        protected jakarta.persistence.AttributeConverter<X,​Y> getAttributeConverter()