Class OrdinalEnumJdbcType
- java.lang.Object
-
- org.hibernate.type.descriptor.jdbc.EnumJdbcType
-
- org.hibernate.type.descriptor.jdbc.OrdinalEnumJdbcType
-
- All Implemented Interfaces:
Serializable,JdbcType
public class OrdinalEnumJdbcType extends EnumJdbcType
Represents anenumtype for databases like MySQL and H2.Hibernate will automatically use this for enums mapped as
EnumType.ORDINAL.
-
-
Field Summary
Fields Modifier and Type Field Description static OrdinalEnumJdbcTypeINSTANCE
-
Constructor Summary
Constructors Constructor Description OrdinalEnumJdbcType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDefaultSqlTypeCode()A JDBC type code that identifies the SQL column type.-
Methods inherited from class org.hibernate.type.descriptor.jdbc.EnumJdbcType
getBinder, getExtractor, getFriendlyName, getJdbcLiteralFormatter, getJdbcTypeCode
-
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.jdbc.JdbcType
addAuxiliaryDatabaseObjects, addAuxiliaryDatabaseObjects, appendWriteExpression, getCastType, getCheckCondition, getDdlTypeCode, getExtraCreateTableInfo, getJdbcRecommendedJavaTypeMapping, getPreferredJavaTypeClass, hasDatePart, hasTimePart, isArray, isBinary, isBoolean, isComparable, isDecimal, isDuration, isFloat, isInteger, isInterval, isLob, isLobOrLong, isNationalized, isNumber, isSmallInteger, isSpatial, isString, isStringLike, isStringLikeExcludingClob, isTemporal, registerOutParameter, registerOutParameter, wrapTopLevelSelectionExpression, wrapWriteExpression
-
-
-
-
Field Detail
-
INSTANCE
public static final OrdinalEnumJdbcType INSTANCE
-
-
Method Detail
-
getDefaultSqlTypeCode
public int getDefaultSqlTypeCode()
Description copied from interface:JdbcTypeA JDBC type code that identifies the SQL column type.This value might be different from
JdbcType.getDdlTypeCode()if the actual type e.g. JSON is emulated through a type like CLOB.- Specified by:
getDefaultSqlTypeCodein interfaceJdbcType- Overrides:
getDefaultSqlTypeCodein classEnumJdbcType- Returns:
- a JDBC type code
-
-