java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.converters.ConverterManager

public class ConverterManager extends Object
Manage field value to JDBC data type converters loaded from SPI providers.
  • Method Details

    • getInstance

      public static final ConverterManager getInstance()
      Get singleton instance of converters manager.
      Returns:
      singleton instance of converters manager
    • hasConverter

      public boolean hasConverter(String type)
      Check whether converter instance Supplier exists for provided Converter metadata class name.
      Parameters:
      type - Converter metadata fully qualified class name
      Returns:
      value of true when there exists mapping for provided class name or false otherwise
    • createConverter

      public Converter createConverter(String type)
      Create an instance of field value to JDBC data type converter mapped to provided Converter metadata class name.
      Parameters:
      type - Converter metadata fully qualified class name
      Returns:
      new instance of field value to JDBC data type converter