IClob Interface

Definition

The mapping in the Java<sup><font size=-2>TM</font></sup> programming language for the SQL CLOB type.

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

Remarks

The mapping in the Java<sup><font size=-2>TM</font></sup> programming language for the SQL CLOB type. An SQL CLOB is a built-in type that stores a Character Large Object as a column value in a row of a database table. By default drivers implement a Clob object using an SQL locator(CLOB), which means that a Clob object contains a logical pointer to the SQL CLOB data rather than the data itself. A Clob object is valid for the duration of the transaction in which it was created.

The Clob interface provides methods for getting the length of an SQL CLOB (Character Large Object) value, for materializing a CLOB value on the client, and for searching for a substring or CLOB object within a CLOB value. Methods in the interfaces ResultSet, CallableStatement, and PreparedStatement, such as getClob and setClob allow a programmer to access an SQL CLOB value. In addition, this interface has methods for updating a CLOB value.

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

Added in 1.2.

Java documentation for java.sql.Clob.

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

AsciiStream

Gets the value of this Clob object as an ASCII stream.

CharacterStream

Gets the data of this Clob object in a java.io.Reader.

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 Clob object and releases the resources the resources that it holds.

GetCharacterStream(Int64, Int64)

Returns a Reader object that contains a partial Clob value, starting with the character specified by pos, which is length characters in length.

GetSubString(Int64, Int32)

Retrieves a copy of the specified substring in the CLOB value designated by this Clob object.

Length()

Retrieves the number of characters in the CLOB value designated by this Clob object.

Position(IClob, Int64)

Retrieves the character position at which the specified Clob object searchstr appears in this Clob object.

Position(String, Int64)

Retrieves the character position at which the specified substring searchstr appears in the SQL CLOB value represented by this Clob object.

SetAsciiStream(Int64)

Retrieves a stream to be used to write Ascii characters to the CLOB value that this Clob object represents, starting at position pos.

SetCharacterStream(Int64)

Retrieves a stream to be used to write a stream of Unicode characters to the CLOB value that this Clob object represents, at position pos.

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)
SetString(Int64, String, Int32, Int32)

Writes len characters of str, starting at character offset, to the CLOB value that this Clob represents.

SetString(Int64, String)

Writes the given Java String to the CLOB value that this Clob object designates at the position pos.

Truncate(Int64)

Truncates the CLOB value that this Clob designates to have a length of len characters.

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