ISQLData.ReadSQL(ISQLInput, String) Method

Definition

Populates this object with data read from the database.

[Android.Runtime.Register("readSQL", "(Ljava/sql/SQLInput;Ljava/lang/String;)V", "GetReadSQL_Ljava_sql_SQLInput_Ljava_lang_String_Handler:Java.Sql.ISQLDataInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void ReadSQL (Java.Sql.ISQLInput? stream, string? typeName);
[<Android.Runtime.Register("readSQL", "(Ljava/sql/SQLInput;Ljava/lang/String;)V", "GetReadSQL_Ljava_sql_SQLInput_Ljava_lang_String_Handler:Java.Sql.ISQLDataInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member ReadSQL : Java.Sql.ISQLInput * string -> unit

Parameters

stream
ISQLInput

the SQLInput object from which to read the data for the value that is being custom mapped

typeName
String

the SQL type name of the value on the data stream

Attributes

Exceptions

if a database error occurs.

Remarks

Populates this object with data read from the database. The implementation of the method must follow this protocol: <UL> <LI>It must read each of the attributes or elements of the SQL type from the given input stream. This is done by calling a method of the input stream to read each item, in the order that they appear in the SQL definition of the type. <LI>The method readSQL then assigns the data to appropriate fields or elements (of this or other objects). Specifically, it must call the appropriate reader method (SQLInput.readString, SQLInput.readBigDecimal, and so on) method(s) to do the following: for a distinct type, read its single data element; for a structured type, read a value for each attribute of the SQL type. </UL> The JDBC driver initializes the input stream with a type map before calling this method, which is used by the appropriate SQLInput reader method on the stream.

Added in 1.2.

Java documentation for java.sql.SQLData.readSQL(java.sql.SQLInput, java.lang.String).

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

See also