Udostępnij za pośrednictwem


ISQLOutput.WriteObject(ISQLData) Method

Definition

Writes to the stream the data contained in the given SQLData object.

[Android.Runtime.Register("writeObject", "(Ljava/sql/SQLData;)V", "GetWriteObject_Ljava_sql_SQLData_Handler:Java.Sql.ISQLOutputInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void WriteObject (Java.Sql.ISQLData? x);
[<Android.Runtime.Register("writeObject", "(Ljava/sql/SQLData;)V", "GetWriteObject_Ljava_sql_SQLData_Handler:Java.Sql.ISQLOutputInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member WriteObject : Java.Sql.ISQLData -> unit

Parameters

x
ISQLData

the object representing data of an SQL structured or distinct type

Attributes

Exceptions

if a database error occurs.

Remarks

Writes to the stream the data contained in the given SQLData object. When the SQLData object is null, this method writes an SQL NULL to the stream. Otherwise, it calls the SQLData.writeSQL method of the given object, which writes the object's attributes to the stream. The implementation of the method SQLData.writeSQ calls the appropriate SQLOutput writer method(s) for writing each of the object's attributes in order. The attributes must be read from an SQLInput input stream and written to an SQLOutput output stream in the same order in which they were listed in the SQL definition of the user-defined type.

Added in 1.2.

Java documentation for java.sql.SQLOutput.writeObject(java.sql.SQLData).

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