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 positionparameterIndex
to the JDBC typesqlType
.default void
CallableStatement. registerOutParameter(int parameterIndex, SQLType sqlType, int scale)
Registers the parameter in ordinal positionparameterIndex
to be of JDBC typesqlType
.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 namedparameterName
to the JDBC typesqlType
.default void
CallableStatement. registerOutParameter(String parameterName, SQLType sqlType, int scale)
Registers the parameter namedparameterName
to be of JDBC typesqlType
.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 anObject
value.default void
ResultSet. updateObject(int columnIndex, Object x, SQLType targetSqlType, int scaleOrLength)
Updates the designated column with anObject
value.default void
ResultSet. updateObject(String columnLabel, Object x, SQLType targetSqlType)
Updates the designated column with anObject
value.default void
ResultSet. updateObject(String columnLabel, Object x, SQLType targetSqlType, int scaleOrLength)
Updates the designated column with anObject
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, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.