1 16 17 package org.springframework.jdbc.support.lob; 18 19 import java.io.InputStream ; 20 import java.io.Reader ; 21 import java.sql.PreparedStatement ; 22 import java.sql.SQLException ; 23 24 52 public interface LobCreator { 53 54 64 void setBlobAsBytes(PreparedStatement ps, int paramIndex, byte[] content) 65 throws SQLException ; 66 67 77 void setBlobAsBinaryStream( 78 PreparedStatement ps, int paramIndex, InputStream contentStream, int contentLength) 79 throws SQLException ; 80 81 91 void setClobAsString(PreparedStatement ps, int paramIndex, String content) 92 throws SQLException ; 93 94 104 void setClobAsAsciiStream( 105 PreparedStatement ps, int paramIndex, InputStream asciiStream, int contentLength) 106 throws SQLException ; 107 108 118 void setClobAsCharacterStream( 119 PreparedStatement ps, int paramIndex, Reader characterStream, int contentLength) 120 throws SQLException ; 121 122 130 void close(); 131 132 } 133 | Popular Tags |