Deprecated
as a consequence of DefaultConnection being deprecated. See corresponding docs for further information.
Connection that handles creation of prepared
statements according to the settings' StatementType
| Modifier and Type | Field and Description |
|---|---|
| private final ExecuteContext | |
| private final Settings |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private final boolean | |
| public final PreparedStatement | prepareStatement(String
an SQL statement that may contain one or more '?' IN
parameter placeholders sql)Overrides org. Implements java. PreparedStatement object for sending
parameterized SQL statements to the database.
|
| public final PreparedStatement | prepareStatement(String
a sql, int String object that is the SQL statement to
be sent to the database; may contain one or more '?' IN
parametersa result set type; one of
resultSetType, int ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEa concurrency type; one of
resultSetConcurrency)ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLEOverrides org. Implements java. PreparedStatement object that will generate
ResultSet objects with the given type and concurrency.
|
| public final PreparedStatement | prepareStatement(String
a sql, int String object that is the SQL statement to
be sent to the database; may contain one or more '?' IN
parametersone of the following resultSetType, int ResultSet
constants:
ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEone of the following resultSetConcurrency, int ResultSet
constants:
ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLEone of the following resultSetHoldability)ResultSet
constants:
ResultSet.HOLD_CURSORS_OVER_COMMIT or
ResultSet.CLOSE_CURSORS_AT_COMMITOverrides org. Implements java. PreparedStatement object that will generate
ResultSet objects with the given type, concurrency,
and holdability.
|
| public final PreparedStatement | prepareStatement(String
an SQL statement that may contain one or more '?' IN
parameter placeholders sql, int a flag indicating whether auto-generated keys
should be returned; one of
autoGeneratedKeys)Statement.RETURN_GENERATED_KEYS or
Statement.NO_GENERATED_KEYSOverrides org. Implements java. PreparedStatement object that has
the capability to retrieve auto-generated keys.
|
| public final PreparedStatement | prepareStatement(String
an SQL statement that may contain one or more '?' IN
parameter placeholders sql, int[] an array of column indexes indicating the columns
that should be returned from the inserted row or rows columnIndexes)Overrides org. Implements java. PreparedStatement object capable
of returning the auto-generated keys designated by the given array.
|
| public final PreparedStatement | prepareStatement(String
an SQL statement that may contain one or more '?' IN
parameter placeholders sql, String[] an array of column names indicating the columns
that should be returned from the inserted row or rows columnNames)Overrides org. Implements java. PreparedStatement object capable
of returning the auto-generated keys designated by the given array.
|
| ctx | back to summary |
|---|---|
| private final ExecuteContext ctx | |
| settings | back to summary |
|---|---|
| private final Settings settings | |
| SettingsEnabledConnection | back to summary |
|---|---|
| pack-priv SettingsEnabledConnection(Connection delegate, Settings settings, ExecuteContext ctx) | |
| executePreparedStatements0 | back to summary |
|---|---|
| private final boolean executePreparedStatements0() | |
| prepareStatement | back to summary |
|---|---|
| public final PreparedStatement prepareStatement(String sql) throws SQLException Overrides org. Implements java. Doc from java. Creates a
A SQL statement with or without IN parameters can be
pre-compiled and stored in a Note This method is optimized for handling
parametric SQL statements that benefit from precompilation. If
the driver supports precompilation,
the method
Result sets created using the returned
| |
| prepareStatement | back to summary |
|---|---|
| public final PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException Overrides org. Implements java. Doc from java. Creates a
| |
| prepareStatement | back to summary |
|---|---|
| public final PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException Overrides org. Implements java. Doc from java. Creates a
This method is the same as the
| |
| prepareStatement | back to summary |
|---|---|
| public final PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException Overrides org. Implements java. Doc from java. Creates a default Note This method is optimized for handling
parametric SQL statements that benefit from precompilation. If
the driver supports precompilation,
the method
Result sets created using the returned
| |
| prepareStatement | back to summary |
|---|---|
| public final PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException Overrides org. Implements java. Doc from java. Creates a default
An SQL statement with or without IN parameters can be
pre-compiled and stored in a Note This method is optimized for handling
parametric SQL statements that benefit from precompilation. If
the driver supports precompilation,
the method
Result sets created using the returned
| |
| prepareStatement | back to summary |
|---|---|
| public final PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException Overrides org. Implements java. Doc from java. Creates a default
An SQL statement with or without IN parameters can be
pre-compiled and stored in a Note This method is optimized for handling
parametric SQL statements that benefit from precompilation. If
the driver supports precompilation,
the method
Result sets created using the returned
| |