Class StringType

Object
com.liferay.portal.dao.orm.hibernate.StringType
All Implemented Interfaces:
Serializable, org.hibernate.usertype.UserType

public class StringType extends Object implements Serializable, org.hibernate.usertype.UserType
Author:
Brian Wing Shun Chan
See Also:
  • Constructor Details

    • StringType

      public StringType()
  • Method Details

    • assemble

      public Object assemble(Serializable cached, Object owner)
      Specified by:
      assemble in interface org.hibernate.usertype.UserType
    • deepCopy

      public Object deepCopy(Object object)
      Specified by:
      deepCopy in interface org.hibernate.usertype.UserType
    • disassemble

      public Serializable disassemble(Object value)
      Specified by:
      disassemble in interface org.hibernate.usertype.UserType
    • equals

      public boolean equals(Object x, Object y)
      Specified by:
      equals in interface org.hibernate.usertype.UserType
    • hashCode

      public int hashCode(Object x)
      Specified by:
      hashCode in interface org.hibernate.usertype.UserType
    • isMutable

      public boolean isMutable()
      Specified by:
      isMutable in interface org.hibernate.usertype.UserType
    • nullSafeGet

      public Object nullSafeGet(ResultSet resultSet, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor sharedSessionContractImplementor, Object owner) throws SQLException
      Specified by:
      nullSafeGet in interface org.hibernate.usertype.UserType
      Throws:
      SQLException
    • nullSafeSet

      public void nullSafeSet(PreparedStatement preparedStatement, Object target, int index, org.hibernate.engine.spi.SharedSessionContractImplementor sharedSessionContractImplementor) throws SQLException
      Specified by:
      nullSafeSet in interface org.hibernate.usertype.UserType
      Throws:
      SQLException
    • replace

      public Object replace(Object original, Object target, Object owner)
      Specified by:
      replace in interface org.hibernate.usertype.UserType
    • returnedClass

      public Class<String> returnedClass()
      Specified by:
      returnedClass in interface org.hibernate.usertype.UserType
    • sqlTypes

      public int[] sqlTypes()
      Specified by:
      sqlTypes in interface org.hibernate.usertype.UserType