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 and Description |
|---|---|
| private final int | autogeneratedKeys
Tells if the associated statement returns auto-generated keys. |
| private final int | concurrency
The result set concurrency for the statement. |
| private final int | holdability
Result set holdability for the statement. |
| private final boolean | isCallableStatement
Tells if the key represents a |
| private final String | schema
The compilation schema for the statement. |
| private final String | sql
The SQL query of the statement. |
| private final int | type
The result set type for the statement. |
| Access | Constructor and Description |
|---|---|
| pack-priv | StatementKey(boolean
true is this is a key for a
java.sql.CallableStatementSQL query string sql, String compilation schema schema, int result set type rsType, int result set concurrency rsConcurrency, int result set holdability rsHoldability, int if auto-generated keys are returned autogeneratedKeys)Creates a statement key with all the common properties. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public int | |
| public String |
| autogeneratedKeys | back to summary |
|---|---|
| private final int autogeneratedKeys Tells if the associated statement returns auto-generated keys. | |
| concurrency | back to summary |
|---|---|
| private final int concurrency The result set concurrency for the statement. | |
| holdability | back to summary |
|---|---|
| private final int holdability Result set holdability for the statement. | |
| isCallableStatement | back to summary |
|---|---|
| private final boolean isCallableStatement Tells if the key represents a | |
| schema | back to summary |
|---|---|
| private final String schema The compilation schema for the statement. | |
| sql | back to summary |
|---|---|
| private final String sql The SQL query of the statement. | |
| type | back to summary |
|---|---|
| private final int type The result set type for the statement. | |
| StatementKey | back to summary |
|---|---|
| pack-priv StatementKey(boolean isCallableStatement, String sql, String schema, int rsType, int rsConcurrency, int rsHoldability, int autogeneratedKeys) Creates a statement key with all the common properties.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |