Uses of Class
java.sql.Time

Packages that useTime
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 JDBCRowSet implementations.
javax.sql.rowset.serial
Provides utility classes to allow serializable mappings between SQL types and data types in the Java programming language.
  • Uses ofTime injava.sql

    Methods injava.sql that returnTime
    Modifier and Type
    Method
    Description
    CallableStatement.getTime(int parameterIndex)
    Retrieves the value of the designated JDBCTIME parameter as ajava.sql.Time object.
    CallableStatement.getTime(int parameterIndex,Calendar cal)
    Retrieves the value of the designated JDBCTIME parameter as ajava.sql.Time object, using the givenCalendar object to construct the time.
    CallableStatement.getTime(String parameterName)
    Retrieves the value of a JDBCTIME parameter as ajava.sql.Time object.
    CallableStatement.getTime(String parameterName,Calendar cal)
    Retrieves the value of a JDBCTIME parameter as ajava.sql.Time object, using the givenCalendar object to construct the time.
    ResultSet.getTime(int columnIndex)
    Retrieves the value of the designated column in the current row of thisResultSet object as ajava.sql.Time object in the Java programming language.
    ResultSet.getTime(int columnIndex,Calendar cal)
    Retrieves the value of the designated column in the current row of thisResultSet object as ajava.sql.Time object in the Java programming language.
    ResultSet.getTime(String columnLabel)
    Retrieves the value of the designated column in the current row of thisResultSet object as ajava.sql.Time object in the Java programming language.
    ResultSet.getTime(String columnLabel,Calendar cal)
    Retrieves the value of the designated column in the current row of thisResultSet object as ajava.sql.Time object in the Java programming language.
    SQLInput.readTime()
    Reads the next attribute in the stream and returns it as ajava.sql.Time object.
    staticTime
    Time.valueOf(String s)
    Converts a string in JDBC time escape format to aTime value.
    staticTime
    Time.valueOf(LocalTime time)
    Obtains an instance ofTime from aLocalTime object with the same hour, minute and second time value as the givenLocalTime.
    Methods injava.sql with parameters of typeTime
    Modifier and Type
    Method
    Description
    void
    CallableStatement.setTime(String parameterName,Time x)
    Sets the designated parameter to the givenjava.sql.Time value.
    void
    CallableStatement.setTime(String parameterName,Time x,Calendar cal)
    Sets the designated parameter to the givenjava.sql.Time value, using the givenCalendar object.
    void
    PreparedStatement.setTime(int parameterIndex,Time x)
    Sets the designated parameter to the givenjava.sql.Time value.
    void
    PreparedStatement.setTime(int parameterIndex,Time x,Calendar cal)
    Sets the designated parameter to the givenjava.sql.Time value, using the givenCalendar object.
    void
    ResultSet.updateTime(int columnIndex,Time x)
    Updates the designated column with ajava.sql.Time value.
    void
    ResultSet.updateTime(String columnLabel,Time x)
    Updates the designated column with ajava.sql.Time value.
    void
    SQLOutput.writeTime(Time x)
    Writes the next attribute to the stream as a java.sql.Time object.
  • Uses ofTime injavax.sql

    Methods injavax.sql with parameters of typeTime
    Modifier and Type
    Method
    Description
    void
    RowSet.setTime(int parameterIndex,Time x)
    Sets the designated parameter in thisRowSet object's command to the givenjava.sql.Time value.
    void
    RowSet.setTime(int parameterIndex,Time x,Calendar cal)
    Sets the designated parameter in thisRowSet object's command with the givenjava.sql.Time value.
    void
    RowSet.setTime(String parameterName,Time x)
    Sets the designated parameter to the givenjava.sql.Time value.
    void
    RowSet.setTime(String parameterName,Time x,Calendar cal)
    Sets the designated parameter to the givenjava.sql.Time value, using the givenCalendar object.
  • Uses ofTime injavax.sql.rowset

    Methods injavax.sql.rowset with parameters of typeTime
    Modifier and Type
    Method
    Description
    void
    BaseRowSet.setTime(int parameterIndex,Time x)
    Sets the designated parameter to the givenjava.sql.Time value.
    void
    BaseRowSet.setTime(int parameterIndex,Time x,Calendar cal)
    Sets the designated parameter to the givenjava.sql.Time object.
    void
    BaseRowSet.setTime(String parameterName,Time x)
    Sets the designated parameter to the givenjava.sql.Time value.
    void
    BaseRowSet.setTime(String parameterName,Time x,Calendar cal)
    Sets the designated parameter to the givenjava.sql.Time value, using the givenCalendar object.
  • Uses ofTime injavax.sql.rowset.serial

    Methods injavax.sql.rowset.serial that returnTime
    Modifier and Type
    Method
    Description
    SQLInputImpl.readTime()
    Retrieves the next attribute in thisSQLInputImpl object as ajava.sql.Time object.
    Methods injavax.sql.rowset.serial with parameters of typeTime
    Modifier and Type
    Method
    Description
    void
    SQLOutputImpl.writeTime(Time x)
    Writes ajava.sql.Time object in the Java programming language to thisSQLOutputImpl object.