Class StatementKey
java.lang.Object
org.apache.derby.client.am.stmtcache.StatementKey
A key representing a
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.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
Tells if the associated statement returns auto-generated keys.private final int
The result set concurrency for the statement.private final int
Result set holdability for the statement.private final boolean
Tells if the key represents aCallableStatement
.private final String
The compilation schema for the statement.private final String
The SQL query of the statement.private final int
The result set type for the statement. -
Constructor Summary
ConstructorsConstructorDescriptionStatementKey
(boolean isCallableStatement, String sql, String schema, int rsType, int rsConcurrency, int rsHoldability, int autogeneratedKeys) Creates a statement key with all the common properties. -
Method Summary
-
Field Details
-
isCallableStatement
private final boolean isCallableStatementTells if the key represents aCallableStatement
. -
sql
The SQL query of the statement. -
schema
The compilation schema for the statement. -
type
private final int typeThe result set type for the statement. -
concurrency
private final int concurrencyThe result set concurrency for the statement. -
holdability
private final int holdabilityResult set holdability for the statement. -
autogeneratedKeys
private final int autogeneratedKeysTells if the associated statement returns auto-generated keys.
-
-
Constructor Details
-
StatementKey
StatementKey(boolean isCallableStatement, String sql, String schema, int rsType, int rsConcurrency, int rsHoldability, int autogeneratedKeys) Creates a statement key with all the common properties.- Parameters:
isCallableStatement
-true
is this is a key for ajava.sql.CallableStatement
sql
- SQL query stringschema
- compilation schemarsType
- result set typersConcurrency
- result set concurrencyrsHoldability
- result set holdabilityautogeneratedKeys
- if auto-generated keys are returned- Throws:
IllegalArgumentException
- ifschema
isnull
-
-
Method Details