|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.client.am.stmtcache.StatementKey
public class 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.
StatementKeyFactory| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
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.CallableStatementsql - SQL query stringschema - compilation schemarsType - result set typersConcurrency - result set concurrencyrsHoldability - result set holdabilityautogeneratedKeys - if auto-generated keys are returned
java.lang.IllegalArgumentException - if schema is null| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||