| Package | Description |
|---|---|
| java.sql |
Provides the API for accessing and processing data stored in a data source (usually a relational database) using the Java
TM programming language.
|
| javax.sql |
Provides the API for server side data source access and processing from the Java
TM 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.
|
| Modifier and Type | Method and Description |
|---|---|
static Timestamp |
Timestamp.from(Instant
Obtains an instance of
Timestamp from an
Instant object.
|
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
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
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
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
Retrieves the value of a JDBC
TIMESTAMP parameter as a
java.sql.Timestamp object.
|
Timestamp |
ResultSet.getTimestamp(String
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
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(LocalDateTime
Obtains an instance of
Timestamp from a
LocalDateTime object, with the same year, month, day of month, hours, minutes, seconds and nanos date-time value as the provided
LocalDateTime.
|
static Timestamp |
Timestamp.valueOf(String
Converts a
String object in JDBC timestamp escape format to a
Timestamp value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Timestamp.after(Timestamp
Indicates whether this
Timestamp object is later than the given
Timestamp object.
|
boolean |
Timestamp.before(Timestamp
Indicates whether this
Timestamp object is earlier than the given
Timestamp object.
|
int |
Timestamp.compareTo(Timestamp
Compares this
Timestamp object to the given
Timestamp object.
|
boolean |
Timestamp.equals(Timestamp
Tests to see if this
Timestamp object is equal to the given
Timestamp object.
|
void |
PreparedStatement.setTimestamp(int parameterIndex, Timestamp
Sets the designated parameter to the given
java.sql.Timestamp value.
|
void |
PreparedStatement.setTimestamp(int parameterIndex, Timestamp
Sets the designated parameter to the given
java.sql.Timestamp value, using the given
Calendar object.
|
void |
CallableStatement.setTimestamp(String
Sets the designated parameter to the given
java.sql.Timestamp value.
|
void |
CallableStatement.setTimestamp(String
Sets the designated parameter to the given
java.sql.Timestamp value, using the given
Calendar object.
|
void |
ResultSet.updateTimestamp(int columnIndex, Timestamp
Updates the designated column with a
java.sql.Timestamp value.
|
void |
ResultSet.updateTimestamp(String
Updates the designated column with a
java.sql.Timestamp value.
|
void |
SQLOutput.writeTimestamp(Timestamp
Writes the next attribute to the stream as a java.sql.Timestamp object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RowSet.setTimestamp(int parameterIndex, Timestamp
Sets the designated parameter in this
RowSet object's command to the given
java.sql.Timestamp value.
|
void |
RowSet.setTimestamp(int parameterIndex, Timestamp
Sets the designated parameter in this
RowSet object's command with the given
java.sql.Timestamp value.
|
void |
RowSet.setTimestamp(String
Sets the designated parameter to the given
java.sql.Timestamp value.
|
void |
RowSet.setTimestamp(String
Sets the designated parameter to the given
java.sql.Timestamp value, using the given
Calendar object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BaseRowSet.setTimestamp(int parameterIndex, Timestamp
Sets the designated parameter to the given
java.sql.Timestamp value.
|
void |
BaseRowSet.setTimestamp(int parameterIndex, Timestamp
Sets the designated parameter to the given
java.sql.Timestamp object.
|
void |
BaseRowSet.setTimestamp(String
Sets the designated parameter to the given
java.sql.Timestamp value.
|
void |
BaseRowSet.setTimestamp(String
Sets the designated parameter to the given
java.sql.Timestamp value, using the given
Calendar object.
|
| Modifier and Type | Method and Description |
|---|---|
Timestamp |
SQLInputImpl.readTimestamp()
Retrieves the next attribute in this
SQLInputImpl object as a
java.sql.Timestamp object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SQLOutputImpl.writeTimestamp(Timestamp
Writes a
java.sql.Timestamp object in the Java programming language to this
SQLOutputImpl object.
|