Udostępnij za pośrednictwem


IResultSet.GetRef Method

Definition

Overloads

GetRef(Int32)

Retrieves the value of the designated column in the current row of this ResultSet object as a Ref object in the Java programming language.

GetRef(String)

Retrieves the value of the designated column in the current row of this ResultSet object as a Ref object in the Java programming language.

GetRef(Int32)

Retrieves the value of the designated column in the current row of this ResultSet object as a Ref object in the Java programming language.

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

Parameters

columnIndex
Int32

the first column is 1, the second is 2, ...

Returns

a Ref object representing an SQL REF value

Attributes

Exceptions

if a database error happens.

Remarks

Retrieves the value of the designated column in the current row of this ResultSet object as a Ref object in the Java programming language.

Added in 1.2.

Java documentation for java.sql.ResultSet.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

GetRef(String)

Retrieves the value of the designated column in the current row of this ResultSet object as a Ref object in the Java programming language.

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

Parameters

columnLabel
String

the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column

Returns

a Ref object representing the SQL REF value in the specified column

Attributes

Exceptions

if a database error happens.

Remarks

Retrieves the value of the designated column in the current row of this ResultSet object as a Ref object in the Java programming language.

Added in 1.2.

Java documentation for java.sql.ResultSet.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.

Applies to