Uses of Class
java.sql.Timestamp
| Package | Description |
|---|---|
| java.sql |
Provides the API for accessing and processing data stored in a
data source (usually a relational database) using the
Java™ programming language.
|
| javax.sql |
Provides the API for server side data source access and processing from
the Java™ 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 Modifier and Type Method Description static TimestampTimestamp. from(Instant instant)Obtains an instance ofTimestampfrom anInstantobject.TimestampCallableStatement. getTimestamp(int parameterIndex)Retrieves the value of the designated JDBCTIMESTAMPparameter as ajava.sql.Timestampobject.TimestampCallableStatement. getTimestamp(int parameterIndex, Calendar cal)Retrieves the value of the designated JDBCTIMESTAMPparameter as ajava.sql.Timestampobject, using the givenCalendarobject to construct theTimestampobject.TimestampCallableStatement. getTimestamp(String parameterName)Retrieves the value of a JDBCTIMESTAMPparameter as ajava.sql.Timestampobject.TimestampCallableStatement. getTimestamp(String parameterName, Calendar cal)Retrieves the value of a JDBCTIMESTAMPparameter as ajava.sql.Timestampobject, using the givenCalendarobject to construct theTimestampobject.TimestampResultSet. 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.TimestampResultSet. 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.TimestampResultSet. 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.TimestampResultSet. 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.TimestampSQLInput. readTimestamp()Reads the next attribute in the stream and returns it as ajava.sql.Timestampobject.static TimestampTimestamp. valueOf(String s)Converts aStringobject in JDBC timestamp escape format to aTimestampvalue.static TimestampTimestamp. 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.Methods in java.sql with parameters of type Timestamp Modifier and Type Method Description booleanTimestamp. after(Timestamp ts)Indicates whether thisTimestampobject is later than the givenTimestampobject.booleanTimestamp. before(Timestamp ts)Indicates whether thisTimestampobject is earlier than the givenTimestampobject.intTimestamp. compareTo(Timestamp ts)Compares thisTimestampobject to the givenTimestampobject.booleanTimestamp. equals(Timestamp ts)Tests 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 of Timestamp in javax.sql
Methods in javax.sql with parameters of type Timestamp Modifier and Type Method Description voidRowSet. 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 of Timestamp in javax.sql.rowset
Methods in javax.sql.rowset with parameters of type Timestamp Modifier and Type Method Description voidBaseRowSet. 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 of Timestamp in javax.sql.rowset.serial
Methods in javax.sql.rowset.serial that return Timestamp Modifier and Type Method Description TimestampSQLInputImpl. readTimestamp()Retrieves the next attribute in thisSQLInputImplobject as ajava.sql.Timestampobject.Methods in javax.sql.rowset.serial with parameters of type Timestamp Modifier and Type Method Description voidSQLOutputImpl. writeTimestamp(Timestamp x)Writes ajava.sql.Timestampobject in the Java programming language to thisSQLOutputImplobject.