Share via


ICallableStatement.GetRef Method

Definition

Overloads

GetRef(String)

Retrieves the value of a JDBC REF(<structured-type>) parameter as a java.sql.Ref object in the Java programming language.

GetRef(Int32)

Retrieves the value of the designated JDBC REF(<structured-type>) parameter as a java.sql.Ref object in the Java programming language.

GetRef(String)

Retrieves the value of a JDBC REF(<structured-type>) parameter as a java.sql.Ref object in the Java programming language.

[Android.Runtime.Register("getRef", "(Ljava/lang/String;)Ljava/sql/Ref;", "GetGetRef_Ljava_lang_String_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.IRef? GetRef (string? parameterName);
[<Android.Runtime.Register("getRef", "(Ljava/lang/String;)Ljava/sql/Ref;", "GetGetRef_Ljava_lang_String_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetRef : string -> Java.Sql.IRef

Parameters

parameterName
String

the name of the parameter

Returns

the parameter value as a Ref object in the Java programming language. If the value was SQL NULL, the value null is returned.

Attributes

Exceptions

if there is a problem accessing the database.

Remarks

Retrieves the value of a JDBC REF(&lt;structured-type&gt;) parameter as a java.sql.Ref object in the Java programming language.

Added in 1.4.

Java documentation for java.sql.CallableStatement.getRef(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.

See also

Applies to

GetRef(Int32)

Retrieves the value of the designated JDBC REF(&lt;structured-type&gt;) parameter as a java.sql.Ref object in the Java programming language.

[Android.Runtime.Register("getRef", "(I)Ljava/sql/Ref;", "GetGetRef_IHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.IRef? GetRef (int parameterIndex);
[<Android.Runtime.Register("getRef", "(I)Ljava/sql/Ref;", "GetGetRef_IHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetRef : int -> Java.Sql.IRef

Parameters

parameterIndex
Int32

the first parameter is 1, the second is 2, and so on

Returns

the parameter value as a Ref object in the Java programming language. If the value was SQL NULL, the value null is returned.

Attributes

Exceptions

if a database error occurs.

Remarks

Retrieves the value of the designated JDBC REF(&lt;structured-type&gt;) parameter as a java.sql.Ref object in the Java programming language.

Added in 1.2.

Java documentation for java.sql.CallableStatement.getRef(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