Aracılığıyla paylaş


ICallableStatement.GetTime Method

Definition

Overloads

GetTime(Int32, Calendar)

Retrieves the value of the designated JDBC TIME parameter as a java.sql.Time object, using the given Calendar object to construct the time.

GetTime(String, Calendar)

Retrieves the value of a JDBC TIME parameter as a java.sql.Time object, using the given Calendar object to construct the time.

GetTime(Int32)

Retrieves the value of the designated JDBC TIME parameter as a java.sql.Time object.

GetTime(String)

Retrieves the value of a JDBC TIME parameter as a java.sql.Time object.

GetTime(Int32, Calendar)

Retrieves the value of the designated JDBC TIME parameter as a java.sql.Time object, using the given Calendar object to construct the time.

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

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 time

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 TIME parameter as a java.sql.Time object, using the given Calendar object to construct the time. With a Calendar object, the driver can calculate the time 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.getTime(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

GetTime(String, Calendar)

Retrieves the value of a JDBC TIME parameter as a java.sql.Time object, using the given Calendar object to construct the time.

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

Parameters

parameterName
String

the name of the parameter

cal
Calendar

the Calendar object the driver will use to construct the time

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 TIME parameter as a java.sql.Time object, using the given Calendar object to construct the time. With a Calendar object, the driver can calculate the time 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.getTime(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

GetTime(Int32)

Retrieves the value of the designated JDBC TIME parameter as a java.sql.Time object.

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

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 TIME parameter as a java.sql.Time object.

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

GetTime(String)

Retrieves the value of a JDBC TIME parameter as a java.sql.Time object.

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

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 TIME parameter as a java.sql.Time object.

Added in 1.4.

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