Class 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 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 AutoCloseable
        Specified by:
        close in interface Closeable
        Specified by:
        close in interface org.springframework.jdbc.support.lob.LobCreator