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 intTells if the associated statement returns auto-generated keys.private final intThe result set concurrency for the statement.private final intResult set holdability for the statement.private final booleanTells if the key represents aCallableStatement.private final StringThe compilation schema for the statement.private final StringThe SQL query of the statement.private final intThe 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-trueis this is a key for ajava.sql.CallableStatementsql- SQL query stringschema- compilation schemarsType- result set typersConcurrency- result set concurrencyrsHoldability- result set holdabilityautogeneratedKeys- if auto-generated keys are returned- Throws:
IllegalArgumentException- ifschemaisnull
-
-
Method Details
-
equals
-
hashCode
-
toString
-