| public class java.sql Time
|
Java SE 6 |
A thin wrapper around the java.util.Date class that allows the JDBC
API to identify this as an SQL TIME value. The Time
class adds formatting and
parsing operations to support the JDBC escape syntax for time
values.
The date components should be set to the "zero epoch" value of January 1, 1970 and should not be accessed.
| Methods | |||||
|---|---|---|---|---|---|
| public String | toString() Formats a time in JDBC time escape format.
| ||||
| public static Time | valueOf(String s) Converts a string in JDBC time escape format to a Time value.
| ||||
| Properties | |||||||
|---|---|---|---|---|---|---|---|
| public void | setDate(int i) This method is deprecated and should not be used because SQL TIME
values do not have a date component.
| ||||||
| public int | getDate() This method is deprecated and should not be used because SQL TIME
values do not have a date component.
| ||||||
| public int | getDay() This method is deprecated and should not be used because SQL TIME
values do not have a day component.
| ||||||
| public void | setMonth(int i) This method is deprecated and should not be used because SQL TIME
values do not have a month component.
| ||||||
| public int | getMonth() This method is deprecated and should not be used because SQL TIME
values do not have a month component.
| ||||||
| public void | setTime(long time) Sets a Time object using a milliseconds time value.
| ||||||
| public void | setYear(int i) This method is deprecated and should not be used because SQL TIME
values do not have a year component.
| ||||||
| public int | getYear() This method is deprecated and should not be used because SQL TIME
values do not have a year component.
| ||||||
| About DocWeb · Bundles · Export · Export All | Top 10 · Statistics · Login |
| About Sun · Contact · Privacy · Terms of Use · Trademarks | Java SE 6 · Copyright © 1994-2009 Sun Microsystems, Inc.All rights reserved. Use is subject to license terms |
![]() |
![]() |
|