Top Description Fields Constructors Methods
org.apache.derby.client.am.stmtcache

public final Class StatementKeyFactory

extends Object
Class Inheritance
Imports
java.sql.ResultSet, .Statement

A factory for creating JDBC statement keys for use with the JDBC statement cache.
See Also
JDBCStatementCache

Field Summary

Modifier and TypeField and Description
private static final boolean
private static final boolean

Constructor Summary

AccessConstructor and Description
private
StatementKeyFactory()

Instantiation not allowed.

Method Summary

Modifier and TypeMethod and Description
public static StatementKey

Returns:

A statement key.
newCallable
(String
SQL query string
sql
,
String
current compilation schema
schema
,
int
result set holdability
holdability
)

Creates a key for a callable statement.

public static StatementKey

Returns:

A statement key.
newCallable
(String
SQL query string
sql
,
String
current compilation schema
schema
,
int
result set type
rst
,
int
result set concurrency level
rsc
,
int
result set holdability
rsh
)

Creates a key for a callable statement specifying result set type and concurrency.

public static StatementKey

Returns:

A statement key.
newPrepared
(String
SQL query string
sql
,
String
current compilation schema
schema
,
int
result set holdability
holdability
)

Creates a key for a query with default settings.

public static StatementKey

Returns:

A statement key.
newPrepared
(String
SQL query string
sql
,
String
current compilation schema
schema
,
int
result set holdability
holdability
,
int
tells whether or not to reutrn auto-generated keys
autogeneratedKeys
)

Creates a key for a query specifying whether auto-generated keys shall be returned.

public static StatementKey

Returns:

A statement key.
newPrepared
(String
SQL query string
sql
,
String
current compilation schema
schema
,
int
result set type
rst
,
int
result set concurrency level
rsc
,
int
result set holdability
rsh
)

Creates a key for a query specifying result set type and concurrency.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CALLABLEback to summary
private static final boolean CALLABLE
PREPAREDback to summary
private static final boolean PREPARED

Constructor Detail

StatementKeyFactoryback to summary
private StatementKeyFactory()

Instantiation not allowed.

Method Detail

newCallableback to summary
public static StatementKey newCallable(String sql, String schema, int holdability)

Creates a key for a callable statement.

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.

Parameters
sql:String

SQL query string

schema:String

current compilation schema

holdability:int

result set holdability

Returns:StatementKey

A statement key.

newCallableback to summary
public 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.

The returned key is for a statement not returning auto-generated keys.

Parameters
sql:String

SQL query string

schema:String

current compilation schema

rst:int

result set type

rsc:int

result set concurrency level

rsh:int

result set holdability

Returns:StatementKey

A statement key.

newPreparedback to summary
public static StatementKey newPrepared(String sql, String schema, int holdability)

Creates a key for a query with default settings.

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.

Parameters
sql:String

SQL query string

schema:String

current compilation schema

holdability:int

result set holdability

Returns:StatementKey

A statement key.

newPreparedback to summary
public 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.

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.

Parameters
sql:String

SQL query string

schema:String

current compilation schema

holdability:int

result set holdability

autogeneratedKeys:int

tells whether or not to reutrn auto-generated keys

Returns:StatementKey

A statement key.

newPreparedback to summary
public 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.

The returned key is for a statement not returning auto-generated keys.

Parameters
sql:String

SQL query string

schema:String

current compilation schema

rst:int

result set type

rsc:int

result set concurrency level

rsh:int

result set holdability

Returns:StatementKey

A statement key.