次の方法で共有


ICallableStatement.GetShort Method

Definition

Overloads

GetShort(Int32)

Retrieves the value of the designated JDBC SMALLINT parameter as a short in the Java programming language.

GetShort(String)

Retrieves the value of a JDBC SMALLINT parameter as a short in the Java programming language.

GetShort(Int32)

Retrieves the value of the designated JDBC SMALLINT parameter as a short in the Java programming language.

[Android.Runtime.Register("getShort", "(I)S", "GetGetShort_IHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public short GetShort (int parameterIndex);
[<Android.Runtime.Register("getShort", "(I)S", "GetGetShort_IHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetShort : int -> int16

Parameters

parameterIndex
Int32

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

Returns

the parameter value. If the value is SQL NULL, the result is 0.

Attributes

Exceptions

if a database error occurs.

Remarks

Retrieves the value of the designated JDBC SMALLINT parameter as a short in the Java programming language.

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

GetShort(String)

Retrieves the value of a JDBC SMALLINT parameter as a short in the Java programming language.

[Android.Runtime.Register("getShort", "(Ljava/lang/String;)S", "GetGetShort_Ljava_lang_String_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public short GetShort (string? parameterName);
[<Android.Runtime.Register("getShort", "(Ljava/lang/String;)S", "GetGetShort_Ljava_lang_String_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetShort : string -> int16

Parameters

parameterName
String

the name of the parameter

Returns

the parameter value. If the value is SQL NULL, the result is 0.

Attributes

Exceptions

if there is a problem accessing the database.

Remarks

Retrieves the value of a JDBC SMALLINT parameter as a short in the Java programming language.

Added in 1.4.

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