JavaTM 2 Platform
Std. Ed. v1.3.1

Uses of Class
java.sql.Timestamp

Packages that use Timestamp
java.sql Provides the API for accessing and processing data in a data source using the JavaTM programming language. 
 

Uses of Timestamp in java.sql
 

Methods in java.sql that return Timestamp
static Timestamp Timestamp.valueOf(String s)
          Converts a String object in JDBC timestamp escape format to a Timestamp value.
 Timestamp CallableStatement.getTimestamp(int parameterIndex)
          Gets the value of a JDBC TIMESTAMP parameter as a java.sql.Timestamp object.
 Timestamp CallableStatement.getTimestamp(int parameterIndex, Calendar cal)
          Gets the value of a JDBC TIMESTAMP parameter as a java.sql.Timestamp object, using the given Calendar object to construct the Timestamp object.
 Timestamp SQLInput.readTimestamp()
          Reads the next attribute in the stream as a java.sql.Timestamp object.
 Timestamp ResultSet.getTimestamp(int columnIndex)
          Gets 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.
 Timestamp ResultSet.getTimestamp(String columnName)
          Gets the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object.
 Timestamp ResultSet.getTimestamp(int columnIndex, Calendar cal)
          Returns 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.
 Timestamp ResultSet.getTimestamp(String columnName, Calendar cal)
          Returns 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.
 

Methods in java.sql with parameters of type Timestamp
 void PreparedStatement.setTimestamp(int parameterIndex, Timestamp x)
          Sets the designated parameter to a java.sql.Timestamp value.
 void PreparedStatement.setTimestamp(int parameterIndex, Timestamp x, Calendar cal)
          Sets the designated parameter to the given java.sql.Timestamp value, using the given Calendar object.
 boolean Timestamp.equals(Timestamp ts)
          Tests to see if this Timestamp object is equal to the given Timestamp object.
 boolean Timestamp.before(Timestamp ts)
          Indicates whether this Timestamp object is earlier than the given Timestamp object.
 boolean Timestamp.after(Timestamp ts)
          Indicates whether this Timestamp object is later than the given Timestamp object.
 void SQLOutput.writeTimestamp(Timestamp x)
          Writes the next attribute to the stream as a java.sql.Timestamp object.
 void ResultSet.updateTimestamp(int columnIndex, Timestamp x)
          Updates the designated column with a java.sql.Timestamp value.
 void ResultSet.updateTimestamp(String columnName, Timestamp x)
          Updates the designated column with a java.sql.Timestamp value.
 


JavaTM 2 Platform
Std. Ed. v1.3.1

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Java, Java 2D, and JDBC are trademarks or registered trademarks of Oracle and/or its affiliates, in the US and other countries.
Copyright © 1995, 2010 Oracle and/or its affiliates. All rights reserved.