Package io.ebeaninternal.server.type
Class ScalarTypeMonth
- java.lang.Object
-
- io.ebeaninternal.server.type.ScalarTypeBase
-
- io.ebeaninternal.server.type.ScalarTypeEnumStandard.EnumBase
-
- io.ebeaninternal.server.type.ScalarTypeEnumWithMapping
-
- io.ebeaninternal.server.type.ScalarTypeMonth
-
- All Implemented Interfaces:
StringFormatter
,StringParser
,ScalarDataReader
,ScalarType
,ScalarTypeEnum
public class ScalarTypeMonth extends ScalarTypeEnumWithMapping
ScalarType mapping for Month enum.
-
-
Constructor Summary
Constructors Constructor Description ScalarTypeMonth()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(DataBind b, Object value)
Bind Month enum value.boolean
isOverrideBy(javax.persistence.EnumType type)
We allow this to be overridden by a JPA EnumType.Object
read(DataReader dataReader)
Read Month enum from integer.-
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
-
ScalarTypeMonth
public ScalarTypeMonth()
-
-
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 Month enum value.- Specified by:
bind
in interfaceScalarType
- Overrides:
bind
in classScalarTypeEnumWithMapping
- Throws:
SQLException
-
read
public Object read(DataReader dataReader) throws SQLException
Read Month enum from integer.- Specified by:
read
in interfaceScalarDataReader
- Specified by:
read
in interfaceScalarType
- Overrides:
read
in classScalarTypeEnumWithMapping
- Throws:
SQLException
-
-