Package org.hibernate.dialect
Class PostgreSQLCastingJsonJdbcType
java.lang.Object
org.hibernate.type.descriptor.jdbc.JsonJdbcType
org.hibernate.dialect.PostgreSQLCastingJsonJdbcType
- All Implemented Interfaces:
Serializable,AggregateJdbcType,JdbcType
- Author:
- Christian Beikov
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PostgreSQLCastingJsonJdbcTypestatic final PostgreSQLCastingJsonJdbcTypeFields inherited from class org.hibernate.type.descriptor.jdbc.JsonJdbcType
INSTANCE -
Constructor Summary
ConstructorsConstructorDescriptionPostgreSQLCastingJsonJdbcType(boolean jsonb, EmbeddableMappingType embeddableMappingType) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendWriteExpression(String writeExpression, SqlAppender appender, Dialect dialect) Append the write expression wrapped in a way to be able to write values with this JdbcType's ValueBinder.intA JDBC type code that identifies the SQL column type to be used for schema generation.resolveAggregateJdbcType(EmbeddableMappingType mappingType, String sqlType, RuntimeModelCreationContext creationContext) Methods inherited from class org.hibernate.type.descriptor.jdbc.JsonJdbcType
createJdbcValue, extractJdbcValues, fromString, getBinder, getDefaultSqlTypeCode, getEmbeddableMappingType, getExtractor, getJdbcLiteralFormatter, getJdbcTypeCode, toString, 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
addAuxiliaryDatabaseObjects, addAuxiliaryDatabaseObjects, getCastType, getCheckCondition, getExtraCreateTableInfo, getFriendlyName, 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
-
JSON_INSTANCE
-
JSONB_INSTANCE
-
-
Constructor Details
-
PostgreSQLCastingJsonJdbcType
-
-
Method Details
-
getDdlTypeCode
public int getDdlTypeCode()Description copied from interface:JdbcTypeA JDBC type code that identifies the SQL column type to be used for schema generation.This value is passed to
DdlTypeRegistry.getTypeName(int, Size, Type)to obtain the SQL column type.- Returns:
- a JDBC type code
-
resolveAggregateJdbcType
public AggregateJdbcType resolveAggregateJdbcType(EmbeddableMappingType mappingType, String sqlType, RuntimeModelCreationContext creationContext) - Specified by:
resolveAggregateJdbcTypein interfaceAggregateJdbcType- Overrides:
resolveAggregateJdbcTypein classJsonJdbcType
-
appendWriteExpression
Description copied from interface:JdbcTypeAppend the write expression wrapped in a way to be able to write values with this JdbcType's ValueBinder.
-