com.vladmihalcea.hibernate.type.basic
Class PostgreSQLTSVectorType

java.lang.Object
  extended by com.vladmihalcea.hibernate.type.ImmutableType<String>
      extended by com.vladmihalcea.hibernate.type.basic.PostgreSQLTSVectorType
All Implemented Interfaces:
Serializable, org.hibernate.type.Type, org.hibernate.usertype.UserType

public class PostgreSQLTSVectorType
extends ImmutableType<String>

Maps a String object type to a PostgreSQL TSVector column type.

Author:
Vlad Mihalcea, Philip Riecks
See Also:
Serialized Form

Constructor Summary
PostgreSQLTSVectorType()
           
 
Method Summary
protected  String get(ResultSet rs, String[] names, org.hibernate.engine.spi.SessionImplementor session, Object owner)
          Get the column value from the JDBC ResultSet.
protected  void set(PreparedStatement st, String value, int index, org.hibernate.engine.spi.SessionImplementor session)
          Set the column value on the provided JDBC PreparedStatement.
 int[] sqlTypes()
           
 
Methods inherited from class com.vladmihalcea.hibernate.type.ImmutableType
assemble, assemble, beforeAssemble, compare, deepCopy, deepCopy, defaultSizes, dictatedSizes, disassemble, disassemble, equals, getColumnSpan, getConfiguration, getHashCode, getHashCode, getName, getReturnedClass, getSemiResolvedType, hashCode, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, replace, replace, replace, resolve, returnedClass, semiResolve, sqlTypes, toColumnNullness, toLoggableString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostgreSQLTSVectorType

public PostgreSQLTSVectorType()
Method Detail

sqlTypes

public int[] sqlTypes()

get

protected String get(ResultSet rs,
                     String[] names,
                     org.hibernate.engine.spi.SessionImplementor session,
                     Object owner)
              throws SQLException
Description copied from class: ImmutableType
Get the column value from the JDBC ResultSet.

Specified by:
get in class ImmutableType<String>
Parameters:
rs - JDBC ResultSet
names - database column name
session - current Hibernate Session
owner - current Hibernate SessionFactory
Returns:
column value
Throws:
SQLException - in case of failure

set

protected void set(PreparedStatement st,
                   String value,
                   int index,
                   org.hibernate.engine.spi.SessionImplementor session)
            throws SQLException
Description copied from class: ImmutableType
Set the column value on the provided JDBC PreparedStatement.

Specified by:
set in class ImmutableType<String>
Parameters:
st - JDBC PreparedStatement
value - database column value
index - database column index
session - current Hibernate Session
Throws:
SQLException - in case of failure


Copyright © 2020. All rights reserved.