-
Methods in java.sql that return Time
| Modifier and Type |
Method |
Description |
Time |
CallableStatement.getTime(int parameterIndex) |
Gets the value of a specified JDBC TIME parameter as a
java.sql.Time.
|
Time |
CallableStatement.getTime(int parameterIndex,
Calendar cal) |
Gets the value of a specified JDBC TIME parameter as a
java.sql.Time, using the supplied Calendar to construct the
time.
|
Time |
CallableStatement.getTime(String parameterName) |
Gets the value of a specified JDBC TIME parameter as a
java.sql.Time.
|
Time |
CallableStatement.getTime(String parameterName,
Calendar cal) |
Gets the value of a specified JDBC TIME parameter as a
java.sql.Time, using the supplied Calendar to construct
the time.
|
Time |
ResultSet.getTime(int columnIndex) |
Gets the value of a column specified by column index as a
java.sql.Time value.
|
Time |
ResultSet.getTime(int columnIndex,
Calendar cal) |
Gets the value of a column specified by column index as a
java.sql.Time value.
|
Time |
ResultSet.getTime(String columnName) |
Gets the value of a column specified by column name, as a
java.sql.Time value.
|
Time |
ResultSet.getTime(String columnName,
Calendar cal) |
Gets the value of a column specified by column index, as a
java.sql.Time value.
|
Time |
SQLInput.readTime() |
Returns the next attribute in the stream in the form of a
java.sql.Time.
|
static Time |
Time.valueOf(String timeString) |
Creates a Time object from a string holding a time represented in
JDBC escape format: hh:mm:ss.
|
Methods in java.sql with parameters of type Time
| Modifier and Type |
Method |
Description |
void |
CallableStatement.setTime(String parameterName,
Time theTime) |
Sets the value of the parameter named parameterName to the value
of the supplied java.sql.Time.
|
void |
CallableStatement.setTime(String parameterName,
Time theTime,
Calendar cal) |
Sets the value of the parameter named parameterName to the value
of the supplied java.sql.Time using the supplied calendar.
|
void |
PreparedStatement.setTime(int parameterIndex,
Time theTime) |
Sets the value of a specified parameter to a supplied
java.sql.Time value.
|
void |
PreparedStatement.setTime(int parameterIndex,
Time theTime,
Calendar cal) |
Sets the value of a specified parameter to a supplied
java.sql.Time value, using a supplied Calendar.
|
void |
ResultSet.updateTime(int columnIndex,
Time x) |
Updates a column specified by a column index with a Time value.
|
void |
ResultSet.updateTime(String columnName,
Time x) |
Updates a column specified by a column name with a Time value.
|
void |
SQLOutput.writeTime(Time theTime) |
Write a java.sql.Time value into the output stream.
|
-
Methods in javax.sql with parameters of type Time
| Modifier and Type |
Method |
Description |
void |
RowSet.setTime(int parameterIndex,
Time theTime) |
Sets the value of the specified parameter in the RowSet command
to a supplied java.sql.Time, converting it to an SQL TIME
value using the system default Calendar.
|
void |
RowSet.setTime(int parameterIndex,
Time theTime,
Calendar theCalendar) |
Sets the value of the specified parameter in the RowSet command
to a supplied java.sql.Time, converting it to an SQL TIME
value using a supplied Calendar.
|
void |
RowSet.setTime(String parameterName,
Time theTime) |
Sets the value of the specified parameter in the RowSet command to a
supplied java.sql.Time, converting to an SQL TIME value using a supplied
Calendar.
|
void |
RowSet.setTime(String parameterName,
Time theTime,
Calendar theCalendar) |
Sets the value of the specified parameter in the RowSet command to a
supplied java.sql.Time, converting to an SQL TIME value using a supplied
Calendar.
|
-