BLOB
value. An SQL BLOB
is a built-in type that stores a Binary Large Object as a column value in a row of a database table. By default drivers implement Blob
using an SQL locator(BLOB)
, which means that a Blob
object contains a logical pointer to the SQL BLOB
data rather than the data itself. A Blob
object is valid for the duration of the transaction in which is was created.
Methods in the interfaces DriverResultSet,CallableStatement, and PreparedStatement, such as getBlob
and setBlob
allow a programmer to access an SQL BLOB
value. The Blob
interface provides methods for getting the length of an SQL BLOB
(Binary Large Object) value, for materializing a BLOB
value on the client, and for determining the position of a pattern of bytes within a BLOB
value. In addition, this interface has methods for updating a BLOB
value.
Public メソッド | |
Blob (byte[] data) | |
long | length () throws SQLException |
byte[] | getBytes (long pos, int length) throws SQLException |
java.io.InputStream | getBinaryStream () throws SQLException |
long | position (byte pattern[], long start) throws SQLException |
long | position (java.sql.Blob pattern, long start) throws SQLException |
int | setBytes (long pos, byte[] bytes) throws SQLException |
int | setBytes (long pos, byte[] bytes, int offset, int len) throws SQLException |
java.io.OutputStream | setBinaryStream (long pos) throws SQLException |
void | truncate (long len) throws SQLException |
変数 | |
byte[] | binaryData = null |
|
Creates a new
参照先 org.objectweb.cjdbc.driver.Blob.binaryData.
|
|
Retrieves the
参照先 org.objectweb.cjdbc.driver.Blob.binaryData.
|
|
Retrieves all or part of the
参照先 org.objectweb.cjdbc.driver.Blob.binaryData, と org.objectweb.cjdbc.driver.Blob.length().
|
|
Returns the number of bytes in the
参照先 org.objectweb.cjdbc.driver.Blob.binaryData. 参照元 org.objectweb.cjdbc.driver.Blob.getBytes().
|
|
Retrieves the byte position in the
参照先 org.objectweb.cjdbc.driver.Blob.position().
|
|
Retrieves the byte position at which the specified byte array
参照先 org.objectweb.cjdbc.driver.Blob.binaryData. 参照元 org.objectweb.cjdbc.driver.Blob.position().
|
|
Retrieves a stream that can be used to write to the
|
|
Writes all or part of the given
|
|
Writes the given array of bytes to the
|
|
Truncates the
|
|
The binary data that makes up this 参照元 org.objectweb.cjdbc.driver.Blob.Blob(), org.objectweb.cjdbc.driver.Blob.getBinaryStream(), org.objectweb.cjdbc.driver.Blob.getBytes(), org.objectweb.cjdbc.driver.Blob.length(), と org.objectweb.cjdbc.driver.Blob.position(). |