Đang chuẩn bị liên kết để tải về tài liệu:
database programming with jdbc and java phần 10
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Mô tả xây dựng Điều này tạo ra một đối tượng Thời gian mới. Nguyên mẫu đầu tiên xây dựng một Thời gian giờ, phút, và giây quy định. Thứ hai, xây dựng dựa trên số giây kể từ 1 tháng 1Thời gian công cộng (int giờ, phút int, intsecond) công cộng thời gian (thời gian dài) | JDBC and Java 2nd edition static public Time valueOf String s public Time int hour int minute int second public Time long time public int getDate public int getDay public int getMonth public int getYear public int setDate int i public int setMonth int i public void setTime long time public void setYear int i public String toString Object Constructors Time public Time int hour int minute intsecond public Time long time Description This constructor creates a new Time object. The first prototype constructs a Time for the hour minute and seconds specified. The second constructs one based on the number of seconds since January 1 1970 12 00 00 GMT. Object Methods getDate setDate getDay getMonth setMonth getYear and setYear public int getDate public int getDay public int getMonth public int getYear public int setDate int i public int setMonth int i public void setYear int i Description These attributes represent the individual segments of a Time object. setTime public void setTime long time Description This method sets the Time object to the specified time as the number of seconds since January 1 1970 12 00 00 gMt. toString public String toString Description This method formats the Time into a String in the form of hh mm ss. page 224 JDBC and Java 2nd edition valueOf static public Timestamp valueOf String s Description This method creates a new Time based on a String in the form of hh mm ss. Timestamp Synopsis Class Name java.sql.Timestamp Superclass java.util.Date Immediate Subclasses None Interfaces Implemented None Availability JDK 1.1 Description This class serves as a SQL representation of the Java Date class specifically designed to serve as a SQL TIMESTAMP. It also provides the ability to hold nanoseconds as required by SQL TIMESTAMP values. You should keep in mind that this class uses the java.util.Date version of hashcode . This means that two timestamps that differ only by nanoseconds will have identical hashcode return values. Class Summary public class .