共用方式為


IParameterMetaData.GetParameterClassName(Int32) Method

Definition

Retrieves the fully-qualified name of the Java class whose instances should be passed to the method PreparedStatement.setObject.

[Android.Runtime.Register("getParameterClassName", "(I)Ljava/lang/String;", "GetGetParameterClassName_IHandler:Java.Sql.IParameterMetaDataInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string? GetParameterClassName (int param);
[<Android.Runtime.Register("getParameterClassName", "(I)Ljava/lang/String;", "GetGetParameterClassName_IHandler:Java.Sql.IParameterMetaDataInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetParameterClassName : int -> string

Parameters

param
Int32

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

Returns

the fully-qualified name of the class in the Java programming language that would be used by the method PreparedStatement.setObject to set the value in the specified parameter. This is the class name used for custom mapping.

Attributes

Exceptions

if a database error happens.

Remarks

Retrieves the fully-qualified name of the Java class whose instances should be passed to the method PreparedStatement.setObject.

Added in 1.4.

Java documentation for java.sql.ParameterMetaData.getParameterClassName(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