Interface JdbcTypeConstructor
-
- All Known Implementing Classes:
ArrayJdbcTypeConstructor
,OracleArrayJdbcTypeConstructor
,OracleNestedTableJdbcTypeConstructor
,PostgreSQLArrayJdbcTypeConstructor
public interface JdbcTypeConstructor
Factory for anyJdbcType
which is parameterized by a secondJdbcType
, the "element" type.For example,
ArrayJdbcType
is parameterized by the type of its elements.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description int
getDefaultSqlTypeCode()
default JdbcType
resolveType(TypeConfiguration typeConfiguration, Dialect dialect, BasicType<?> elementType, ColumnTypeInformation columnTypeInformation)
Called byArrayJavaType
and friends.JdbcType
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.
-
-
-
Method Detail
-
resolveType
default JdbcType resolveType(TypeConfiguration typeConfiguration, Dialect dialect, BasicType<?> elementType, ColumnTypeInformation columnTypeInformation)
Called byArrayJavaType
and friends. Here we already know the type argument, which we're given as aBasicType
.
-
resolveType
JdbcType 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. Here we do not have a knownBasicType
.
-
getDefaultSqlTypeCode
int getDefaultSqlTypeCode()
-
-