com.alibaba.druid.support.spring
Class DruidLobCreator

java.lang.Object
  extended by com.alibaba.druid.support.spring.DruidLobCreator
All Implemented Interfaces:
org.springframework.jdbc.support.lob.LobCreator

public class DruidLobCreator
extends Object
implements org.springframework.jdbc.support.lob.LobCreator


Constructor Summary
DruidLobCreator()
           
 
Method Summary
 void close()
           
 void setBlobAsBinaryStream(PreparedStatement ps, int paramIndex, InputStream contentStream, int contentLength)
           
 void setBlobAsBytes(PreparedStatement ps, int paramIndex, byte[] content)
           
 void setClobAsAsciiStream(PreparedStatement ps, int paramIndex, InputStream asciiStream, int contentLength)
           
 void setClobAsCharacterStream(PreparedStatement ps, int paramIndex, Reader characterStream, int contentLength)
           
 void setClobAsString(PreparedStatement ps, int paramIndex, String content)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DruidLobCreator

public DruidLobCreator()
Method Detail

setBlobAsBytes

public void setBlobAsBytes(PreparedStatement ps,
                           int paramIndex,
                           byte[] content)
                    throws SQLException
Specified by:
setBlobAsBytes in interface org.springframework.jdbc.support.lob.LobCreator
Throws:
SQLException

setBlobAsBinaryStream

public void setBlobAsBinaryStream(PreparedStatement ps,
                                  int paramIndex,
                                  InputStream contentStream,
                                  int contentLength)
                           throws SQLException
Specified by:
setBlobAsBinaryStream in interface org.springframework.jdbc.support.lob.LobCreator
Throws:
SQLException

setClobAsString

public void setClobAsString(PreparedStatement ps,
                            int paramIndex,
                            String content)
                     throws SQLException
Specified by:
setClobAsString in interface org.springframework.jdbc.support.lob.LobCreator
Throws:
SQLException

setClobAsAsciiStream

public void setClobAsAsciiStream(PreparedStatement ps,
                                 int paramIndex,
                                 InputStream asciiStream,
                                 int contentLength)
                          throws SQLException
Specified by:
setClobAsAsciiStream in interface org.springframework.jdbc.support.lob.LobCreator
Throws:
SQLException

setClobAsCharacterStream

public void setClobAsCharacterStream(PreparedStatement ps,
                                     int paramIndex,
                                     Reader characterStream,
                                     int contentLength)
                              throws SQLException
Specified by:
setClobAsCharacterStream in interface org.springframework.jdbc.support.lob.LobCreator
Throws:
SQLException

close

public void close()
Specified by:
close in interface org.springframework.jdbc.support.lob.LobCreator


Copyright © 2012 Alibaba Group. All Rights Reserved.