gov.nih.nci.system.util
Class StringClobType

java.lang.Object
  extended by gov.nih.nci.system.util.StringClobType

public class StringClobType
extends java.lang.Object

StringClobType serializes an instances of a Clob to a String.


Constructor Summary
StringClobType()
           
 
Method Summary
 java.lang.Object assemble(java.io.Serializable cached, java.lang.Object owner)
          Restructs an object from the cachable representation
 java.lang.Object deepCopy(java.lang.Object value)
          Returns a deep copy of the persistent state
 java.io.Serializable disassemble(java.lang.Object value)
          Transforms an object into it's cacheable representation
 boolean equals(java.lang.Object x, java.lang.Object y)
          Compares two instances of the class mapped by this type of persistance entity
 int hashCode(java.lang.Object x)
          Returns a hashcode for the instance
 boolean isMutable()
          Checks if object is mutable
 java.lang.Object nullSafeGet(java.sql.ResultSet rs, java.lang.String[] names, java.lang.Object owner)
          Retrieves an instance of the mapped class from a JDBC resultset
 void nullSafeSet(java.sql.PreparedStatement st, java.lang.Object value, int index)
          Writes an instance of the mapped class to a prepared statement
 java.lang.Object replace(java.lang.Object original, java.lang.Object target, java.lang.Object owner)
          Replace the existing value with a new value
 java.lang.Class returnedClass()
          Class returned by nullSafeGet
 int[] sqlTypes()
          Returns the SQL tpe codes for the columns mapped by this type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringClobType

public StringClobType()
Method Detail

assemble

public java.lang.Object assemble(java.io.Serializable cached,
                                 java.lang.Object owner)
Restructs an object from the cachable representation

Parameters:
cached -

deepCopy

public java.lang.Object deepCopy(java.lang.Object value)
Returns a deep copy of the persistent state


disassemble

public java.io.Serializable disassemble(java.lang.Object value)
Transforms an object into it's cacheable representation

Parameters:
value -

equals

public boolean equals(java.lang.Object x,
                      java.lang.Object y)
Compares two instances of the class mapped by this type of persistance entity

Parameters:
x -
y -

hashCode

public int hashCode(java.lang.Object x)
Returns a hashcode for the instance

Parameters:
x -

isMutable

public boolean isMutable()
Checks if object is mutable


nullSafeGet

public java.lang.Object nullSafeGet(java.sql.ResultSet rs,
                                    java.lang.String[] names,
                                    java.lang.Object owner)
                             throws HibernateException,
                                    java.sql.SQLException
Retrieves an instance of the mapped class from a JDBC resultset

Parameters:
rs - - resultset
names -
owner -
Returns:
Object
Throws:
HibernateException
java.sql.SQLException

nullSafeSet

public void nullSafeSet(java.sql.PreparedStatement st,
                        java.lang.Object value,
                        int index)
                 throws HibernateException,
                        java.sql.SQLException
Writes an instance of the mapped class to a prepared statement

Parameters:
st - - PreparedStatement
value -
index -
Throws:
HibernateException
java.sql.SQLException

replace

public java.lang.Object replace(java.lang.Object original,
                                java.lang.Object target,
                                java.lang.Object owner)
Replace the existing value with a new value

Parameters:
original -
target -
owner -
Returns:

returnedClass

public java.lang.Class returnedClass()
Class returned by nullSafeGet


sqlTypes

public int[] sqlTypes()
Returns the SQL tpe codes for the columns mapped by this type