Interface JdbcTypeConstructor
-
- All Known Implementing Classes:
ArrayJdbcTypeConstructor,OracleArrayJdbcTypeConstructor,OracleNestedTableJdbcTypeConstructor,PostgreSQLArrayJdbcTypeConstructor
public interface JdbcTypeConstructorFactory for anyJdbcTypewhich is parameterized by a secondJdbcType, the "element" type.For example,
ArrayJdbcTypeis parameterized by the type of its elements.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description intgetDefaultSqlTypeCode()default JdbcTyperesolveType(TypeConfiguration typeConfiguration, Dialect dialect, BasicType<?> elementType, ColumnTypeInformation columnTypeInformation)Called byArrayJavaTypeand friends.JdbcTyperesolveType(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 inferringJdbcTypes from a JDBCResultSetor when reverse-engineering a schema.
-
-
-
Method Detail
-
resolveType
default JdbcType resolveType(TypeConfiguration typeConfiguration, Dialect dialect, BasicType<?> elementType, ColumnTypeInformation columnTypeInformation)
Called byArrayJavaTypeand 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 inferringJdbcTypes from a JDBCResultSetor when reverse-engineering a schema. Here we do not have a knownBasicType.
-
getDefaultSqlTypeCode
int getDefaultSqlTypeCode()
-
-