Udostępnij za pośrednictwem


IRowSet.SetTimestamp Method

Definition

Overloads

SetTimestamp(Int32, Timestamp)

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

SetTimestamp(String, Timestamp)

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

SetTimestamp(Int32, Timestamp, Calendar)

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

SetTimestamp(String, Timestamp, Calendar)

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

SetTimestamp(Int32, Timestamp)

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

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

Parameters

parameterIndex
Int32

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

x
Timestamp

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.Timestamp value. The driver converts this to an SQL TIMESTAMP value before sending it to the database, using the default java.util.Calendar to calculate it.

Java documentation for javax.sql.RowSet.setTimestamp(int, java.sql.Timestamp).

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

SetTimestamp(String, Timestamp)

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

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

Parameters

parameterName
String

the name of the parameter

x
Timestamp

the parameter value

Attributes

Exceptions

if an error occurs accessing the database.

Remarks

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

Added in 1.4.

Java documentation for javax.sql.RowSet.setTimestamp(java.lang.String, java.sql.Timestamp).

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

SetTimestamp(Int32, Timestamp, Calendar)

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

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

Parameters

parameterIndex
Int32

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

x
Timestamp

the parameter value

cal
Calendar

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

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.Timestamp value. The driver will convert this to an SQL TIMESTAMP value, using the given java.util.Calendar object to calculate it, before sending it to the database.

Java documentation for javax.sql.RowSet.setTimestamp(int, java.sql.Timestamp, 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

SetTimestamp(String, Timestamp, Calendar)

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

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

Parameters

parameterName
String

the name of the parameter

x
Timestamp

the parameter value

cal
Calendar

the Calendar object the driver will use to construct the timestamp

Attributes

Exceptions

if an error occurs accessing the database.

Remarks

Sets the designated parameter to the given java.sql.Timestamp value, using the given Calendar object. The driver uses the Calendar object to construct an SQL TIMESTAMP value, which the driver then sends to the database. With a a Calendar object, the driver can calculate the timestamp 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.setTimestamp(java.lang.String, java.sql.Timestamp, 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