次の方法で共有


IResultSet.GetTime Method

Definition

Overloads

GetTime(Int32)

Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language.

GetTime(String)

Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language.

GetTime(Int32, Calendar)

Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language.

GetTime(String, Calendar)

Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language.

GetTime(Int32)

Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language.

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

Parameters

columnIndex
Int32

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

Returns

the column value; if the value is SQL NULL, the value returned is null

Attributes

Exceptions

if a database error happens.

Remarks

Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language.

Java documentation for java.sql.ResultSet.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.

Applies to

GetTime(String)

Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language.

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

Parameters

columnLabel
String

the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column

Returns

the column value; if the value is SQL NULL, the value returned is null

Attributes

Exceptions

if a database error happens.

Remarks

Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language.

Java documentation for java.sql.ResultSet.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.

Applies to

GetTime(Int32, Calendar)

Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language.

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

Parameters

columnIndex
Int32

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

cal
Calendar

the java.util.Calendar object to use in constructing the time

Returns

the column value as a java.sql.Time object; if the value is SQL NULL, the value returned is null in the Java programming language

Attributes

Exceptions

if a database error happens.

Remarks

Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the time if the underlying database does not store timezone information.

Added in 1.2.

Java documentation for java.sql.ResultSet.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.

Applies to

GetTime(String, Calendar)

Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language.

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

Parameters

columnLabel
String

the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column

cal
Calendar

the java.util.Calendar object to use in constructing the time

Returns

the column value as a java.sql.Time object; if the value is SQL NULL, the value returned is null in the Java programming language

Attributes

Exceptions

if a database error happens.

Remarks

Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the time if the underlying database does not store timezone information.

Added in 1.2.

Java documentation for java.sql.ResultSet.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.

Applies to