Interface ScalarTypeEnum<T>

All Superinterfaces:
io.ebean.core.type.ScalarDataReader<T>, io.ebean.core.type.ScalarType<T>, io.ebean.text.StringFormatter, io.ebean.text.StringParser

public interface ScalarTypeEnum<T> extends io.ebean.core.type.ScalarType<T>
Marker interface for the Enum scalar types.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the IN values for DB constraint construction.
    boolean
    isCompatible(jakarta.persistence.EnumType enumType)
    Return true if the scalar type is compatible with the specified enum type.
    default boolean
    isOverrideBy(jakarta.persistence.EnumType type)
    Return true if we allow this scalar enum type to be overridden.

    Methods inherited from interface io.ebean.core.type.ScalarType

    asVersion, binary, bind, docType, format, formatValue, isDirty, jdbcNative, jdbcType, jsonMapper, jsonRead, jsonWrite, length, mutable, parse, read, readData, toBeanType, toJdbcType, type, writeData
  • Method Details

    • getDbCheckConstraintValues

      Set<String> getDbCheckConstraintValues()
      Return the IN values for DB constraint construction.
    • isOverrideBy

      default boolean isOverrideBy(jakarta.persistence.EnumType type)
      Return true if we allow this scalar enum type to be overridden. Ability to override the built-in support for java time DayOfWeek and Month.
    • isCompatible

      boolean isCompatible(jakarta.persistence.EnumType enumType)
      Return true if the scalar type is compatible with the specified enum type.