Package org.hibernate.dialect.type
Class PostgreSQLOrdinalEnumJdbcType
java.lang.Object
org.hibernate.dialect.type.PostgreSQLEnumJdbcType
org.hibernate.dialect.type.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.type.PostgreSQLEnumJdbcType
addAuxiliaryDatabaseObjects, getBinder, getExtractor, getFriendlyName, getJdbcLiteralFormatter, getJdbcTypeCode, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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: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 classPostgreSQLEnumJdbcType- Returns:
- a JDBC type code
-