站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

Java(TM) 2 Platform, Standard Edition, v1.2.2 API Specification: Uses of Class java.sql.Date - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

JavaTM 2 Platform
Standard Edition

Uses of Class
java.sql.Date

Packages that use Date
java.sql Provides the JDBC package. 
 

Uses of Date in java.sql
 

Methods in java.sql that return Date
 Date ResultSet.getDate(int columnIndex)
          Gets the value of a column in the current row as a java.sql.Date object.
 Date ResultSet.getDate(String columnName)
          Gets the value of a column in the current row as a java.sql.Date object.
 Date ResultSet.getDate(int columnIndex, Calendar cal)
          JDBC 2.0 Gets the value of a column in the current row as a java.sql.Date object.
 Date ResultSet.getDate(String columnName, Calendar cal)
          Gets the value of a column in the current row as a java.sql.Date object.
static Date Date.valueOf(String s)
          Converts a string in JDBC date escape format to a Date value.
 Date SQLInput.readDate()
          Reads the next attribute in the stream as a java.sql.Date object.
 Date CallableStatement.getDate(int parameterIndex)
          Gets the value of a JDBC DATE parameter as a java.sql.Date object.
 Date CallableStatement.getDate(int parameterIndex, Calendar cal)
          Gets the value of a JDBC DATE parameter as a java.sql.Date object, using the given Calendar object to construct the date.
 

Methods in java.sql with parameters of type Date
 void PreparedStatement.setDate(int parameterIndex, Date x)
          Sets the designated parameter to a java.sql.Date value.
 void PreparedStatement.setDate(int parameterIndex, Date x, Calendar cal)
          JDBC 2.0 Sets the designated parameter to a java.sql.Date value, using the given Calendar object.
 void ResultSet.updateDate(int columnIndex, Date x)
          JDBC 2.0 Updates a column with a Date value.
 void ResultSet.updateDate(String columnName, Date x)
          JDBC 2.0 Updates a column with a Date value.
 void SQLOutput.writeDate(Date x)
          Writes the next attribute to the stream as a java.sql.Date object.
 


JavaTM 2 Platform
Standard Edition

Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.