Package io.ebeaninternal.server.type
Class ScalarTypeDayOfWeek
- java.lang.Object
-
- io.ebeaninternal.server.type.ScalarTypeBase
-
- io.ebeaninternal.server.type.ScalarTypeEnumStandard.EnumBase
-
- io.ebeaninternal.server.type.ScalarTypeEnumWithMapping
-
- io.ebeaninternal.server.type.ScalarTypeDayOfWeek
-
- All Implemented Interfaces:
StringFormatter
,StringParser
,ScalarDataReader
,ScalarType
,ScalarTypeEnum
public class ScalarTypeDayOfWeek extends ScalarTypeEnumWithMapping
ScalarType mapping for Month enum.
-
-
Constructor Summary
Constructors Constructor Description ScalarTypeDayOfWeek()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(DataBind b, Object value)
Bind DayOfWeek enum using getValue().boolean
isOverrideBy(javax.persistence.EnumType type)
We allow this to be overridden by a JPA EnumType.Object
read(DataReader dataReader)
Read DayOfWeek using int value.-
Methods inherited from class io.ebeaninternal.server.type.ScalarTypeEnumWithMapping
asVersion, getDbCheckConstraintValues, getLength, isBinaryType, isCompatible, toBeanType, toJdbcType
-
Methods inherited from class io.ebeaninternal.server.type.ScalarTypeEnumStandard.EnumBase
convertFromMillis, format, formatValue, getDocType, isDateTimeCapable, jsonRead, jsonWrite, parse, readData, writeData
-
Methods inherited from class io.ebeaninternal.server.type.ScalarTypeBase
getJdbcType, getType, isDirty, isJdbcNative, isMutable, loadIgnore
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.ebeaninternal.server.type.ScalarType
convertFromMillis, format, formatValue, getDocType, getJdbcType, getType, isDateTimeCapable, isDirty, isJdbcNative, isMutable, jsonRead, jsonWrite, loadIgnore, parse, readData, writeData
-
-
-
-
Constructor Detail
-
ScalarTypeDayOfWeek
public ScalarTypeDayOfWeek()
-
-
Method Detail
-
isOverrideBy
public boolean isOverrideBy(javax.persistence.EnumType type)
We allow this to be overridden by a JPA EnumType.
-
bind
public void bind(DataBind b, Object value) throws SQLException
Bind DayOfWeek enum using getValue().- Specified by:
bind
in interfaceScalarType
- Overrides:
bind
in classScalarTypeEnumWithMapping
- Throws:
SQLException
-
read
public Object read(DataReader dataReader) throws SQLException
Read DayOfWeek using int value.- Specified by:
read
in interfaceScalarDataReader
- Specified by:
read
in interfaceScalarType
- Overrides:
read
in classScalarTypeEnumWithMapping
- Throws:
SQLException
-
-