Uses of Interface
java.sql.PreparedStatement
-
Packages that use PreparedStatement 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.javax.sql Provides the API for server side data source access and processing from the JavaTM programming language. -
-
Uses of PreparedStatement in java.sql
Subinterfaces of PreparedStatement in java.sql Modifier and Type Interface and Description interface
CallableStatement
The interface used to execute SQL stored procedures.Methods in java.sql that return PreparedStatement Modifier and Type Method and Description PreparedStatement
Connection. prepareStatement(String sql)
Creates aPreparedStatement
object for sending parameterized SQL statements to the database.PreparedStatement
Connection. prepareStatement(String sql, int autoGeneratedKeys)
Creates a defaultPreparedStatement
object that has the capability to retrieve auto-generated keys.PreparedStatement
Connection. prepareStatement(String sql, int[] columnIndexes)
Creates a defaultPreparedStatement
object capable of returning the auto-generated keys designated by the given array.PreparedStatement
Connection. prepareStatement(String sql, int resultSetType, int resultSetConcurrency)
Creates aPreparedStatement
object that will generateResultSet
objects with the given type and concurrency.PreparedStatement
Connection. prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
Creates aPreparedStatement
object that will generateResultSet
objects with the given type, concurrency, and holdability.PreparedStatement
Connection. prepareStatement(String sql, String[] columnNames)
Creates a defaultPreparedStatement
object capable of returning the auto-generated keys designated by the given array. -
Uses of PreparedStatement in javax.sql
Methods in javax.sql that return PreparedStatement Modifier and Type Method and Description PreparedStatement
StatementEvent. getStatement()
Returns thePreparedStatement
that is being closed or is invalidConstructors in javax.sql with parameters of type PreparedStatement Constructor and Description StatementEvent(PooledConnection con, PreparedStatement statement)
Constructs aStatementEvent
with the specifiedPooledConnection
andPreparedStatement
.StatementEvent(PooledConnection con, PreparedStatement statement, SQLException exception)
Constructs aStatementEvent
with the specifiedPooledConnection
,PreparedStatement
andSQLException
-
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.