IRowSet.SetTime Method

Definition

Overloads

SetTime(String, Time, Calendar)

Sets the designated parameter to the given java.sql.Time value, using the given Calendar object.

SetTime(Int32, Time, Calendar)

Sets the designated parameter in this RowSet object's command with the given java.sql.Time value.

SetTime(Int32, Time)

Sets the designated parameter in this RowSet object's command to the given java.sql.Time value.

SetTime(String, Time)

Sets the designated parameter to the given java.sql.Time value.

SetTime(String, Time, Calendar)

Sets the designated parameter to the given java.sql.Time value, using the given Calendar object.

[Android.Runtime.Register("setTime", "(Ljava/lang/String;Ljava/sql/Time;Ljava/util/Calendar;)V", "GetSetTime_Ljava_lang_String_Ljava_sql_Time_Ljava_util_Calendar_Handler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetTime (string? parameterName, Java.Sql.Time? x, Java.Util.Calendar? cal);
[<Android.Runtime.Register("setTime", "(Ljava/lang/String;Ljava/sql/Time;Ljava/util/Calendar;)V", "GetSetTime_Ljava_lang_String_Ljava_sql_Time_Ljava_util_Calendar_Handler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetTime : string * Java.Sql.Time * Java.Util.Calendar -> unit

Parameters

parameterName
String

the name of the parameter

x
Time

the parameter value

cal
Calendar

the Calendar object the driver will use to construct the time

Attributes

Exceptions

if an error occurs accessing the database.

Remarks

Sets the designated parameter to the given java.sql.Time value, using the given Calendar object. The driver uses the Calendar object to construct an SQL TIME value, which the driver then sends to the database. With a a Calendar object, the driver can calculate the time taking into account a custom timezone. If no Calendar object is specified, the driver uses the default timezone, which is that of the virtual machine running the application.

Added in 1.4.

Java documentation for javax.sql.RowSet.setTime(java.lang.String, java.sql.Time, java.util.Calendar).

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

SetTime(Int32, Time, Calendar)

Sets the designated parameter in this RowSet object's command with the given java.sql.Time value.

[Android.Runtime.Register("setTime", "(ILjava/sql/Time;Ljava/util/Calendar;)V", "GetSetTime_ILjava_sql_Time_Ljava_util_Calendar_Handler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetTime (int parameterIndex, Java.Sql.Time? x, Java.Util.Calendar? cal);
[<Android.Runtime.Register("setTime", "(ILjava/sql/Time;Ljava/util/Calendar;)V", "GetSetTime_ILjava_sql_Time_Ljava_util_Calendar_Handler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetTime : int * Java.Sql.Time * Java.Util.Calendar -> unit

Parameters

parameterIndex
Int32

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

x
Time

the parameter value

cal
Calendar

the java.util.Calendar object to use for calculating the time

Attributes

Exceptions

if an error occurs accessing the database.

Remarks

Sets the designated parameter in this RowSet object's command with the given java.sql.Time value. The driver will convert this to an SQL TIME value, using the given java.util.Calendar object to calculate it, before sending it to the database.

Java documentation for javax.sql.RowSet.setTime(int, java.sql.Time, java.util.Calendar).

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.

See also

Applies to

SetTime(Int32, Time)

Sets the designated parameter in this RowSet object's command to the given java.sql.Time value.

[Android.Runtime.Register("setTime", "(ILjava/sql/Time;)V", "GetSetTime_ILjava_sql_Time_Handler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetTime (int parameterIndex, Java.Sql.Time? x);
[<Android.Runtime.Register("setTime", "(ILjava/sql/Time;)V", "GetSetTime_ILjava_sql_Time_Handler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetTime : int * Java.Sql.Time -> unit

Parameters

parameterIndex
Int32

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

x
Time

the parameter value

Attributes

Exceptions

if an error occurs accessing the database.

Remarks

Sets the designated parameter in this RowSet object's command to the given java.sql.Time value. The driver converts this to an SQL TIME value before sending it to the database, using the default java.util.Calendar to calculate it.

Java documentation for javax.sql.RowSet.setTime(int, java.sql.Time).

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.

See also

Applies to

SetTime(String, Time)

Sets the designated parameter to the given java.sql.Time value.

[Android.Runtime.Register("setTime", "(Ljava/lang/String;Ljava/sql/Time;)V", "GetSetTime_Ljava_lang_String_Ljava_sql_Time_Handler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetTime (string? parameterName, Java.Sql.Time? x);
[<Android.Runtime.Register("setTime", "(Ljava/lang/String;Ljava/sql/Time;)V", "GetSetTime_Ljava_lang_String_Ljava_sql_Time_Handler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetTime : string * Java.Sql.Time -> unit

Parameters

parameterName
String

the name of the parameter

x
Time

the parameter value

Attributes

Exceptions

if an error occurs accessing the database.

Remarks

Sets the designated parameter to the given java.sql.Time value. The driver converts this to an SQL TIME value when it sends it to the database.

Added in 1.4.

Java documentation for javax.sql.RowSet.setTime(java.lang.String, java.sql.Time).

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