Share via


ICallableStatement.GetTimestamp Method

Definition

Overloads

GetTimestamp(String, Calendar)

Retrieves the value of a JDBC TIMESTAMP parameter as a java.sql.Timestamp object, using the given Calendar object to construct the Timestamp object.

GetTimestamp(Int32, Calendar)

Retrieves the value of the designated JDBC TIMESTAMP parameter as a java.sql.Timestamp object, using the given Calendar object to construct the Timestamp object.

GetTimestamp(String)

Retrieves the value of a JDBC TIMESTAMP parameter as a java.sql.Timestamp object.

GetTimestamp(Int32)

Retrieves the value of the designated JDBC TIMESTAMP parameter as a java.sql.Timestamp object.

GetTimestamp(String, Calendar)

Retrieves the value of a JDBC TIMESTAMP parameter as a java.sql.Timestamp object, using the given Calendar object to construct the Timestamp object.

[Android.Runtime.Register("getTimestamp", "(Ljava/lang/String;Ljava/util/Calendar;)Ljava/sql/Timestamp;", "GetGetTimestamp_Ljava_lang_String_Ljava_util_Calendar_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.Timestamp? GetTimestamp (string? parameterName, Java.Util.Calendar? cal);
[<Android.Runtime.Register("getTimestamp", "(Ljava/lang/String;Ljava/util/Calendar;)Ljava/sql/Timestamp;", "GetGetTimestamp_Ljava_lang_String_Ljava_util_Calendar_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetTimestamp : string * Java.Util.Calendar -> Java.Sql.Timestamp

Parameters

parameterName
String

the name of the parameter

cal
Calendar

the Calendar object the driver will use to construct the timestamp

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 TIMESTAMP parameter as a java.sql.Timestamp object, using the given Calendar object to construct the Timestamp object. With a Calendar object, the driver can calculate the timestamp 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.getTimestamp(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.

See also

Applies to

GetTimestamp(Int32, Calendar)

Retrieves the value of the designated JDBC TIMESTAMP parameter as a java.sql.Timestamp object, using the given Calendar object to construct the Timestamp object.

[Android.Runtime.Register("getTimestamp", "(ILjava/util/Calendar;)Ljava/sql/Timestamp;", "GetGetTimestamp_ILjava_util_Calendar_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.Timestamp? GetTimestamp (int parameterIndex, Java.Util.Calendar? cal);
[<Android.Runtime.Register("getTimestamp", "(ILjava/util/Calendar;)Ljava/sql/Timestamp;", "GetGetTimestamp_ILjava_util_Calendar_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetTimestamp : int * Java.Util.Calendar -> Java.Sql.Timestamp

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 timestamp

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 TIMESTAMP parameter as a java.sql.Timestamp object, using the given Calendar object to construct the Timestamp object. With a Calendar object, the driver can calculate the timestamp 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.getTimestamp(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

GetTimestamp(String)

Retrieves the value of a JDBC TIMESTAMP parameter as a java.sql.Timestamp object.

[Android.Runtime.Register("getTimestamp", "(Ljava/lang/String;)Ljava/sql/Timestamp;", "GetGetTimestamp_Ljava_lang_String_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.Timestamp? GetTimestamp (string? parameterName);
[<Android.Runtime.Register("getTimestamp", "(Ljava/lang/String;)Ljava/sql/Timestamp;", "GetGetTimestamp_Ljava_lang_String_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetTimestamp : string -> Java.Sql.Timestamp

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 TIMESTAMP parameter as a java.sql.Timestamp object.

Added in 1.4.

Java documentation for java.sql.CallableStatement.getTimestamp(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

GetTimestamp(Int32)

Retrieves the value of the designated JDBC TIMESTAMP parameter as a java.sql.Timestamp object.

[Android.Runtime.Register("getTimestamp", "(I)Ljava/sql/Timestamp;", "GetGetTimestamp_IHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.Timestamp? GetTimestamp (int parameterIndex);
[<Android.Runtime.Register("getTimestamp", "(I)Ljava/sql/Timestamp;", "GetGetTimestamp_IHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetTimestamp : int -> Java.Sql.Timestamp

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 TIMESTAMP parameter as a java.sql.Timestamp object.

Java documentation for java.sql.CallableStatement.getTimestamp(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