Home | History | Annotate | Download | only in sql

Lines Matching defs:Blob

34  * <code>BLOB</code> value.  An SQL <code>BLOB</code> is a built-in type
36 * a database table. By default drivers implement <code>Blob</code> using
37 * an SQL <code>locator(BLOB)</code>, which means that a
38 * <code>Blob</code> object contains a logical pointer to the
39 * SQL <code>BLOB</code> data rather than the data itself.
40 * A <code>Blob</code> object is valid for the duration of the
46 * access an SQL <code>BLOB</code> value.
47 * The <code>Blob</code> interface provides methods for getting the
48 * length of an SQL <code>BLOB</code> (Binary Large Object) value,
49 * for materializing a <code>BLOB</code> value on the client, and for
51 * <code>BLOB</code> value. In addition, this interface has methods for updating
52 * a <code>BLOB</code> value.
54 * All methods on the <code>Blob</code> interface must be fully implemented if the
60 public interface Blob {
63 * Returns the number of bytes in the <code>BLOB</code> value
64 * designated by this <code>Blob</code> object.
65 * @return length of the <code>BLOB</code> in bytes
67 * length of the <code>BLOB</code>
75 * Retrieves all or part of the <code>BLOB</code>
76 * value that this <code>Blob</code> object represents, as an array of
81 * <code>BLOB</code> value to be extracted; the first byte is at
86 * consecutive bytes from the <code>BLOB</code> value designated
87 * by this <code>Blob</code> object, starting with the
90 * <code>BLOB</code> value; if pos is less than 1 or length is
100 * Retrieves the <code>BLOB</code> value designated by this
101 * <code>Blob</code> instance as a stream.
103 * @return a stream containing the <code>BLOB</code> data
105 * <code>BLOB</code> value
115 * <code>pattern</code> begins within the <code>BLOB</code>
116 * value that this <code>Blob</code> object represents. The
125 * <code>BLOB</code> or if start is less than 1
133 * Retrieves the byte position in the <code>BLOB</code> value
134 * designated by this <code>Blob</code> object at which
138 * @param pattern the <code>Blob</code> object designating
139 * the <code>BLOB</code> value for which to search
140 * @param start the position in the <code>BLOB</code> value
144 * <code>BLOB</code> value or if start is less than 1
149 long position(Blob pattern, long start) throws SQLException;
154 * Writes the given array of bytes to the <code>BLOB</code> value that
155 * this <code>Blob</code> object represents, starting at position
158 * in the <code>Blob</code> object starting at the position
159 * <code>pos</code>. If the end of the <code>Blob</code> value is reached
160 * while writing the array of bytes, then the length of the <code>Blob</code>
164 * is greater then the length+1 of the <code>BLOB</code> value then the
169 * @param pos the position in the <code>BLOB</code> object at which
171 * @param bytes the array of bytes to be written to the <code>BLOB</code>
172 * value that this <code>Blob</code> object represents
175 * <code>BLOB</code> value or if pos is less than 1
185 * <code>BLOB</code> value that this <code>Blob</code> object represents
187 * Writing starts at position <code>pos</code> in the <code>BLOB</code>
190 * in the <code>Blob</code> object starting at the position
191 * <code>pos</code>. If the end of the <code>Blob</code> value is reached
192 * while writing the array of bytes, then the length of the <code>Blob</code>
196 * is greater then the length+1 of the <code>BLOB</code> value then the
201 * @param pos the position in the <code>BLOB</code> object at which
203 * @param bytes the array of bytes to be written to this <code>BLOB</code>
207 * @param len the number of bytes to be written to the <code>BLOB</code>
211 * <code>BLOB</code> value or if pos is less than 1
220 * Retrieves a stream that can be used to write to the <code>BLOB</code>
221 * value that this <code>Blob</code> object represents. The stream begins
224 * in the <code>Blob</code> object starting at the position
225 * <code>pos</code>. If the end of the <code>Blob</code> value is reached
226 * while writing to the stream, then the length of the <code>Blob</code>
230 * is greater then the length+1 of the <code>BLOB</code> value then the
235 * @param pos the position in the <code>BLOB</code> value at which
240 * <code>BLOB</code> value or if pos is less than 1
249 * Truncates the <code>BLOB</code> value that this <code>Blob</code>
253 * is greater then the length+1 of the <code>BLOB</code> value then the
258 * @param len the length, in bytes, to which the <code>BLOB</code> value
259 * that this <code>Blob</code> object represents should be truncated
261 * <code>BLOB</code> value or if len is less than 0
269 * This method frees the <code>Blob</code> object and releases the resources that
280 * the Blob's resources
288 * Returns an <code>InputStream</code> object that contains a partial <code>Blob</code> value,
292 * The first byte in the <code>Blob</code> is at position 1
294 * @return <code>InputStream</code> through which the partial <code>Blob</code> value can be read.
296 * in the <code>Blob</code> or if pos + length is greater than the number of bytes
297 * in the <code>Blob</code>