Package org.jdbi.v3.core.enums
Class Enums
java.lang.Object
org.jdbi.v3.core.enums.Enums
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of this configuration object.Returns the default strategy to use for mapping and binding enums, in the absence of aEnumByName
orEnumByOrdinal
qualifying annotation.setEnumStrategy
(EnumStrategy enumStrategy) Sets the default strategy for mapping and binding enums.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jdbi.v3.core.config.JdbiConfig
setRegistry
-
Constructor Details
-
Enums
public Enums()
-
-
Method Details
-
getDefaultStrategy
Returns the default strategy to use for mapping and binding enums, in the absence of aEnumByName
orEnumByOrdinal
qualifying annotation. The default default isEnumStrategy.BY_NAME
. -
setEnumStrategy
Sets the default strategy for mapping and binding enums.- Parameters:
enumStrategy
- the new strategy- Returns:
- this Enums instance, for chaining
-
createCopy
Description copied from interface:JdbiConfig
Returns a copy of this configuration object. Changes to the copy should not modify the original, and vice-versa.- Specified by:
createCopy
in interfaceJdbiConfig<Enums>
- Returns:
- a copy of this configuration object.
-