Package org.sql2o.converters
Class Convert
java.lang.Object
org.sql2o.converters.Convert
Static class used to register new converters.
Also used internally by sql2o to lookup a converter.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Converter
getConverter
(Class clazz) Deprecated.static <E> Converter
<E> getConverterIfExists
(Class<E> clazz) static void
registerConverter
(Class clazz, Converter converter) Deprecated.static void
registerEnumConverter
(EnumConverterFactory enumConverterFactory) static <E> Converter
<E> throwIfNull
(Class<E> clazz, Converter<E> converter)
-
Constructor Details
-
Convert
public Convert()
-
-
Method Details
-
getConverter
Deprecated.- Throws:
ConverterException
-
throwIfNull
public static <E> Converter<E> throwIfNull(Class<E> clazz, Converter<E> converter) throws ConverterException - Throws:
ConverterException
-
getConverterIfExists
-
registerConverter
Deprecated. -
registerEnumConverter
-