public class StatementKey
extends java.lang.Object
java.sql.PreparedStatement
or a
java.sql.CallableStatement
.
The key takes a number of statement related attributes into account, and is used to insert and look up cached statement objects in the JDBC statement cache.
Key instances are created by a statement key factory.
StatementKeyFactory
Modifier and Type | Field | Description |
---|---|---|
private int |
autogeneratedKeys |
Tells if the associated statement returns auto-generated keys.
|
private int |
concurrency |
The result set concurrency for the statement.
|
private int |
holdability |
Result set holdability for the statement.
|
private boolean |
isCallableStatement |
Tells if the key represents a
CallableStatement . |
private java.lang.String |
schema |
The compilation schema for the statement.
|
private java.lang.String |
sql |
The SQL query of the statement.
|
private int |
type |
The result set type for the statement.
|
Constructor | Description |
---|---|
StatementKey(boolean isCallableStatement,
java.lang.String sql,
java.lang.String schema,
int rsType,
int rsConcurrency,
int rsHoldability,
int autogeneratedKeys) |
Creates a statement key with all the common properties.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object obj) |
|
int |
hashCode() |
|
java.lang.String |
toString() |
private final boolean isCallableStatement
CallableStatement
.private final java.lang.String sql
private final java.lang.String schema
private final int type
private final int concurrency
private final int holdability
private final int autogeneratedKeys
StatementKey(boolean isCallableStatement, java.lang.String sql, java.lang.String schema, int rsType, int rsConcurrency, int rsHoldability, int autogeneratedKeys)
isCallableStatement
- true
is this is a key for a
java.sql.CallableStatement
sql
- SQL query stringschema
- compilation schemarsType
- result set typersConcurrency
- result set concurrencyrsHoldability
- result set holdabilityautogeneratedKeys
- if auto-generated keys are returnedjava.lang.IllegalArgumentException
- if schema
is null
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.