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