Statement Pool Monitor : Accessing the Statement Pool Monitor : Using Progress DataDirect-Specific Methods : Using the poolEntries() Method

Using the poolEntries() Method
Using the poolEntries() method, your application can return all statements in the pool or filter the list based on the following criteria:
*
*
*
The following table lists the parameters and the valid values supported by the poolEntries() method.
 
Returns only prepared statements
Returns only callable statements
Returns all statements regardless of statement type
Returns only statements with forward-only result sets
Returns only statements with scroll insensitive result sets
Returns only statements with scroll sensitive result sets
Returns statements regardless of result set type
Returns only statements with a read-only result set concurrency
Returns only statements with an updateable result set concurrency
Returns statements regardless of result set concurrency type
The result of the poolEntries() method is an array that contains a String entry for each statement in the statement pool using the format:
SQL_TEXT=[SQL_text];STATEMENT_TYPE=TYPE_PREPARED_STATEMENT|
TYPE_CALLABLE_STATEMENT;RESULTSET_TYPE=TYPE_FORWARD_ONLY|
TYPE_SCROLL_INSENSITIVE|TYPE_SCROLL_SENSITIVE;
RESULTSET_CONCURRENCY=CONCUR_READ_ONLY|CONCUR_UPDATABLE;
AUTOGENERATEDKEYSREQUESTED=true|false;
REQUESTEDKEYCOLUMNS=comma-separated_list
where SQL_text is the SQL text of the statement and comma-separated_list is a list of column names that will be returned as generated keys.
For example:
SQL_TEXT=[INSERT INTO emp(id, name) VALUES(99, ?)];
STATEMENT_TYPE=Prepared Statement;RESULTSET_TYPE=Forward Only;
RESULTSET_CONCURRENCY=ReadOnly;AUTOGENERATEDKEYSREQUESTED=false;
REQUESTEDKEYCOLUMNS=id,name

© 2012 Progress Software Corporation and/or its subsidiaries or affiliates.