ICallableStatement.GetInt Method

Definition

Overloads

GetInt(String)

Retrieves the value of a JDBC <code>INTEGER</code> parameter as an <code>int</code> in the Java programming language.

GetInt(Int32)

Retrieves the value of the designated JDBC <code>INTEGER</code> parameter as an <code>int</code> in the Java programming language.

GetInt(String)

Retrieves the value of a JDBC <code>INTEGER</code> parameter as an <code>int</code> in the Java programming language.

[Android.Runtime.Register("getInt", "(Ljava/lang/String;)I", "GetGetInt_Ljava_lang_String_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int GetInt (string? parameterName);
[<Android.Runtime.Register("getInt", "(Ljava/lang/String;)I", "GetGetInt_Ljava_lang_String_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetInt : string -> int

Parameters

parameterName
String

the name of the parameter

Returns

Int32

the parameter value. If the value is SQL <code>NULL</code>, the result is <code>0</code>.

Attributes

Exceptions

if a database error occurs.

Remarks

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

GetInt(Int32)

Retrieves the value of the designated JDBC <code>INTEGER</code> parameter as an <code>int</code> in the Java programming language.

[Android.Runtime.Register("getInt", "(I)I", "GetGetInt_IHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int GetInt (int parameterIndex);
[<Android.Runtime.Register("getInt", "(I)I", "GetGetInt_IHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetInt : int -> int

Parameters

parameterIndex
Int32

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

Returns

Int32

the parameter value. If the value is SQL <code>NULL</code>, the result is <code>0</code>.

Attributes

Exceptions

if a database error occurs.

Remarks

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