Dashboard Builder Commons 6.2.0.CR4

org.jboss.dashboard.database.hibernate
Class StringBlobType

java.lang.Object
  extended by org.jboss.dashboard.database.hibernate.StringBlobType
All Implemented Interfaces:
Serializable, org.hibernate.usertype.UserType

public class StringBlobType
extends Object
implements org.hibernate.usertype.UserType, Serializable

Note that we don't use CLOBs to avoid ORACLE handling the encoding. We just store String bytes using default encoding, so encoding related problems rely always in our application.

See Also:
Serialized Form

Field Summary
static String STRING_ENCODING
           
 
Constructor Summary
StringBlobType()
           
 
Method Summary
 Object assemble(Serializable serializable, Object owner)
           
 Object deepCopy(Object value)
           
 Serializable disassemble(Object o)
           
 boolean equals(Object x, Object y)
           
 int hashCode(Object o)
           
 boolean isMutable()
           
 Object nullSafeGet(ResultSet rs, String[] names, org.hibernate.engine.spi.SessionImplementor session, Object owner)
           
 void nullSafeSet(PreparedStatement st, Object value, int index, org.hibernate.engine.spi.SessionImplementor session)
           
 Object replace(Object original, Object target, Object owner)
           
 Class returnedClass()
           
 int[] sqlTypes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRING_ENCODING

public static final String STRING_ENCODING
See Also:
Constant Field Values
Constructor Detail

StringBlobType

public StringBlobType()
Method Detail

sqlTypes

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

returnedClass

public Class returnedClass()
Specified by:
returnedClass 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 o)
             throws org.hibernate.HibernateException
Specified by:
hashCode in interface org.hibernate.usertype.UserType
Throws:
org.hibernate.HibernateException

nullSafeSet

public void nullSafeSet(PreparedStatement st,
                        Object value,
                        int index,
                        org.hibernate.engine.spi.SessionImplementor session)
                 throws org.hibernate.HibernateException,
                        SQLException
Specified by:
nullSafeSet in interface org.hibernate.usertype.UserType
Throws:
org.hibernate.HibernateException
SQLException

nullSafeGet

public Object nullSafeGet(ResultSet rs,
                          String[] names,
                          org.hibernate.engine.spi.SessionImplementor session,
                          Object owner)
                   throws org.hibernate.HibernateException,
                          SQLException
Specified by:
nullSafeGet in interface org.hibernate.usertype.UserType
Throws:
org.hibernate.HibernateException
SQLException

deepCopy

public Object deepCopy(Object value)
Specified by:
deepCopy in interface org.hibernate.usertype.UserType

isMutable

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

disassemble

public Serializable disassemble(Object o)
                         throws org.hibernate.HibernateException
Specified by:
disassemble in interface org.hibernate.usertype.UserType
Throws:
org.hibernate.HibernateException

assemble

public Object assemble(Serializable serializable,
                       Object owner)
                throws org.hibernate.HibernateException
Specified by:
assemble in interface org.hibernate.usertype.UserType
Throws:
org.hibernate.HibernateException

replace

public Object replace(Object original,
                      Object target,
                      Object owner)
               throws org.hibernate.HibernateException
Specified by:
replace in interface org.hibernate.usertype.UserType
Throws:
org.hibernate.HibernateException

Dashboard Builder Commons 6.2.0.CR4

Copyright © 2012-2015 JBoss by Red Hat. All Rights Reserved.