Package org.hibernate.dialect
Class PostgreSQLCastingJsonArrayJdbcTypeConstructor
java.lang.Object
org.hibernate.dialect.PostgreSQLCastingJsonArrayJdbcTypeConstructor
- All Implemented Interfaces:
JdbcTypeConstructor
public class PostgreSQLCastingJsonArrayJdbcTypeConstructor
extends Object
implements JdbcTypeConstructor
Factory for
PostgreSQLCastingJsonArrayJdbcType
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PostgreSQLCastingJsonArrayJdbcTypeConstructor
static final PostgreSQLCastingJsonArrayJdbcTypeConstructor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
resolveType
(TypeConfiguration typeConfiguration, Dialect dialect, BasicType<?> elementType, ColumnTypeInformation columnTypeInformation) Called byArrayJavaType
and friends.resolveType
(TypeConfiguration typeConfiguration, Dialect dialect, JdbcType elementType, ColumnTypeInformation columnTypeInformation) Called fromDialect.resolveSqlTypeDescriptor(java.lang.String, int, int, int, org.hibernate.type.descriptor.jdbc.spi.JdbcTypeRegistry)
when inferringJdbcType
s from a JDBCResultSet
or when reverse-engineering a schema.
-
Field Details
-
JSONB_INSTANCE
-
JSON_INSTANCE
-
-
Constructor Details
-
PostgreSQLCastingJsonArrayJdbcTypeConstructor
public PostgreSQLCastingJsonArrayJdbcTypeConstructor(boolean jsonb)
-
-
Method Details
-
resolveType
public JdbcType resolveType(TypeConfiguration typeConfiguration, Dialect dialect, BasicType<?> elementType, ColumnTypeInformation columnTypeInformation) Description copied from interface:JdbcTypeConstructor
Called byArrayJavaType
and friends. Here we already know the type argument, which we're given as aBasicType
.- Specified by:
resolveType
in interfaceJdbcTypeConstructor
-
resolveType
public JdbcType resolveType(TypeConfiguration typeConfiguration, Dialect dialect, JdbcType elementType, ColumnTypeInformation columnTypeInformation) Description copied from interface:JdbcTypeConstructor
Called fromDialect.resolveSqlTypeDescriptor(java.lang.String, int, int, int, org.hibernate.type.descriptor.jdbc.spi.JdbcTypeRegistry)
when inferringJdbcType
s from a JDBCResultSet
or when reverse-engineering a schema. Here we do not have a knownBasicType
.- Specified by:
resolveType
in interfaceJdbcTypeConstructor
-
getDefaultSqlTypeCode
public int getDefaultSqlTypeCode()- Specified by:
getDefaultSqlTypeCode
in interfaceJdbcTypeConstructor
-