Package org.hibernate.dialect
Class PostgreSQLOrdinalEnumJdbcType
java.lang.Object
org.hibernate.dialect.PostgreSQLEnumJdbcType
org.hibernate.dialect.PostgreSQLOrdinalEnumJdbcType
- All Implemented Interfaces:
Serializable
,JdbcType
Represents a named
enum
type on PostgreSQL.
Hibernate does not automatically use this for enums
mapped as EnumType.ORDINAL
, and
instead this type must be explicitly requested using:
@JdbcTypeCode(SqlTypes.NAMED_ORDINAL_ENUM)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.hibernate.dialect.PostgreSQLEnumJdbcType
addAuxiliaryDatabaseObjects, getBinder, getExtractor, getFriendlyName, getJdbcLiteralFormatter, getJdbcTypeCode, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hibernate.type.descriptor.jdbc.JdbcType
appendWriteExpression, getCastType, getCheckCondition, getDdlTypeCode, getExtraCreateTableInfo, getJdbcRecommendedJavaTypeMapping, getPreferredJavaTypeClass, hasDatePart, hasTimePart, isArray, isBinary, isBoolean, isComparable, isDecimal, isDuration, isFloat, isImplicitJson, isImplicitXml, isInteger, isInterval, isJson, isLob, isLobOrLong, isNationalized, isNumber, isSmallInteger, isSpatial, isString, isStringLike, isStringLikeExcludingClob, isTemporal, isXml, registerOutParameter, registerOutParameter, wrapTopLevelSelectionExpression, wrapWriteExpression
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
PostgreSQLOrdinalEnumJdbcType
public PostgreSQLOrdinalEnumJdbcType()
-
-
Method Details
-
getDefaultSqlTypeCode
public int getDefaultSqlTypeCode()Description copied from interface:JdbcType
A 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:
getDefaultSqlTypeCode
in interfaceJdbcType
- Overrides:
getDefaultSqlTypeCode
in classPostgreSQLEnumJdbcType
- Returns:
- a JDBC type code
-