public final class StatementKeyFactory extends Object
JDBCStatementCache| Modifier and Type | Method and Description |
|---|---|
static StatementKey |
newCallable(String sql,
String schema,
int holdability)
Creates a key for a callable statement.
|
static StatementKey |
newCallable(String sql,
String schema,
int rst,
int rsc,
int rsh)
Creates a key for a callable statement specifying result set type and
concurrency.
|
static StatementKey |
newPrepared(String sql,
String schema,
int holdability)
Creates a key for a query with default settings.
|
static StatementKey |
newPrepared(String sql,
String schema,
int holdability,
int autogeneratedKeys)
Creates a key for a query specifying whether auto-generated keys
shall be returned.
|
static StatementKey |
newPrepared(String sql,
String schema,
int rst,
int rsc,
int rsh)
Creates a key for a query specifying result set type and concurrency.
|
public static StatementKey newPrepared(String sql, 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 holdabilitypublic static StatementKey newPrepared(String sql, 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
keyspublic static StatementKey newPrepared(String sql, 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 holdabilitypublic static StatementKey newCallable(String sql, 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 holdabilitypublic static StatementKey newCallable(String sql, 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 holdabilityCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.