| java.lang.Object org.apache.derbyTesting.functionTests.tests.lang.stmtCache3
stmtCache3 | public class stmtCache3 (Code) | | Test the statement cache with a 3-statement size.
author: ames |
checkCache | static boolean checkCache(Connection conn, int numInCache) throws SQLException(Code) | | Verify the cache state.
Parameters: conn - the connection to check Parameters: numInCache - the number expected to be cached exception: SQLException - thrown on failure |
cleanupTest | static boolean cleanupTest(Connection conn) throws SQLException(Code) | | Clean up after ourselves when testing is done.
Parameters: conn - The Connection true if it succeeds, false if it doesn't exception: SQLException - Thrown if some unexpected error happens |
setupTest | static boolean setupTest(Connection conn) throws SQLException(Code) | | Create some helper aliases for checking the cache state.
Parameters: conn - the Connection exception: SQLException - thrown on unexpected failure. |
testGrowsAndShrinks | static boolean testGrowsAndShrinks(Connection conn) throws SQLException(Code) | | Test that all non-closed prepared statements
hang around, while closed ones disappear immediately,
When the cache is at its limit.
Parameters: conn - The Connection true if it succeeds, false if it doesn't exception: SQLException - Thrown if some unexpected error happens |
|
|