ICallableStatement.GetDate 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
GetDate(Int32) |
Retrieves the value of the designated JDBC |
GetDate(String) |
Retrieves the value of a JDBC |
GetDate(Int32, Calendar) |
Retrieves the value of the designated JDBC |
GetDate(String, Calendar) |
Retrieves the value of a JDBC |
GetDate(Int32)
Retrieves the value of the designated JDBC DATE
parameter as a
java.sql.Date
object.
[Android.Runtime.Register("getDate", "(I)Ljava/sql/Date;", "GetGetDate_IHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.Date? GetDate (int parameterIndex);
[<Android.Runtime.Register("getDate", "(I)Ljava/sql/Date;", "GetGetDate_IHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetDate : int -> Java.Sql.Date
Parameters
- parameterIndex
- Int32
the first parameter is 1, the second is 2, and so on
Returns
the parameter value. If the value is SQL NULL
, the result
is null
.
- Attributes
Exceptions
if a database error occurs.
Remarks
Retrieves the value of the designated JDBC DATE
parameter as a java.sql.Date
object.
Java documentation for java.sql.CallableStatement.getDate(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.
See also
Applies to
GetDate(String)
Retrieves the value of a JDBC DATE
parameter as a
java.sql.Date
object.
[Android.Runtime.Register("getDate", "(Ljava/lang/String;)Ljava/sql/Date;", "GetGetDate_Ljava_lang_String_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.Date? GetDate (string? parameterName);
[<Android.Runtime.Register("getDate", "(Ljava/lang/String;)Ljava/sql/Date;", "GetGetDate_Ljava_lang_String_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetDate : string -> Java.Sql.Date
Parameters
- parameterName
- String
the name of the parameter
Returns
the parameter value. If the value is SQL NULL
, the result
is null
.
- Attributes
Exceptions
if a database error occurs.
Remarks
Retrieves the value of a JDBC DATE
parameter as a java.sql.Date
object.
Added in 1.4.
Java documentation for java.sql.CallableStatement.getDate(java.lang.String)
.
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
GetDate(Int32, Calendar)
Retrieves the value of the designated JDBC DATE
parameter as a
java.sql.Date
object, using
the given Calendar
object
to construct the date.
[Android.Runtime.Register("getDate", "(ILjava/util/Calendar;)Ljava/sql/Date;", "GetGetDate_ILjava_util_Calendar_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.Date? GetDate (int parameterIndex, Java.Util.Calendar? cal);
[<Android.Runtime.Register("getDate", "(ILjava/util/Calendar;)Ljava/sql/Date;", "GetGetDate_ILjava_util_Calendar_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetDate : int * Java.Util.Calendar -> Java.Sql.Date
Parameters
- parameterIndex
- Int32
the first parameter is 1, the second is 2, and so on
- cal
- Calendar
the Calendar
object the driver will use
to construct the date
Returns
the parameter value. If the value is SQL NULL
, the result
is null
.
- Attributes
Exceptions
if a database error occurs.
Remarks
Retrieves the value of the designated JDBC DATE
parameter as a java.sql.Date
object, using the given Calendar
object to construct the date. With a Calendar
object, the driver can calculate the date taking into account a custom timezone and locale. If no Calendar
object is specified, the driver uses the default timezone and locale.
Added in 1.2.
Java documentation for java.sql.CallableStatement.getDate(int, 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
GetDate(String, Calendar)
Retrieves the value of a JDBC DATE
parameter as a
java.sql.Date
object, using
the given Calendar
object
to construct the date.
[Android.Runtime.Register("getDate", "(Ljava/lang/String;Ljava/util/Calendar;)Ljava/sql/Date;", "GetGetDate_Ljava_lang_String_Ljava_util_Calendar_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.Date? GetDate (string? parameterName, Java.Util.Calendar? cal);
[<Android.Runtime.Register("getDate", "(Ljava/lang/String;Ljava/util/Calendar;)Ljava/sql/Date;", "GetGetDate_Ljava_lang_String_Ljava_util_Calendar_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetDate : string * Java.Util.Calendar -> Java.Sql.Date
Parameters
- parameterName
- String
the name of the parameter
- cal
- Calendar
the Calendar
object the driver will use
to construct the date
Returns
the parameter value. If the value is SQL NULL
,
the result is null
.
- Attributes
Exceptions
if a database error occurs.
Remarks
Retrieves the value of a JDBC DATE
parameter as a java.sql.Date
object, using the given Calendar
object to construct the date. With a Calendar
object, the driver can calculate the date taking into account a custom timezone and locale. If no Calendar
object is specified, the driver uses the default timezone and locale.
Added in 1.4.
Java documentation for java.sql.CallableStatement.getDate(java.lang.String, 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.