MCPcopy Create free account
hub / github.com/jOOQ/jOOQ / converterOrFail

Method converterOrFail

jOOQ/src/main/java/org/jooq/impl/Tools.java:1728–1735  ·  view source on GitHub ↗

Get a converter from a ConverterProvider or null if no converter could be provided.

(Configuration configuration, T instance, Class<T> tType, Class<U> uType)

Source from the content-addressed store, hash-verified

1726 * no converter could be provided.
1727 */
1728 static final <T, U> ContextConverter<T, U> converterOrFail(Configuration configuration, T instance, Class<T> tType, Class<U> uType) {
1729 ContextConverter<T, U> result = converter(configuration, instance, tType, uType);
1730
1731 if (result == null)
1732 throw new DataTypeException("No Converter found for types " + tType.getName() + " and " + uType.getName());
1733
1734 return result;
1735 }
1736
1737 /**
1738 * Get a converter from a {@link ConverterProvider}.

Callers 2

mapperMethod · 0.80
getMethod · 0.80

Calls 3

converterMethod · 0.95
configurationMethod · 0.95
getNameMethod · 0.65

Tested by

no test coverage detected