## Uses of Interface
java.sql.SQLType

- Packages that use SQLType
  Package | Description
  --- | ---
  java.sql | Provides the API for accessing and processing data stored in a data source (usually a relational database) using the JavaTM programming language.

- - ### Uses of SQLType in java.sql

    Classes in java.sql that implement SQLType
    Modifier and Type | Class and Description
    --- | ---
    `class` | `JDBCType` Defines the constants that are used to identify generic SQL types, called JDBC types.

    Methods in java.sql with parameters of type SQLType
    Modifier and Type | Method and Description
    --- | ---
    `default void` | CallableStatement.`registerOutParameter(int parameterIndex, SQLType sqlType)` Registers the OUT parameter in ordinal position `parameterIndex` to the JDBC type `sqlType`.
    `default void` | CallableStatement.`registerOutParameter(int parameterIndex, SQLType sqlType, int scale)` Registers the parameter in ordinal position `parameterIndex` to be of JDBC type `sqlType`.
    `default void` | CallableStatement.`registerOutParameter(int parameterIndex, SQLType sqlType, String typeName)` Registers the designated output parameter.
    `default void` | CallableStatement.`registerOutParameter(String parameterName, SQLType sqlType)` Registers the OUT parameter named `parameterName` to the JDBC type `sqlType`.
    `default void` | CallableStatement.`registerOutParameter(String parameterName, SQLType sqlType, int scale)` Registers the parameter named `parameterName` to be of JDBC type `sqlType`.
    `default void` | CallableStatement.`registerOutParameter(String parameterName, SQLType sqlType, String typeName)` Registers the designated output parameter.
    `default void` | PreparedStatement.`setObject(int parameterIndex, Object x, SQLType targetSqlType)` Sets the value of the designated parameter with the given object.
    `default void` | PreparedStatement.`setObject(int parameterIndex, Object x, SQLType targetSqlType, int scaleOrLength)` Sets the value of the designated parameter with the given object.
    `default void` | CallableStatement.`setObject(String parameterName, Object x, SQLType targetSqlType)` Sets the value of the designated parameter with the given object.
    `default void` | CallableStatement.`setObject(String parameterName, Object x, SQLType targetSqlType, int scaleOrLength)` Sets the value of the designated parameter with the given object.
    `default void` | ResultSet.`updateObject(int columnIndex, Object x, SQLType targetSqlType)` Updates the designated column with an `Object` value.
    `default void` | ResultSet.`updateObject(int columnIndex, Object x, SQLType targetSqlType, int scaleOrLength)` Updates the designated column with an `Object` value.
    `default void` | ResultSet.`updateObject(String columnLabel, Object x, SQLType targetSqlType)` Updates the designated column with an `Object` value.
    `default void` | ResultSet.`updateObject(String columnLabel, Object x, SQLType targetSqlType, int scaleOrLength)` Updates the designated column with an `Object` value.
    `default void` | SQLOutput.`writeObject(Object x, SQLType targetSqlType)` Writes to the stream the data contained in the given object.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2018, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.