IRowSet.SetDate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| SetDate(String, Date) |
Sets the designated parameter to the given |
| SetDate(Int32, Date, Calendar) |
Sets the designated parameter in this |
| SetDate(Int32, Date) |
Sets the designated parameter in this |
| SetDate(String, Date, Calendar) |
Sets the designated parameter to the given |
SetDate(String, Date)
Sets the designated parameter to the given java.sql.Date value
using the default time zone of the virtual machine that is running
the application.
[Android.Runtime.Register("setDate", "(Ljava/lang/String;Ljava/sql/Date;)V", "GetSetDate_Ljava_lang_String_Ljava_sql_Date_Handler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetDate(string? parameterName, Java.Sql.Date? x);
[<Android.Runtime.Register("setDate", "(Ljava/lang/String;Ljava/sql/Date;)V", "GetSetDate_Ljava_lang_String_Ljava_sql_Date_Handler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetDate : string * Java.Sql.Date -> unit
Parameters
- parameterName
- String
the name of the parameter
- x
- Date
the parameter value
- Attributes
Exceptions
if an error occurs accessing the database.
Remarks
Sets the designated parameter to the given java.sql.Date value using the default time zone of the virtual machine that is running the application. The driver converts this to an SQL DATE value when it sends it to the database.
Added in 1.4.
Java documentation for javax.sql.RowSet.setDate(java.lang.String, java.sql.Date).
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
SetDate(Int32, Date, Calendar)
Sets the designated parameter in this RowSet object's command
with the given java.sql.Date value.
[Android.Runtime.Register("setDate", "(ILjava/sql/Date;Ljava/util/Calendar;)V", "GetSetDate_ILjava_sql_Date_Ljava_util_Calendar_Handler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetDate(int parameterIndex, Java.Sql.Date? x, Java.Util.Calendar? cal);
[<Android.Runtime.Register("setDate", "(ILjava/sql/Date;Ljava/util/Calendar;)V", "GetSetDate_ILjava_sql_Date_Ljava_util_Calendar_Handler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetDate : int * Java.Sql.Date * Java.Util.Calendar -> unit
Parameters
- parameterIndex
- Int32
the first parameter is 1, the second is 2, ...
- x
- Date
the parameter value
- cal
- Calendar
the java.util.Calendar object to use for calculating the date
- 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.Date value. The driver will convert this to an SQL DATE value, using the given java.util.Calendar object to calculate the date.
Java documentation for javax.sql.RowSet.setDate(int, java.sql.Date, 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
SetDate(Int32, Date)
Sets the designated parameter in this RowSet object's command
to the given java.sql.Date value.
[Android.Runtime.Register("setDate", "(ILjava/sql/Date;)V", "GetSetDate_ILjava_sql_Date_Handler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetDate(int parameterIndex, Java.Sql.Date? x);
[<Android.Runtime.Register("setDate", "(ILjava/sql/Date;)V", "GetSetDate_ILjava_sql_Date_Handler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetDate : int * Java.Sql.Date -> unit
Parameters
- parameterIndex
- Int32
the first parameter is 1, the second is 2, ...
- x
- Date
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.Date value. The driver converts this to an SQL DATE value before sending it to the database, using the default java.util.Calendar to calculate the date.
Java documentation for javax.sql.RowSet.setDate(int, java.sql.Date).
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
SetDate(String, Date, Calendar)
Sets the designated parameter to the given java.sql.Date value,
using the given Calendar object.
[Android.Runtime.Register("setDate", "(Ljava/lang/String;Ljava/sql/Date;Ljava/util/Calendar;)V", "GetSetDate_Ljava_lang_String_Ljava_sql_Date_Ljava_util_Calendar_Handler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetDate(string? parameterName, Java.Sql.Date? x, Java.Util.Calendar? cal);
[<Android.Runtime.Register("setDate", "(Ljava/lang/String;Ljava/sql/Date;Ljava/util/Calendar;)V", "GetSetDate_Ljava_lang_String_Ljava_sql_Date_Ljava_util_Calendar_Handler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetDate : string * Java.Sql.Date * Java.Util.Calendar -> unit
Parameters
- parameterName
- String
the name of the parameter
- x
- Date
the parameter value
- cal
- Calendar
the Calendar object the driver will use
to construct the date
- Attributes
Exceptions
if an error occurs accessing the database.
Remarks
Sets the designated parameter to the given java.sql.Date value, using the given Calendar object. The driver uses the Calendar object to construct an SQL DATE value, which the driver then sends to the database. With a a Calendar object, the driver can calculate the date 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.
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.