Package org.hibernate.dialect
Class OracleJsonJdbcType
java.lang.Object
org.hibernate.type.descriptor.jdbc.JsonJdbcType
org.hibernate.type.descriptor.jdbc.OracleJsonBlobJdbcType
org.hibernate.dialect.OracleJsonJdbcType
- All Implemented Interfaces:
Serializable
,AggregateJdbcType
,JdbcType
Specialized type mapping for
JSON
and the JSON SQL data type for Oracle.- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetCheckCondition
(String columnName, JavaType<?> javaType, BasicValueConverter<?, ?> converter, Dialect dialect) The check constraint that should be added to the column definition in generated DDL.int
A JDBC type code that identifies the SQL column type to be used for schema generation.resolveAggregateJdbcType
(EmbeddableMappingType mappingType, String sqlType, RuntimeModelCreationContext creationContext) toString()
Methods inherited from class org.hibernate.type.descriptor.jdbc.OracleJsonBlobJdbcType
getBinder, getExtractor, getJdbcTypeCode
Methods inherited from class org.hibernate.type.descriptor.jdbc.JsonJdbcType
createJdbcValue, extractJdbcValues, fromString, getDefaultSqlTypeCode, getEmbeddableMappingType, getJdbcLiteralFormatter, 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, appendWriteExpression, getCastType, getExtraCreateTableInfo, getFriendlyName, 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
Singleton access
-
-
Method Details
-
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.- Specified by:
getDdlTypeCode
in interfaceJdbcType
- Overrides:
getDdlTypeCode
in classOracleJsonBlobJdbcType
- Returns:
- a JDBC type code
-
toString
- Overrides:
toString
in classOracleJsonBlobJdbcType
-
resolveAggregateJdbcType
public AggregateJdbcType resolveAggregateJdbcType(EmbeddableMappingType mappingType, String sqlType, RuntimeModelCreationContext creationContext) - Specified by:
resolveAggregateJdbcType
in interfaceAggregateJdbcType
- Overrides:
resolveAggregateJdbcType
in classOracleJsonBlobJdbcType
-
getCheckCondition
public String getCheckCondition(String columnName, JavaType<?> javaType, BasicValueConverter<?, ?> converter, Dialect dialect) Description copied from interface:JdbcType
The check constraint that should be added to the column definition in generated DDL.- Specified by:
getCheckCondition
in interfaceJdbcType
- Overrides:
getCheckCondition
in classOracleJsonBlobJdbcType
- Parameters:
columnName
- the name of the columnjavaType
- theJavaType
of the mapped columnconverter
- the converter, if any, or nulldialect
- the SQLDialect
- Returns:
- a check constraint condition or null
-