Share via


ISQLInput.ReadObject Method

Definition

Reads the datum at the head of the stream and returns it as an Object in the Java programming language.

[Android.Runtime.Register("readObject", "()Ljava/lang/Object;", "GetReadObjectHandler:Java.Sql.ISQLInputInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object? ReadObject ();
[<Android.Runtime.Register("readObject", "()Ljava/lang/Object;", "GetReadObjectHandler:Java.Sql.ISQLInputInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member ReadObject : unit -> Java.Lang.Object

Returns

the datum at the head of the stream as an Object in the Java programming language;null if the datum is SQL NULL

Attributes

Exceptions

if there is a database error.

Remarks

Reads the datum at the head of the stream and returns it as an Object in the Java programming language. The actual type of the object returned is determined by the default type mapping, and any customizations present in this stream's type map.

A type map is registered with the stream by the JDBC driver before the stream is passed to the application.

When the datum at the head of the stream is an SQL NULL, the method returns null. If the datum is an SQL structured or distinct type, it determines the SQL type of the datum at the head of the stream. If the stream's type map has an entry for that SQL type, the driver constructs an object of the appropriate class and calls the method SQLData.readSQL on that object, which reads additional data from the stream, using the protocol described for that method.

Added in 1.2.

Java documentation for java.sql.SQLInput.readObject().

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.

Applies to