Class StringCollectionUserType<V,C extends Collection<V>>
java.lang.Object
google.registry.persistence.converter.StringCollectionUserType<V,C>
- Type Parameters:
V
- Type parameter for collection values.C
- Type parameter for collection.
- All Implemented Interfaces:
org.hibernate.usertype.UserType<C>
- Direct Known Subclasses:
AllocationTokenVkeyListUserType
,CidrBlockListUserType
,InetAddressSetUserType
,PostalInfoChoiceListUserType
public abstract class StringCollectionUserType<V,C extends Collection<V>>
extends Object
implements org.hibernate.usertype.UserType<C>
Base Hibernate custom type for
Collection
of entities backed by a postgresql
one-dimension text array.
Note that Hibernate 6 and later have builtin support for collections of primitive, Enum and String types. Use this class on collection of user-defined entities.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassemble
(Serializable serializable, Object o) disassemble
(C collection) boolean
int
int
boolean
nullSafeGet
(ResultSet resultSet, int i, org.hibernate.engine.spi.SharedSessionContractImplementor sharedSessionContractImplementor, Object o) void
nullSafeSet
(PreparedStatement preparedStatement, C collection, int i, org.hibernate.engine.spi.SharedSessionContractImplementor sharedSessionContractImplementor) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.usertype.UserType
getDefaultSqlLength, getDefaultSqlPrecision, getDefaultSqlScale, getJdbcType, getValueConverter, replace, returnedClass
-
Constructor Details
-
StringCollectionUserType
public StringCollectionUserType()
-
-
Method Details
-
getSqlType
public int getSqlType()- Specified by:
getSqlType
in interfaceorg.hibernate.usertype.UserType<V>
-
equals
- Specified by:
equals
in interfaceorg.hibernate.usertype.UserType<V>
-
hashCode
- Specified by:
hashCode
in interfaceorg.hibernate.usertype.UserType<V>
-
deepCopy
- Specified by:
deepCopy
in interfaceorg.hibernate.usertype.UserType<V>
-
isMutable
public boolean isMutable()- Specified by:
isMutable
in interfaceorg.hibernate.usertype.UserType<V>
-
disassemble
- Specified by:
disassemble
in interfaceorg.hibernate.usertype.UserType<V>
-
assemble
- Specified by:
assemble
in interfaceorg.hibernate.usertype.UserType<V>
-