E - the enum type mappedpublic abstract class EnumMapper<E extends Enum<E>> extends Object implements ColumnMapper<E>
enum types.Enums,
EnumByName,
EnumByOrdinal| Modifier and Type | Method and Description |
|---|---|
static <E extends Enum<E>> |
byName(Class<E> type) |
static <E extends Enum<E>> |
byOrdinal(Class<E> type) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmap, mappublic static <E extends Enum<E>> ColumnMapper<E> byName(Class<E> type)
E - the enum type to maptype - the enum type to mapEnum.name()public static <E extends Enum<E>> ColumnMapper<E> byOrdinal(Class<E> type)
E - the enum type to maptype - the enum type to mapEnum.ordinal()Copyright © 2019. All rights reserved.