Java.Sql.IPreparedStatement.SetTime Method
Sets the value of a specified parameter to a supplied java.sql.Time value, using a supplied Calendar.

Syntax

[Android.Runtime.Register("setTime", "(ILjava/sql/Time;Ljava/util/Calendar;)V", "GetSetTime_ILjava_sql_Time_Ljava_util_Calendar_Handler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetTime (int parameterIndex, Time theTime, Java.Util.Calendar cal)

See Also

Time
Java.Util.Calendar

Parameters

parameterIndex
the parameter number index, where the first parameter has index 1.
theTime
a java.sql.Time value to which the parameter at parameterIndex is set.
cal
a Calendar to use to construct the SQL TIME value.

Exceptions

TypeReason
Java.Sql.SQLExceptionif a database error happens.

Remarks

Sets the value of a specified parameter to a supplied java.sql.Time value, using a supplied Calendar.

The driver uses the supplied Calendar to create the SQL TIME value, which allows it to use a custom timezone - otherwise the driver uses the VM defaults. See "Be wary of the default locale".

[Android Documentation]

Requirements

Namespace: Java.Sql
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1