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 PostgreSQLArrayJdbcTypeConstructor
INSTANCE
-
Constructor Summary
Constructors Constructor Description PostgreSQLArrayJdbcTypeConstructor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDefaultSqlTypeCode()
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.
-
-
-
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: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
-
-