Uses of Class
java.sql.Timestamp
Packages that useTimestamp
Package
Description
Provides the API for accessing and processing data stored in a data source (usually a relational database) using the Java programming language.
Provides the API for server side data source access and processing from the Java programming language.
Standard interfaces and base classes for JDBC
RowSet implementations.Provides utility classes to allow serializable mappings between SQL types and data types in the Java programming language.
Uses ofTimestamp injava.sql
Modifier and TypeMethodDescriptionstaticTimestampObtains an instance ofTimestampfrom anInstantobject.CallableStatement.getTimestamp(int parameterIndex) Retrieves the value of the designated JDBCTIMESTAMPparameter as ajava.sql.Timestampobject.CallableStatement.getTimestamp(int parameterIndex,Calendar cal) Retrieves the value of the designated JDBCTIMESTAMPparameter as ajava.sql.Timestampobject, using the givenCalendarobject to construct theTimestampobject.CallableStatement.getTimestamp(String parameterName) Retrieves the value of a JDBCTIMESTAMPparameter as ajava.sql.Timestampobject.CallableStatement.getTimestamp(String parameterName,Calendar cal) Retrieves the value of a JDBCTIMESTAMPparameter as ajava.sql.Timestampobject, using the givenCalendarobject to construct theTimestampobject.ResultSet.getTimestamp(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timestampobject in the Java programming language.ResultSet.getTimestamp(int columnIndex,Calendar cal) Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timestampobject in the Java programming language.ResultSet.getTimestamp(String columnLabel) Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timestampobject in the Java programming language.ResultSet.getTimestamp(String columnLabel,Calendar cal) Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timestampobject in the Java programming language.SQLInput.readTimestamp()Reads the next attribute in the stream and returns it as ajava.sql.Timestampobject.staticTimestampConverts aStringobject in JDBC timestamp escape format to aTimestampvalue.staticTimestampTimestamp.valueOf(LocalDateTime dateTime) Obtains an instance ofTimestampfrom aLocalDateTimeobject, with the same year, month, day of month, hours, minutes, seconds and nanos date-time value as the providedLocalDateTime.Modifier and TypeMethodDescriptionbooleanIndicates whether thisTimestampobject is later than the givenTimestampobject.booleanIndicates whether thisTimestampobject is earlier than the givenTimestampobject.intCompares thisTimestampobject to the givenTimestampobject.booleanTests to see if thisTimestampobject is equal to the givenTimestampobject.voidCallableStatement.setTimestamp(String parameterName,Timestamp x) Sets the designated parameter to the givenjava.sql.Timestampvalue.voidCallableStatement.setTimestamp(String parameterName,Timestamp x,Calendar cal) Sets the designated parameter to the givenjava.sql.Timestampvalue, using the givenCalendarobject.voidPreparedStatement.setTimestamp(int parameterIndex,Timestamp x) Sets the designated parameter to the givenjava.sql.Timestampvalue.voidPreparedStatement.setTimestamp(int parameterIndex,Timestamp x,Calendar cal) Sets the designated parameter to the givenjava.sql.Timestampvalue, using the givenCalendarobject.voidResultSet.updateTimestamp(int columnIndex,Timestamp x) Updates the designated column with ajava.sql.Timestampvalue.voidResultSet.updateTimestamp(String columnLabel,Timestamp x) Updates the designated column with ajava.sql.Timestampvalue.voidSQLOutput.writeTimestamp(Timestamp x) Writes the next attribute to the stream as a java.sql.Timestamp object.Uses ofTimestamp injavax.sql
Modifier and TypeMethodDescriptionvoidRowSet.setTimestamp(int parameterIndex,Timestamp x) Sets the designated parameter in thisRowSetobject's command to the givenjava.sql.Timestampvalue.voidRowSet.setTimestamp(int parameterIndex,Timestamp x,Calendar cal) Sets the designated parameter in thisRowSetobject's command with the givenjava.sql.Timestampvalue.voidRowSet.setTimestamp(String parameterName,Timestamp x) Sets the designated parameter to the givenjava.sql.Timestampvalue.voidRowSet.setTimestamp(String parameterName,Timestamp x,Calendar cal) Sets the designated parameter to the givenjava.sql.Timestampvalue, using the givenCalendarobject.Uses ofTimestamp injavax.sql.rowset
Methods injavax.sql.rowset with parameters of typeTimestampModifier and TypeMethodDescriptionvoidBaseRowSet.setTimestamp(int parameterIndex,Timestamp x) Sets the designated parameter to the givenjava.sql.Timestampvalue.voidBaseRowSet.setTimestamp(int parameterIndex,Timestamp x,Calendar cal) Sets the designated parameter to the givenjava.sql.Timestampobject.voidBaseRowSet.setTimestamp(String parameterName,Timestamp x) Sets the designated parameter to the givenjava.sql.Timestampvalue.voidBaseRowSet.setTimestamp(String parameterName,Timestamp x,Calendar cal) Sets the designated parameter to the givenjava.sql.Timestampvalue, using the givenCalendarobject.Uses ofTimestamp injavax.sql.rowset.serial
Methods injavax.sql.rowset.serial that returnTimestampModifier and TypeMethodDescriptionSQLInputImpl.readTimestamp()Retrieves the next attribute in thisSQLInputImplobject as ajava.sql.Timestampobject.Methods injavax.sql.rowset.serial with parameters of typeTimestampModifier and TypeMethodDescriptionvoidSQLOutputImpl.writeTimestamp(Timestamp x) Writes ajava.sql.Timestampobject in the Java programming language to thisSQLOutputImplobject.