Java™ Platform
Standard Ed. 6

Uses of Class
java.sql.Timestamp

Packages that use Timestamp
java.sql Provides the API for accessing and processing data stored in a data source (usually a relational database) using the JavaTM programming language. 
javax.sql Provides the API for server side data source access and processing from the JavaTM programming language. 
javax.sql.rowset Standard interfaces and base classes for JDBC RowSet implementations. 
javax.sql.rowset.serial Provides utility classes to allow serializable mappings between SQL types and data types in the Java programming language. 
 

Uses of Timestamp in java.sql
 

Methods in java.sql that return Timestamp
 Timestamp ResultSet.getTimestamp(int columnIndex)
          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.
 Timestamp CallableStatement.getTimestamp(int parameterIndex)
          Retrieves the value of the designated JDBC TIMESTAMP parameter as a java.sql.Timestamp object.
 Timestamp ResultSet.getTimestamp(int columnIndex, Calendar cal)
          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.
 Timestamp CallableStatement.getTimestamp(int parameterIndex, Calendar cal)
          Retrieves the value of the designated JDBC TIMESTAMP parameter as a java.sql.Timestamp object, using the given Calendar object to construct the Timestamp object.
 Timestamp ResultSet.getTimestamp(String columnLabel)
          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.
 Timestamp CallableStatement.getTimestamp(String parameterName)
          Retrieves the value of a JDBC TIMESTAMP parameter as a java.sql.Timestamp object.
 Timestamp ResultSet.getTimestamp(String columnLabel, Calendar cal)
          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.
 Timestamp CallableStatement.getTimestamp(String parameterName, Calendar cal)
          Retrieves 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 and returns it as a java.sql.Timestamp object.
static Timestamp Timestamp.valueOf(String s)
          Converts a String object in JDBC timestamp escape format to a Timestamp value.
 

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

Uses of Timestamp in javax.sql
 

Methods in javax.sql with parameters of type Timestamp
 void RowSet.setTimestamp(int parameterIndex, Timestamp x)
          Sets the designated parameter in this RowSet object's command to the given java.sql.Timestamp value.
 void RowSet.setTimestamp(int parameterIndex, Timestamp x, Calendar cal)
          Sets the designated parameter in this RowSet object's command with the given java.sql.Timestamp value.
 void RowSet.setTimestamp(String parameterName, Timestamp x)
          Sets the designated parameter to the given java.sql.Timestamp value.
 void RowSet.setTimestamp(String parameterName, Timestamp x, Calendar cal)
          Sets the designated parameter to the given java.sql.Timestamp value, using the given Calendar object.
 

Uses of Timestamp in javax.sql.rowset
 

Methods in javax.sql.rowset with parameters of type Timestamp
 void BaseRowSet.setTimestamp(int parameterIndex, Timestamp x)
          Sets the designated parameter to the given java.sql.Timestamp value.
 void BaseRowSet.setTimestamp(int parameterIndex, Timestamp x, Calendar cal)
          Sets the designated parameter to the given java.sql.Timestamp object.
 void BaseRowSet.setTimestamp(String parameterName, Timestamp x)
          Sets the designated parameter to the given java.sql.Timestamp value.
 void BaseRowSet.setTimestamp(String parameterName, Timestamp x, Calendar cal)
          Sets the designated parameter to the given java.sql.Timestamp value, using the given Calendar object.
 

Uses of Timestamp in javax.sql.rowset.serial
 

Methods in javax.sql.rowset.serial that return Timestamp
 Timestamp SQLInputImpl.readTimestamp()
          Retrieves the next attribute in this SQLInputImpl object as a java.sql.Timestamp object.
 

Methods in javax.sql.rowset.serial with parameters of type Timestamp
 void SQLOutputImpl.writeTimestamp(Timestamp x)
          Writes a java.sql.Timestamp object in the Java programming language to this SQLOutputImpl object.
 


Java™ Platform
Standard Ed. 6

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

Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.

Scripting on this page tracks web page traffic, but does not change the content in any way.