ICallableStatement.SetCharacterStream Method

Definition

Overloads

SetCharacterStream(String, Reader)

Sets the designated parameter to the given Reader object.

SetCharacterStream(String, Reader, Int32)

Sets the designated parameter to the given Reader object, which is the given number of characters long.

SetCharacterStream(String, Reader, Int64)

Sets the designated parameter to the given Reader object, which is the given number of characters long.

SetCharacterStream(String, Reader)

Sets the designated parameter to the given Reader object.

[Android.Runtime.Register("setCharacterStream", "(Ljava/lang/String;Ljava/io/Reader;)V", "GetSetCharacterStream_Ljava_lang_String_Ljava_io_Reader_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetCharacterStream (string? parameterName, Java.IO.Reader? reader);
[<Android.Runtime.Register("setCharacterStream", "(Ljava/lang/String;Ljava/io/Reader;)V", "GetSetCharacterStream_Ljava_lang_String_Ljava_io_Reader_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetCharacterStream : string * Java.IO.Reader -> unit

Parameters

parameterName
String

the name of the parameter

reader
Reader

the java.io.Reader object that contains the Unicode data

Attributes

Exceptions

if a database error occurs

Remarks

Sets the designated parameter to the given Reader object. When a very large UNICODE value is input to a LONGVARCHAR parameter, it may be more practical to send it via a java.io.Reader object. The data will be read from the stream as needed until end-of-file is reached. The JDBC driver will do any necessary conversion from UNICODE to the database char format.

<B>Note:</B> This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.

<B>Note:</B> Consult your JDBC driver documentation to determine if it might be more efficient to use a version of setCharacterStream which takes a length parameter.

Added in 1.6.

Java documentation for java.sql.CallableStatement.setCharacterStream(java.lang.String, java.io.Reader).

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

SetCharacterStream(String, Reader, Int32)

Sets the designated parameter to the given Reader object, which is the given number of characters long.

[Android.Runtime.Register("setCharacterStream", "(Ljava/lang/String;Ljava/io/Reader;I)V", "GetSetCharacterStream_Ljava_lang_String_Ljava_io_Reader_IHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetCharacterStream (string? parameterName, Java.IO.Reader? reader, int length);
[<Android.Runtime.Register("setCharacterStream", "(Ljava/lang/String;Ljava/io/Reader;I)V", "GetSetCharacterStream_Ljava_lang_String_Ljava_io_Reader_IHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetCharacterStream : string * Java.IO.Reader * int -> unit

Parameters

parameterName
String

the name of the parameter

reader
Reader

the java.io.Reader object that contains the UNICODE data used as the designated parameter

length
Int32

the number of characters in the stream

Attributes

Exceptions

if a database error occurs.

Remarks

Sets the designated parameter to the given Reader object, which is the given number of characters long. When a very large UNICODE value is input to a LONGVARCHAR parameter, it may be more practical to send it via a java.io.Reader object. The data will be read from the stream as needed until end-of-file is reached. The JDBC driver will do any necessary conversion from UNICODE to the database char format.

<B>Note:</B> This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.

Added in 1.4.

Java documentation for java.sql.CallableStatement.setCharacterStream(java.lang.String, java.io.Reader, int).

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

SetCharacterStream(String, Reader, Int64)

Sets the designated parameter to the given Reader object, which is the given number of characters long.

[Android.Runtime.Register("setCharacterStream", "(Ljava/lang/String;Ljava/io/Reader;J)V", "GetSetCharacterStream_Ljava_lang_String_Ljava_io_Reader_JHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetCharacterStream (string? parameterName, Java.IO.Reader? reader, long length);
[<Android.Runtime.Register("setCharacterStream", "(Ljava/lang/String;Ljava/io/Reader;J)V", "GetSetCharacterStream_Ljava_lang_String_Ljava_io_Reader_JHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetCharacterStream : string * Java.IO.Reader * int64 -> unit

Parameters

parameterName
String

the name of the parameter

reader
Reader

the java.io.Reader object that contains the UNICODE data used as the designated parameter

length
Int64

the number of characters in the stream

Attributes

Exceptions

if a database error occurs

Remarks

Sets the designated parameter to the given Reader object, which is the given number of characters long. When a very large UNICODE value is input to a LONGVARCHAR parameter, it may be more practical to send it via a java.io.Reader object. The data will be read from the stream as needed until end-of-file is reached. The JDBC driver will do any necessary conversion from UNICODE to the database char format.

<B>Note:</B> This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.

Added in 1.6.

Java documentation for java.sql.CallableStatement.setCharacterStream(java.lang.String, java.io.Reader, long).

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