Class UuidConverter

java.lang.Object
io.jmix.eclipselink.impl.UuidConverter
All Implemented Interfaces:
Serializable, org.eclipse.persistence.core.mappings.converters.CoreConverter<org.eclipse.persistence.mappings.DatabaseMapping,org.eclipse.persistence.sessions.Session>, org.eclipse.persistence.mappings.converters.Converter

public class UuidConverter extends Object implements org.eclipse.persistence.mappings.converters.Converter
CAUTION: Consider using converters obtained through UuidMappingInfo. This class is used as a fallback if the database platform doesn't implement UuidMappingInfo.
See Also:
  • Constructor Details

    • UuidConverter

      public UuidConverter()
  • Method Details

    • getInstance

      public static UuidConverter getInstance()
    • convertObjectValueToDataValue

      public Object convertObjectValueToDataValue(Object objectValue, org.eclipse.persistence.sessions.Session session)
      Specified by:
      convertObjectValueToDataValue in interface org.eclipse.persistence.mappings.converters.Converter
      Specified by:
      convertObjectValueToDataValue in interface org.eclipse.persistence.core.mappings.converters.CoreConverter<org.eclipse.persistence.mappings.DatabaseMapping,org.eclipse.persistence.sessions.Session>
    • convertDataValueToObjectValue

      public Object convertDataValueToObjectValue(Object dataValue, org.eclipse.persistence.sessions.Session session)
      Specified by:
      convertDataValueToObjectValue in interface org.eclipse.persistence.mappings.converters.Converter
      Specified by:
      convertDataValueToObjectValue in interface org.eclipse.persistence.core.mappings.converters.CoreConverter<org.eclipse.persistence.mappings.DatabaseMapping,org.eclipse.persistence.sessions.Session>
    • isMutable

      public boolean isMutable()
      Specified by:
      isMutable in interface org.eclipse.persistence.mappings.converters.Converter
    • initialize

      public void initialize(org.eclipse.persistence.mappings.DatabaseMapping mapping, org.eclipse.persistence.sessions.Session session)
      Specified by:
      initialize in interface org.eclipse.persistence.mappings.converters.Converter
      Specified by:
      initialize in interface org.eclipse.persistence.core.mappings.converters.CoreConverter<org.eclipse.persistence.mappings.DatabaseMapping,org.eclipse.persistence.sessions.Session>