IBlob Interface

Definition

The representation (mapping) in the Java<sup><font size=-2>TM</font></sup> programming language of an SQL BLOB value.

[Android.Runtime.Register("java/sql/Blob", "", "Java.Sql.IBlobInvoker")]
public interface IBlob : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("java/sql/Blob", "", "Java.Sql.IBlobInvoker")>]
type IBlob = interface
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Attributes
Implements

Remarks

The representation (mapping) in the Java<sup><font size=-2>TM</font></sup> programming language of an SQL 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 ResultSet, 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.

All methods on the Blob interface must be fully implemented if the JDBC driver supports the data type.

Added in 1.2.

Java documentation for java.sql.Blob.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Properties

BinaryStream

Retrieves this Blob object as a binary stream.

Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
JniIdentityHashCode

Returns the value of java.lang.System.identityHashCode() for the wrapped instance.

(Inherited from IJavaPeerable)
JniManagedPeerState

State of the managed peer.

(Inherited from IJavaPeerable)
JniPeerMembers

Member access and invocation support.

(Inherited from IJavaPeerable)
PeerReference

Returns a JniObjectReference of the wrapped Java object instance.

(Inherited from IJavaPeerable)

Methods

Disposed()

Called when the instance has been disposed.

(Inherited from IJavaPeerable)
DisposeUnlessReferenced()

If there are no outstanding references to this instance, then calls Dispose(); otherwise, does nothing.

(Inherited from IJavaPeerable)
Finalized()

Called when the instance has been finalized.

(Inherited from IJavaPeerable)
Free()

This method frees the Blob object and releases the resources that it holds.

GetBinaryStream(Int64, Int64)

Returns an InputStream object that contains a partial Blob value, starting with the byte specified by pos, which is length bytes in length.

GetBytes(Int64, Int32)

Retrieves all or part of the BLOB value that this Blob object represents, as an array of bytes.

Length()

Returns the number of bytes in the BLOB value designated by this Blob object.

Position(Byte[], Int64)

Retrieves the byte position at which the specified byte array pattern begins within the BLOB value that this Blob object represents.

Position(IBlob, Int64)

Retrieves the byte position in the BLOB value designated by this Blob object at which pattern begins.

SetBinaryStream(Int64)

Retrieves a stream that can be used to write to the BLOB value that this Blob object represents.

SetBytes(Int64, Byte[])

Writes the given array of bytes to the BLOB value that this Blob object represents, starting at position pos, and returns the number of bytes written.

SetBytes(Int64, Byte[], Int32, Int32)

Writes all or part of the given byte array to the BLOB value that this Blob object represents and returns the number of bytes written.

SetJniIdentityHashCode(Int32)

Set the value returned by JniIdentityHashCode.

(Inherited from IJavaPeerable)
SetJniManagedPeerState(JniManagedPeerStates) (Inherited from IJavaPeerable)
SetPeerReference(JniObjectReference)

Set the value returned by PeerReference.

(Inherited from IJavaPeerable)
Truncate(Int64)

Truncates the BLOB value that this Blob object represents to be len bytes in length.

UnregisterFromRuntime()

Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations.

(Inherited from IJavaPeerable)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to