Module org.eclipse.persistence.jpa
Class ConverterManager
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.converters.ConverterManager
Manage field value to JDBC data type converters loaded from SPI providers.
-
Method Summary
Modifier and TypeMethodDescriptioncreateConverter(String type) Create an instance of field value to JDBC data type converter mapped to providedConvertermetadata class name.static final ConverterManagerGet singleton instance of converters manager.booleanhasConverter(String type) Check whether converter instanceSupplierexists for providedConvertermetadata class name.
-
Method Details
-
getInstance
Get singleton instance of converters manager.- Returns:
- singleton instance of converters manager
-
hasConverter
Check whether converter instanceSupplierexists for providedConvertermetadata class name.- Parameters:
type-Convertermetadata fully qualified class name- Returns:
- value of
truewhen there exists mapping for provided class name orfalseotherwise
-
createConverter
Create an instance of field value to JDBC data type converter mapped to providedConvertermetadata class name.- Parameters:
type-Convertermetadata fully qualified class name- Returns:
- new instance of field value to JDBC data type converter
-