Class PostgreSQLCITextType

  • All Implemented Interfaces:
    java.io.Serializable, org.hibernate.type.Type, org.hibernate.usertype.UserType

    public class PostgreSQLCITextType
    extends ImmutableType<java.lang.String>
    Maps a String object type to a PostgreSQL citext column type.
    See Also:
    Serialized Form
    • Constructor Detail

      • PostgreSQLCITextType

        public PostgreSQLCITextType()
    • Method Detail

      • sqlTypes

        public int[] sqlTypes()
      • get

        protected java.lang.String get​(java.sql.ResultSet rs,
                                       java.lang.String[] names,
                                       org.hibernate.engine.spi.SharedSessionContractImplementor session,
                                       java.lang.Object owner)
                                throws java.sql.SQLException
        Description copied from class: ImmutableType
        Get the column value from the JDBC ResultSet.
        Specified by:
        get in class ImmutableType<java.lang.String>
        Parameters:
        rs - JDBC ResultSet
        names - database column name
        session - current Hibernate Session
        owner - current Hibernate SessionFactoryImplementor
        Returns:
        column value
        Throws:
        java.sql.SQLException - in case of failure
      • set

        protected void set​(java.sql.PreparedStatement st,
                           java.lang.String value,
                           int index,
                           org.hibernate.engine.spi.SharedSessionContractImplementor session)
                    throws java.sql.SQLException
        Description copied from class: ImmutableType
        Set the column value on the provided JDBC PreparedStatement.
        Specified by:
        set in class ImmutableType<java.lang.String>
        Parameters:
        st - JDBC PreparedStatement
        value - database column value
        index - database column index
        session - current Hibernate Session
        Throws:
        java.sql.SQLException - in case of failure