|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.client.am.stmtcache.StatementKeyFactory
public final class StatementKeyFactory
A factory for creating JDBC statement keys for use with the JDBC statement cache.
JDBCStatementCache| Field Summary | |
|---|---|
private static boolean |
CALLABLE
|
private static boolean |
PREPARED
|
| Constructor Summary | |
|---|---|
private |
StatementKeyFactory()
Instantiation not allowed. |
| Method Summary | |
|---|---|
static StatementKey |
newCallable(java.lang.String sql,
java.lang.String schema,
int holdability)
Creates a key for a callable statement. |
static StatementKey |
newCallable(java.lang.String sql,
java.lang.String schema,
int rst,
int rsc,
int rsh)
Creates a key for a callable statement specifying result set type and concurrency. |
static StatementKey |
newPrepared(java.lang.String sql,
java.lang.String schema,
int holdability)
Creates a key for a query with default settings. |
static StatementKey |
newPrepared(java.lang.String sql,
java.lang.String schema,
int holdability,
int autogeneratedKeys)
Creates a key for a query specifying whether auto-generated keys shall be returned. |
static StatementKey |
newPrepared(java.lang.String sql,
java.lang.String schema,
int rst,
int rsc,
int rsh)
Creates a key for a query specifying result set type and concurrency. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final boolean CALLABLE
private static final boolean PREPARED
| Constructor Detail |
|---|
private StatementKeyFactory()
| Method Detail |
|---|
public static StatementKey newPrepared(java.lang.String sql,
java.lang.String schema,
int holdability)
Defaults are according to the JDBC standard; result set type will be
ResultSet.TYPE_FORWARD_ONLY, concurrency will be
ResultSet.CONCUR_READ_ONLY and the statement will not
return auto-generated keys.
sql - SQL query stringschema - current compilation schemaholdability - result set holdability
public static StatementKey newPrepared(java.lang.String sql,
java.lang.String schema,
int holdability,
int autogeneratedKeys)
Unspecified settings will be according to the JDBC standard; result set
type will be ResultSet.TYPE_FORWARD_ONLY, concurrency will
be ResultSet.CONCUR_READ_ONLY.
sql - SQL query stringschema - current compilation schemaholdability - result set holdabilityautogeneratedKeys - tells whether or not to reutrn auto-generated
keys
public static StatementKey newPrepared(java.lang.String sql,
java.lang.String schema,
int rst,
int rsc,
int rsh)
The returned key is for a statement not returning auto-generated keys.
sql - SQL query stringschema - current compilation schemarst - result set typersc - result set concurrency levelrsh - result set holdability
public static StatementKey newCallable(java.lang.String sql,
java.lang.String schema,
int holdability)
Unspecified settings will be according to the JDBC standard; result set
type will be ResultSet.TYPE_FORWARD_ONLY, concurrency will
be ResultSet.CONCUR_READ_ONLY.
sql - SQL query stringschema - current compilation schemaholdability - result set holdability
public static StatementKey newCallable(java.lang.String sql,
java.lang.String schema,
int rst,
int rsc,
int rsh)
The returned key is for a statement not returning auto-generated keys.
sql - SQL query stringschema - current compilation schemarst - result set typersc - result set concurrency levelrsh - result set holdability
|
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 | ||||||||