IResultSet.GetTimestamp 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
GetTimestamp(Int32) |
Retrieves the value of the designated column in the current row
of this |
GetTimestamp(String) |
Retrieves the value of the designated column in the current row
of this |
GetTimestamp(Int32, Calendar) |
Retrieves the value of the designated column in the current row
of this |
GetTimestamp(String, Calendar) |
Retrieves the value of the designated column in the current row
of this |
GetTimestamp(Int32)
Retrieves the value of the designated column in the current row
of this ResultSet
object as
a java.sql.Timestamp
object in the Java programming language.
[Android.Runtime.Register("getTimestamp", "(I)Ljava/sql/Timestamp;", "GetGetTimestamp_IHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.Timestamp? GetTimestamp (int columnIndex);
[<Android.Runtime.Register("getTimestamp", "(I)Ljava/sql/Timestamp;", "GetGetTimestamp_IHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetTimestamp : int -> Java.Sql.Timestamp
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.Timestamp
object in the Java programming language.
Java documentation for java.sql.ResultSet.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.
Applies to
GetTimestamp(String)
Retrieves the value of the designated column in the current row
of this ResultSet
object as
a java.sql.Timestamp
object in the Java programming language.
[Android.Runtime.Register("getTimestamp", "(Ljava/lang/String;)Ljava/sql/Timestamp;", "GetGetTimestamp_Ljava_lang_String_Handler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.Timestamp? GetTimestamp (string? columnLabel);
[<Android.Runtime.Register("getTimestamp", "(Ljava/lang/String;)Ljava/sql/Timestamp;", "GetGetTimestamp_Ljava_lang_String_Handler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetTimestamp : string -> Java.Sql.Timestamp
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.Timestamp
object in the Java programming language.
Java documentation for java.sql.ResultSet.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.
Applies to
GetTimestamp(Int32, Calendar)
Retrieves the value of the designated column in the current row
of this ResultSet
object as a java.sql.Timestamp
object
in the Java programming language.
[Android.Runtime.Register("getTimestamp", "(ILjava/util/Calendar;)Ljava/sql/Timestamp;", "GetGetTimestamp_ILjava_util_Calendar_Handler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.Timestamp? GetTimestamp (int columnIndex, Java.Util.Calendar? cal);
[<Android.Runtime.Register("getTimestamp", "(ILjava/util/Calendar;)Ljava/sql/Timestamp;", "GetGetTimestamp_ILjava_util_Calendar_Handler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetTimestamp : int * Java.Util.Calendar -> Java.Sql.Timestamp
Parameters
- columnIndex
- Int32
the first column is 1, the second is 2, ...
- cal
- Calendar
the java.util.Calendar
object
to use in constructing the timestamp
Returns
the column value as a java.sql.Timestamp
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.Timestamp
object in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the timestamp if the underlying database does not store timezone information.
Added in 1.2.
Java documentation for java.sql.ResultSet.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.
Applies to
GetTimestamp(String, Calendar)
Retrieves the value of the designated column in the current row
of this ResultSet
object as a java.sql.Timestamp
object
in the Java programming language.
[Android.Runtime.Register("getTimestamp", "(Ljava/lang/String;Ljava/util/Calendar;)Ljava/sql/Timestamp;", "GetGetTimestamp_Ljava_lang_String_Ljava_util_Calendar_Handler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.Timestamp? GetTimestamp (string? columnLabel, 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.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetTimestamp : string * Java.Util.Calendar -> Java.Sql.Timestamp
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 date
Returns
the column value as a java.sql.Timestamp
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.Timestamp
object in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the timestamp if the underlying database does not store timezone information.
Added in 1.2.
Java documentation for java.sql.ResultSet.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.