org.springframework.orm.hibernate.support
Class BlobInputStreamType

java.lang.Object
  extended by org.springframework.orm.hibernate.support.AbstractLobType
      extended by org.springframework.orm.hibernate.support.BlobInputStreamType
All Implemented Interfaces:
net.sf.hibernate.UserType
Direct Known Subclasses:
SpoolingBlobInputStreamType

public class BlobInputStreamType
extends org.springframework.orm.hibernate.support.AbstractLobType

LobType that allows InputStreams to be saved as BLOBs to a database.


Field Summary
 
Fields inherited from class org.springframework.orm.hibernate.support.AbstractLobType
LOB_CREATOR_SYNCHRONIZATION_ORDER, logger
 
Constructor Summary
BlobInputStreamType()
           
 
Method Summary
protected  Object nullSafeGetInternal(ResultSet rs, int index, org.springframework.jdbc.support.lob.LobHandler lobHandler)
           
protected  void nullSafeSetInternal(PreparedStatement ps, int index, Object value, org.springframework.jdbc.support.lob.LobCreator lobCreator)
           
 Class returnedClass()
           
 int[] sqlTypes()
           
 
Methods inherited from class org.springframework.orm.hibernate.support.AbstractLobType
deepCopy, equals, isMutable, nullSafeGet, nullSafeSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlobInputStreamType

public BlobInputStreamType()
Method Detail

nullSafeGetInternal

protected Object nullSafeGetInternal(ResultSet rs,
                                     int index,
                                     org.springframework.jdbc.support.lob.LobHandler lobHandler)
                              throws SQLException,
                                     IOException,
                                     net.sf.hibernate.HibernateException
Specified by:
nullSafeGetInternal in class org.springframework.orm.hibernate.support.AbstractLobType
Throws:
SQLException
IOException
net.sf.hibernate.HibernateException

nullSafeSetInternal

protected void nullSafeSetInternal(PreparedStatement ps,
                                   int index,
                                   Object value,
                                   org.springframework.jdbc.support.lob.LobCreator lobCreator)
                            throws SQLException,
                                   IOException,
                                   net.sf.hibernate.HibernateException
Specified by:
nullSafeSetInternal in class org.springframework.orm.hibernate.support.AbstractLobType
Throws:
SQLException
IOException
net.sf.hibernate.HibernateException

sqlTypes

public int[] sqlTypes()

returnedClass

public Class returnedClass()


Copyright © 2003-2010 Atlassian. All Rights Reserved.