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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConvertergetConverter(Class clazz) Deprecated.static <E> Converter<E> getConverterIfExists(Class<E> clazz) static voidregisterConverter(Class clazz, Converter converter) Deprecated.static voidregisterEnumConverter(EnumConverterFactory enumConverterFactory) static <E> Converter<E> throwIfNull(Class<E> clazz, Converter<E> converter)
-
Constructor Details
-
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
-