Class CodeEnumJavaType<T extends net.binis.codegen.objects.base.enumeration.CodeEnum>

java.lang.Object
org.hibernate.type.descriptor.java.AbstractClassJavaType<T>
net.binis.codegen.hibernate.CodeEnumJavaType<T>
All Implemented Interfaces:
Serializable, org.hibernate.type.descriptor.java.BasicJavaType<T>, org.hibernate.type.descriptor.java.JavaType<T>

public class CodeEnumJavaType<T extends net.binis.codegen.objects.base.enumeration.CodeEnum> extends org.hibernate.type.descriptor.java.AbstractClassJavaType<T>
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.hibernate.type.descriptor.java.JavaType

    org.hibernate.type.descriptor.java.JavaType.CoercionContext
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    fromByte(Byte relationalForm)
    Interpret a numeric value as the ordinal of the enum type
    fromInteger(Integer relationalForm)
    Interpret a numeric value as the ordinal of the enum type
    fromLong(Long relationalForm)
    Interpret a numeric value as the ordinal of the enum type
    fromName(String relationalForm)
    Interpret a String value as the named value of the enum type
    fromOrdinal(Integer relationalForm)
    Interpret a numeric value as the ordinal of the enum type
    fromShort(Short relationalForm)
    Interpret a numeric value as the ordinal of the enum type
     
    org.hibernate.type.descriptor.jdbc.JdbcType
    getRecommendedJdbcType(org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators context)
     
    toByte(T domainForm)
    Convert a value of the enum type to its ordinal value
    toInteger(T domainForm)
    Convert a value of the enum type to its ordinal value
    toLong(T domainForm)
    Convert a value of the enum type to its ordinal value
    toName(T domainForm)
    Convert a value of the enum type to its name value
    toOrdinal(T domainForm)
    Convert a value of the enum type to its ordinal value
    toShort(T domainForm)
    Convert a value of the enum type to its ordinal value
    toString(T value)
     
    <X> X
    unwrap(T value, Class<X> type, org.hibernate.type.descriptor.WrapperOptions options)
     
    <X> T
    wrap(X value, org.hibernate.type.descriptor.WrapperOptions options)
     

    Methods inherited from class org.hibernate.type.descriptor.java.AbstractClassJavaType

    areEqual, extractHashCode, extractLoggableRepresentation, getComparator, getJavaType, getJavaTypeClass, getMutabilityPlan, unknownUnwrap, unknownWrap

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.hibernate.type.descriptor.java.JavaType

    appendEncodedString, coerce, createJavaType, createJavaType, fromEncodedString, getCheckCondition, getDefaultSqlLength, getDefaultSqlPrecision, getDefaultSqlScale, getDefaultValue, getLongSqlLength, getReplacement, getTypeName, isInstance, isTemporalType, isWider
  • Constructor Details

    • CodeEnumJavaType

      public CodeEnumJavaType(Class<T> type)
  • Method Details

    • getRecommendedJdbcType

      public org.hibernate.type.descriptor.jdbc.JdbcType getRecommendedJdbcType(org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators context)
    • toString

      public String toString(T value)
    • fromString

      public T fromString(CharSequence string)
    • unwrap

      public <X> X unwrap(T value, Class<X> type, org.hibernate.type.descriptor.WrapperOptions options)
    • wrap

      public <X> T wrap(X value, org.hibernate.type.descriptor.WrapperOptions options)
    • toByte

      public Byte toByte(T domainForm)
      Convert a value of the enum type to its ordinal value
    • toShort

      public Short toShort(T domainForm)
      Convert a value of the enum type to its ordinal value
    • toInteger

      public Integer toInteger(T domainForm)
      Convert a value of the enum type to its ordinal value
    • toLong

      public Long toLong(T domainForm)
      Convert a value of the enum type to its ordinal value
    • toOrdinal

      public Integer toOrdinal(T domainForm)
      Convert a value of the enum type to its ordinal value
    • fromByte

      public T fromByte(Byte relationalForm)
      Interpret a numeric value as the ordinal of the enum type
    • fromShort

      public T fromShort(Short relationalForm)
      Interpret a numeric value as the ordinal of the enum type
    • fromInteger

      public T fromInteger(Integer relationalForm)
      Interpret a numeric value as the ordinal of the enum type
    • fromLong

      public T fromLong(Long relationalForm)
      Interpret a numeric value as the ordinal of the enum type
    • fromOrdinal

      public T fromOrdinal(Integer relationalForm)
      Interpret a numeric value as the ordinal of the enum type
    • toName

      public String toName(T domainForm)
      Convert a value of the enum type to its name value
    • fromName

      public T fromName(String relationalForm)
      Interpret a String value as the named value of the enum type