Class OrdinalEnumJdbcType
java.lang.Object
org.hibernate.type.descriptor.jdbc.EnumJdbcType
org.hibernate.type.descriptor.jdbc.OrdinalEnumJdbcType
- All Implemented Interfaces:
Serializable,JdbcType
Represents an
enum type for databases like MySQL and H2.
Hibernate will automatically use this for enums mapped
as EnumType.ORDINAL.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.hibernate.type.descriptor.jdbc.EnumJdbcType
getBinder, getExtractor, getFriendlyName, getJdbcLiteralFormatter, getJdbcTypeCodeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 Details
-
INSTANCE
-
-
Constructor Details
-
OrdinalEnumJdbcType
public OrdinalEnumJdbcType()
-
-
Method Details
-
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
-