Home » Spring-Framework-090522 » org.springframework » orm » hibernate » support » [javadoc | source]
public class: ClobStringType [javadoc | source]

All Implemented Interfaces:

Hibernate UserType implementation for Strings that get mapped to CLOBs. Retrieves the LobHandler to use from LocalSessionFactoryBean at config time.

Particularly useful for storing Strings with more than 4000 characters in an Oracle database (only possible via CLOBs), in combination with OracleLobHandler.

Can also be defined in generic Hibernate mappings, as DefaultLobCreator will work with most JDBC-compliant database drivers. In this case, the field type does not have to be BLOB: For databases like MySQL and MS SQL Server, any large enough binary type will work.

Fields inherited from org.springframework.orm.hibernate.support.AbstractLobType:
 public ClobStringType() 
 protected ClobStringType(LobHandler lobHandler,
    TransactionManager jtaTransactionManager) 
    Constructor used for testing: takes an explicit LobHandler and an explicit JTA TransactionManager (can be null).
Method from org.springframework.orm.hibernate.support.ClobStringType Summary:
nullSafeGetInternal,   nullSafeSetInternal,   returnedClass,   sqlTypes
Methods from org.springframework.orm.hibernate.support.AbstractLobType:
deepCopy,   equals,   isMutable,   nullSafeGet,   nullSafeGetInternal,   nullSafeSet,   nullSafeSetInternal
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.orm.hibernate.support.ClobStringType Detail:
 protected Object nullSafeGetInternal(ResultSet rs,
    int index,
    LobHandler lobHandler) throws SQLException 
 protected  void nullSafeSetInternal(PreparedStatement ps,
    int index,
    Object value,
    LobCreator lobCreator) throws SQLException 
 public Class returnedClass() 
 public int[] sqlTypes()