Package org.hibernate.dialect
Class PostgreSQLArrayJdbcTypeConstructor
- java.lang.Object
-
- org.hibernate.dialect.PostgreSQLArrayJdbcTypeConstructor
-
- All Implemented Interfaces:
JdbcTypeConstructor
public class PostgreSQLArrayJdbcTypeConstructor extends Object implements JdbcTypeConstructor
Factory forPostgreSQLArrayJdbcType.
-
-
Field Summary
Fields Modifier and Type Field Description static PostgreSQLArrayJdbcTypeConstructorINSTANCE
-
Constructor Summary
Constructors Constructor Description PostgreSQLArrayJdbcTypeConstructor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDefaultSqlTypeCode()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.
-
-
-
Field Detail
-
INSTANCE
public static final PostgreSQLArrayJdbcTypeConstructor INSTANCE
-
-
Method Detail
-
resolveType
public JdbcType resolveType(TypeConfiguration typeConfiguration, Dialect dialect, BasicType<?> elementType, ColumnTypeInformation columnTypeInformation)
Description copied from interface:JdbcTypeConstructorCalled byArrayJavaTypeand friends. Here we already know the type argument, which we're given as aBasicType.- Specified by:
resolveTypein interfaceJdbcTypeConstructor
-
resolveType
public JdbcType resolveType(TypeConfiguration typeConfiguration, Dialect dialect, JdbcType elementType, ColumnTypeInformation columnTypeInformation)
Description copied from interface:JdbcTypeConstructorCalled 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.- Specified by:
resolveTypein interfaceJdbcTypeConstructor
-
getDefaultSqlTypeCode
public int getDefaultSqlTypeCode()
- Specified by:
getDefaultSqlTypeCodein interfaceJdbcTypeConstructor
-
-