Package io.ebeaninternal.server.type
Class EnumToDbStringMap
- java.lang.Object
-
- io.ebeaninternal.server.type.EnumToDbValueMap<String>
-
- io.ebeaninternal.server.type.EnumToDbStringMap
-
public class EnumToDbStringMap extends EnumToDbValueMap<String>
Used to map Enum values to database string/varchar values.
-
-
Constructor Summary
Constructors Constructor Description EnumToDbStringMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnumToDbStringMap
add(Object beanValue, String dbValue, String name)
Add name value pair where the dbValue is the raw string and may need to be converted (to an Integer for example).void
bind(DataBind b, Object value)
Bind using the correct database type.int
getDbType()
Return the database type.Object
read(DataReader dataReader)
Read using the correct database type.-
Methods inherited from class io.ebeaninternal.server.type.EnumToDbValueMap
create, dbValues, getBeanValue, getDbValue, isIntegerType
-
-
-
-
Constructor Detail
-
EnumToDbStringMap
public EnumToDbStringMap()
-
-
Method Detail
-
getDbType
public int getDbType()
Description copied from class:EnumToDbValueMap
Return the database type.- Specified by:
getDbType
in classEnumToDbValueMap<String>
-
add
public EnumToDbStringMap add(Object beanValue, String dbValue, String name)
Description copied from class:EnumToDbValueMap
Add name value pair where the dbValue is the raw string and may need to be converted (to an Integer for example).- Specified by:
add
in classEnumToDbValueMap<String>
-
bind
public void bind(DataBind b, Object value) throws SQLException
Description copied from class:EnumToDbValueMap
Bind using the correct database type.- Specified by:
bind
in classEnumToDbValueMap<String>
- Throws:
SQLException
-
read
public Object read(DataReader dataReader) throws SQLException
Description copied from class:EnumToDbValueMap
Read using the correct database type.- Specified by:
read
in classEnumToDbValueMap<String>
- Throws:
SQLException
-
-