Top Description Inners Fields Constructors Methods
org.eclipse.persistence.internal.jpa.metadata.converters

public Class ConverterManager

extends Object
Class Inheritance
Imports
java.util.Collections, .HashMap, .Map, .ServiceLoader, java.util.function.Supplier, org.eclipse.persistence.mappings.converters.Converter, org.eclipse.persistence.mappings.converters.spi.ConverterProvider

Manage field value to JDBC data type converters loaded from SPI providers.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final Map<String, Supplier<Converter>>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Converter

Returns:

new instance of field value to JDBC data type converter
createConverter
(final String
Converter metadata fully qualified class name
type
)

Create an instance of field value to JDBC data type converter mapped to provided Converter metadata class name.

public static final ConverterManager

Returns:

singleton instance of converters manager
getInstance
()

Get singleton instance of converters manager.

public boolean

Returns:

value of true when there exists mapping for provided class name or false otherwise
hasConverter
(final String
Converter metadata fully qualified class name
type
)

Check whether converter instance Supplier exists for provided Converter metadata class name.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

convertersback to summary
private final Map<String, Supplier<Converter>> converters

Constructor Detail

ConverterManagerback to summary
private ConverterManager()

Method Detail

createConverterback to summary
public Converter createConverter(final String type)

Create an instance of field value to JDBC data type converter mapped to provided Converter metadata class name.

Parameters
type:String

Converter metadata fully qualified class name

Returns:Converter

new instance of field value to JDBC data type converter

getInstanceback to summary
public static final ConverterManager getInstance()

Get singleton instance of converters manager.

Returns:ConverterManager

singleton instance of converters manager

hasConverterback to summary
public boolean hasConverter(final String type)

Check whether converter instance Supplier exists for provided Converter metadata class name.

Parameters
type:String

Converter metadata fully qualified class name

Returns:boolean

value of true when there exists mapping for provided class name or false otherwise

org.eclipse.persistence.internal.jpa.metadata.converters back to summary

private final Class ConverterManager.Instance

extends Object
Class Inheritance
  • java.lang.Object
  • org.eclipse.persistence.internal.jpa.metadata.converters.ConverterManager.Instance

Field Summary

Modifier and TypeField and Description
private static final ConverterManager

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
private static final ConverterManager INSTANCE

Constructor Detail

Instanceback to summary
private Instance()