java.lang.Object
org.jooq.impl.AbstractConverter<T,U>
org.jooq.impl.EnumConverter<T,U>
- All Implemented Interfaces:
Serializable,Converter<T,U>
A base class for enum conversion.
- Author:
- Lukas Eder
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jooq.impl.AbstractConverter
fromType, toTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jooq.Converter
andThen, forArrays, fromSupported, inverse, toSupported
-
Constructor Details
-
EnumConverter
-
EnumConverter
-
-
Method Details
-
from
Description copied from interface:ConverterRead and convert a database object to a user object.Implementations that don't support this conversion are expected to override
Converter.fromSupported()to indicate lack of support.- Parameters:
t- The database object.- Returns:
- The user object.
-
to
Subclasses may override this method to provide a custom reverse mapping implementationConvert and write a user object to a database object.
Implementations that don't support this conversion are expected to override
Converter.toSupported()to indicate lack of support.- Parameters:
u- The user object.- Returns:
- The database object.
-
toString
-