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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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)
-
Constructor Details
-
DruidLobCreator
public DruidLobCreator()
-
-
Method Details
-
setBlobAsBytes
public void setBlobAsBytes(PreparedStatement ps, int paramIndex, byte[] content) throws SQLException - Specified by:
setBlobAsBytes
in interfaceorg.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 interfaceorg.springframework.jdbc.support.lob.LobCreator
- Throws:
SQLException
-
setClobAsString
public void setClobAsString(PreparedStatement ps, int paramIndex, String content) throws SQLException - Specified by:
setClobAsString
in interfaceorg.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 interfaceorg.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 interfaceorg.springframework.jdbc.support.lob.LobCreator
- Throws:
SQLException
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.springframework.jdbc.support.lob.LobCreator
-