Package net.binis.codegen.hibernate
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 -
Method Summary
Modifier and TypeMethodDescriptionInterpret a numeric value as the ordinal of the enum typefromInteger(Integer relationalForm) Interpret a numeric value as the ordinal of the enum typeInterpret a numeric value as the ordinal of the enum typeInterpret a String value as the named value of the enum typefromOrdinal(Integer relationalForm) Interpret a numeric value as the ordinal of the enum typeInterpret a numeric value as the ordinal of the enum typefromString(CharSequence string) org.hibernate.type.descriptor.jdbc.JdbcTypegetRecommendedJdbcType(org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators context) Convert a value of the enum type to its ordinal valueConvert a value of the enum type to its ordinal valueConvert a value of the enum type to its ordinal valueConvert a value of the enum type to its name valueConvert a value of the enum type to its ordinal valueConvert a value of the enum type to its ordinal value<X> X<X> Twrap(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, unknownWrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
-
Method Details
-
getRecommendedJdbcType
public org.hibernate.type.descriptor.jdbc.JdbcType getRecommendedJdbcType(org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators context) -
toString
-
fromString
-
unwrap
-
wrap
-
toByte
Convert a value of the enum type to its ordinal value -
toShort
Convert a value of the enum type to its ordinal value -
toInteger
Convert a value of the enum type to its ordinal value -
toLong
Convert a value of the enum type to its ordinal value -
toOrdinal
Convert a value of the enum type to its ordinal value -
fromByte
Interpret a numeric value as the ordinal of the enum type -
fromShort
Interpret a numeric value as the ordinal of the enum type -
fromInteger
Interpret a numeric value as the ordinal of the enum type -
fromLong
Interpret a numeric value as the ordinal of the enum type -
fromOrdinal
Interpret a numeric value as the ordinal of the enum type -
toName
Convert a value of the enum type to its name value -
fromName
Interpret a String value as the named value of the enum type
-