Package com.alibaba.druid.support.spring
Class DruidLobCreator
java.lang.Object
com.alibaba.druid.support.spring.DruidLobCreator
- All Implemented Interfaces:
Closeable,AutoCloseable,org.springframework.jdbc.support.lob.LobCreator
public class DruidLobCreator
extends Object
implements org.springframework.jdbc.support.lob.LobCreator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidsetBlobAsBinaryStream(PreparedStatement ps, int paramIndex, InputStream contentStream, int contentLength) voidsetBlobAsBytes(PreparedStatement ps, int paramIndex, byte[] content) voidsetClobAsAsciiStream(PreparedStatement ps, int paramIndex, InputStream asciiStream, int contentLength) voidsetClobAsCharacterStream(PreparedStatement ps, int paramIndex, Reader characterStream, int contentLength) voidsetClobAsString(PreparedStatement ps, int paramIndex, String content)
-
Constructor Details
-
DruidLobCreator
public DruidLobCreator()
-
-
Method Details
-
setBlobAsBytes
public void setBlobAsBytes(PreparedStatement ps, int paramIndex, byte[] content) throws SQLException - Specified by:
setBlobAsBytesin interfaceorg.springframework.jdbc.support.lob.LobCreator- Throws:
SQLException
-
setBlobAsBinaryStream
public void setBlobAsBinaryStream(PreparedStatement ps, int paramIndex, InputStream contentStream, int contentLength) throws SQLException - Specified by:
setBlobAsBinaryStreamin interfaceorg.springframework.jdbc.support.lob.LobCreator- Throws:
SQLException
-
setClobAsString
public void setClobAsString(PreparedStatement ps, int paramIndex, String content) throws SQLException - Specified by:
setClobAsStringin interfaceorg.springframework.jdbc.support.lob.LobCreator- Throws:
SQLException
-
setClobAsAsciiStream
public void setClobAsAsciiStream(PreparedStatement ps, int paramIndex, InputStream asciiStream, int contentLength) throws SQLException - Specified by:
setClobAsAsciiStreamin interfaceorg.springframework.jdbc.support.lob.LobCreator- Throws:
SQLException
-
setClobAsCharacterStream
public void setClobAsCharacterStream(PreparedStatement ps, int paramIndex, Reader characterStream, int contentLength) throws SQLException - Specified by:
setClobAsCharacterStreamin interfaceorg.springframework.jdbc.support.lob.LobCreator- Throws:
SQLException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.springframework.jdbc.support.lob.LobCreator
-