-
Methods in java.sql that return Date
| Modifier and Type |
Method |
Description |
Date |
CallableStatement.getDate(int parameterIndex) |
Gets the value of the specified JDBC DATE parameter as a
java.sql.Date.
|
Date |
CallableStatement.getDate(int parameterIndex,
Calendar cal) |
Gets the value of the specified JDBC DATE parameter as a
java.sql.Date, using the specified Calendar to construct the date.
|
Date |
CallableStatement.getDate(String parameterName) |
Gets the value of the specified JDBC DATE parameter as a
java.sql.Date.
|
Date |
CallableStatement.getDate(String parameterName,
Calendar cal) |
Gets the value of the specified JDBC DATE parameter as a
java.sql.Date, using the specified Calendar to construct the date.
|
Date |
ResultSet.getDate(int columnIndex) |
Gets the value of a column specified by column index as a
java.sql.Date.
|
Date |
ResultSet.getDate(int columnIndex,
Calendar cal) |
Gets the value of a column specified by column index as a
java.sql.Date.
|
Date |
ResultSet.getDate(String columnName) |
Gets the value of a column specified by column name as a
java.sql.Date.
|
Date |
ResultSet.getDate(String columnName,
Calendar cal) |
Gets the value of a column specified by column name, as a
java.sql.Date object.
|
Date |
SQLInput.readDate() |
Returns the next attribute in the stream in the form of a
java.sql.Date.
|
static Date |
Date.valueOf(String dateString) |
Creates a Date from a string representation of a date in SQL
format.
|
Methods in java.sql with parameters of type Date
| Modifier and Type |
Method |
Description |
void |
CallableStatement.setDate(String parameterName,
Date theDate) |
Sets the value of a specified parameter to a supplied
java.sql.Date value.
|
void |
CallableStatement.setDate(String parameterName,
Date theDate,
Calendar cal) |
Sets the value of a specified parameter to a supplied
java.sql.Date value, using a supplied calendar to map the date.
|
void |
PreparedStatement.setDate(int parameterIndex,
Date theDate) |
Sets the value of a specified parameter to a supplied
java.sql.Date value.
|
void |
PreparedStatement.setDate(int parameterIndex,
Date theDate,
Calendar cal) |
Sets the value of a specified parameter to a supplied
java.sql.Date value, using a supplied Calendar to map the Date.
|
void |
ResultSet.updateDate(int columnIndex,
Date x) |
Updates a column specified by a column index with a java.sql.Date
value.
|
void |
ResultSet.updateDate(String columnName,
Date x) |
Updates a column specified by a column name with a java.sql.Date
value.
|
void |
SQLOutput.writeDate(Date theDate) |
Write a java.sql.Date value into the output stream.
|
-
Methods in javax.sql with parameters of type Date
| Modifier and Type |
Method |
Description |
void |
RowSet.setDate(int parameterIndex,
Date theDate) |
Sets the value of the specified parameter in the RowSet command
with the value of a supplied java.sql.Date.
|
void |
RowSet.setDate(int parameterIndex,
Date theDate,
Calendar theCalendar) |
Sets the value of the specified parameter in the RowSet command
with the value of a supplied java.sql.Date, where the conversion
of the date to an SQL DATE value is calculated using a supplied
Calendar.
|
void |
RowSet.setDate(String parameterName,
Date theDate) |
Sets the value of the specified parameter in the RowSet command with the
value of a supplied java.sql.Date, where the conversion of the Date to an
SQL DATE value is calculated using a supplied Calendar.
|
void |
RowSet.setDate(String parameterName,
Date theDate,
Calendar theCalendar) |
Sets the value of the specified parameter in the RowSet command with the
value of a supplied java.sql.Date, where the conversion of the Date to an
SQL DATE value is calculated using a supplied Calendar.
|
-