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
public class PostgreSQLCastingJsonJdbcType extends JsonJdbcType
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static PostgreSQLCastingJsonJdbcType
JSON_INSTANCE
static PostgreSQLCastingJsonJdbcType
JSONB_INSTANCE
-
Fields inherited from class org.hibernate.type.descriptor.jdbc.JsonJdbcType
INSTANCE
-
-
Constructor Summary
Constructors Constructor Description PostgreSQLCastingJsonJdbcType(boolean jsonb, EmbeddableMappingType embeddableMappingType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendWriteExpression(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.int
getDdlTypeCode()
A JDBC type code that identifies the SQL column type to be used for schema generation.AggregateJdbcType
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, 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
addAuxiliaryDatabaseObjects, getCastType, getCheckCondition, getExtraCreateTableInfo, getFriendlyName, getJdbcRecommendedJavaTypeMapping, getPreferredJavaTypeClass, isBinary, isDecimal, isFloat, isInteger, isInterval, isLob, isLobOrLong, isNationalized, isNumber, isString, isStringLike, isTemporal, registerOutParameter, registerOutParameter, wrapTopLevelSelectionExpression, wrapWriteExpression
-
-
-
-
Field Detail
-
JSON_INSTANCE
public static final PostgreSQLCastingJsonJdbcType JSON_INSTANCE
-
JSONB_INSTANCE
public static final PostgreSQLCastingJsonJdbcType JSONB_INSTANCE
-
-
Constructor Detail
-
PostgreSQLCastingJsonJdbcType
public PostgreSQLCastingJsonJdbcType(boolean jsonb, EmbeddableMappingType embeddableMappingType)
-
-
Method Detail
-
getDdlTypeCode
public int getDdlTypeCode()
Description copied from interface:JdbcType
A 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:
resolveAggregateJdbcType
in interfaceAggregateJdbcType
- Overrides:
resolveAggregateJdbcType
in classJsonJdbcType
-
appendWriteExpression
public void appendWriteExpression(String writeExpression, SqlAppender appender, Dialect dialect)
Description copied from interface:JdbcType
Append the write expression wrapped in a way to be able to write values with this JdbcType's ValueBinder.
-
-