|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.derbyTesting.junit.BaseTestCase
org.apache.derbyTesting.junit.BaseJDBCTestCase
org.apache.derbyTesting.functionTests.tests.jdbcapi.J2EEDataSourceTest
public class J2EEDataSourceTest
Test the ConnectionPoolDataSource and XADataSource implementations of Derby. DataSource functionality common to DataSources including what is supported with JSR169 is tested in DataSourceTest. Performs SecurityCheck analysis on the JDBC objects returned. This is because this test returns to the client a number of different implementations of Connection, Statement etc.
SecurityCheck| Field Summary | |
|---|---|
protected static java.util.Hashtable |
conns
A hashtable of opened connections. |
private static java.lang.String |
CONNSTRING_FORMAT
The expected format of a connection string. |
private static java.lang.String |
dbName
|
private java.lang.Object |
nogc
Hang onto the SecurityCheck class while running the tests so that it is not garbage collected during the test and lose the information it has collected, in case it should get printed out. |
| Fields inherited from class org.apache.derbyTesting.junit.BaseTestCase |
|---|
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE |
| Constructor Summary | |
|---|---|
J2EEDataSourceTest(java.lang.String name)
|
|
| Method Summary | |
|---|---|
private void |
assertConnectionOK(java.lang.Object[] expectedValues,
java.lang.String dsName,
java.sql.Connection conn)
|
private void |
assertConnectionPreClose(java.lang.String dsName,
java.sql.Connection conn)
|
private void |
assertConnectionState(int expectedHoldability,
int expectedIsolation,
boolean expectedCommitSetting,
boolean expectedReadOnly,
java.sql.Connection conn)
|
private static void |
assertConnHoldability(java.sql.Connection conn,
int expectedHoldability)
Verify connection holdablity is expected holdability |
private void |
assertIsoLocks(java.sql.Connection conn,
int expectedIsoLevel)
Checks locks for designated isolation level on the connection. |
private static void |
assertLocks(int[] expectedValues,
java.sql.Connection conn)
|
private static void |
assertMessageText(java.sql.Connection conn,
java.lang.String retrieveMessageTextValue)
|
private static void |
assertPooledConnAutoCommit(java.lang.String desc,
javax.sql.PooledConnection pc1)
Make sure autocommit gets reset on PooledConnection.getConnection() |
private static void |
assertPooledConnHoldability(java.lang.String desc,
javax.sql.PooledConnection pc1)
Checks that Holdability gets reset on PooledConnection.getConnection() |
private void |
assertPooledConnIso(java.lang.String pooledConnType,
javax.sql.PooledConnection pc)
Test that isolation is reset on PooledConnection.getConnection() |
private void |
assertStatementOK(java.lang.String dsName,
java.sql.Connection conn,
java.sql.Statement s)
|
private void |
assertStatementState(int[] parameterExpectedValues,
int[] expectedValues,
java.sql.Statement s)
|
private static void |
assertStringFormat(java.sql.Connection conn)
Check the format of the connection string. |
private static void |
assertStringFormat(javax.sql.PooledConnection pc)
Check the format of a pooled connection |
private static java.lang.String |
assertStringPrefix(java.lang.Object conn)
Make sure the connection string starts with the right prefix, which is the classname@hashcode. |
private void |
assertTenConnectionsUnique()
Get connections using getConnection() and make sure they're unique |
private static void |
assertToString(java.sql.Connection conn)
Make sure this connection's string is unique (DERBY-243) |
private static void |
assertToString(javax.sql.ConnectionPoolDataSource pds)
Check uniqueness of strings with a pooled data source. |
private static void |
assertToString(javax.sql.DataSource ds)
Check uniqueness of connection strings coming from a DataSouce |
private static void |
assertToString(javax.sql.XADataSource xds)
Check uniqueness of strings for an XA data source |
private static void |
assertTraceFilesExist()
Check that trace file exists in |
protected void |
assertXAException(java.lang.String tag,
javax.transaction.xa.XAException xae)
|
private static junit.framework.Test |
baseSuite(java.lang.String postfix)
Return a suite of tests that are run with both client and embedded |
static void |
checkNesConn(java.lang.String dsName)
|
private static void |
clearConnections()
Clear out and close connections in the connections hashtable. |
private java.sql.CallableStatement |
createFloatCallForStateChecking(int[] parameterExpectedValues,
int[] CallableStatementExpectedValues,
java.sql.Connection conn,
java.lang.String sql)
|
private java.sql.Statement |
createFloatStatementForStateChecking(int[] StatementExpectedValues,
java.sql.Connection conn)
Create a statement with modified State. |
private java.sql.PreparedStatement |
createFloatStatementForStateChecking(int[] parameterExpectedValues,
int[] PreparedStatementExpectedValues,
java.sql.Connection conn,
java.lang.String sql)
|
private void |
doTestSchemaIsReset(javax.sql.PooledConnection pc,
java.lang.String userSchema)
Executes a test sequence to make sure the schema is reset between logical connections. |
private static void |
dsConnectionRequest(java.lang.String expectedValue,
javax.sql.ConnectionPoolDataSource ds,
java.lang.String user,
java.lang.String ConnAttr)
|
private static void |
dsConnectionRequest(java.lang.String expectedValue,
javax.sql.DataSource ds,
java.lang.String user,
java.lang.String ConnAttr)
|
private static void |
dsConnectionRequest(java.lang.String expectedValue,
javax.sql.XADataSource ds,
java.lang.String user,
java.lang.String ConnAttr)
|
private static void |
dsConnectionRequests(java.lang.String[] expectedValues,
javax.sql.ConnectionPoolDataSource ds)
|
private static void |
dsConnectionRequests(java.lang.String[] expectedValues,
javax.sql.DataSource ds)
|
private static void |
dsConnectionRequests(java.lang.String[] expectedValues,
javax.sql.XADataSource ds)
|
private static junit.framework.Test |
getClientSuite()
Return a suite of tests that are run with client only |
private static junit.framework.Test |
getEmbeddedSuite(java.lang.String postfix)
Return a suite of tests that are run with embedded only |
private static java.lang.String |
getNestedMethodName()
Return the Java class and method for the procedure for the nested connection test. |
private static junit.framework.Test |
getTimeoutSuite(java.lang.String postfix)
Return a suite of tests that are run with a lower lock timeout. |
private java.sql.CallableStatement |
internalCreateFloatCallForStateChecking(java.sql.Connection conn,
java.lang.String sql)
|
private java.sql.Statement |
internalCreateFloatStatementForStateChecking(java.sql.Connection conn)
|
private java.sql.PreparedStatement |
internalCreateFloatStatementForStateChecking(java.sql.Connection conn,
java.lang.String sql)
|
private static void |
PoolReset(java.lang.String type,
javax.sql.PooledConnection pc)
When a connection is being pooled, the underlying JDBC embedded connection object is re-used. |
private static void |
PoolResetWork(java.lang.String expectedID,
java.lang.String tableAction,
java.sql.Connection conn)
|
private static void |
queryOnStatement(java.lang.String expectedCursorName,
int[] expectedValues,
java.sql.Connection conn,
java.sql.Statement s)
|
private static void |
resultSetQuery(java.lang.String expectedCursorName,
int[] expectedValues,
java.sql.ResultSet rs)
|
private boolean |
selectTimesoutDuringUpdate(java.sql.Connection conn)
Determine if a select on this connection during update will timeout. |
private static void |
setDatabaseProperty(java.lang.String property,
java.lang.String value)
|
private void |
setHoldability(java.sql.Connection conn,
boolean hold)
|
private static void |
setupDerby1144Table(java.sql.Connection conn)
insert two rows into the simple table for DERBY-1144 tests |
private void |
subtestCloseEventWithNullListener(javax.sql.PooledConnection pc)
Test that notification of a close event doesn't fail when the listener is null. |
private void |
subTestDataSourceDescription(javax.sql.DataSource ds)
Utility method for testing setting and fetching the description property on a data source. |
private void |
subtestErrorEventWithNullListener(javax.sql.PooledConnection pc)
Test that notification of an error event doesn't fail when the listener is null. |
private void |
subtestPooledAddListenerOnClose(javax.sql.PooledConnection pc)
Tests that a listener of a pooled connection can successfully add another listener when processing a close event. |
private void |
subtestPooledCloseOnClose(javax.sql.PooledConnection pc)
Tests that a pooled connection can successfully be closed during the processing of its close event by its listener. |
private void |
subtestPooledRemoveListenerOnClose(javax.sql.PooledConnection pc)
Tests that a listener of a pooled connection can successfully remove itself during the processing of its close event by its listener. |
private void |
subtestPooledReuseOnClose(javax.sql.PooledConnection pc)
Tests that a pooled connection can successfully be reused (a new connection obtained from it) during the processing of its close event by its listener. |
static junit.framework.Test |
suite()
|
void |
tearDown()
Tear down this fixture, sub-classes should call super.tearDown(). |
void |
testAllDataSources()
|
void |
testAutoCommitOnXAResourceStart()
|
void |
testBadConnectionAttributeSyntax()
|
void |
testClientDSConnectionAttributes()
Check that database name set using setConnectionAttributes is not used by ClientDataSource. |
void |
testClientMessageTextConnectionAttribute()
Check that messageText connection attribute functions correctly. |
void |
testClientTraceFileDSConnectionAttribute()
Check that traceFile connection attribute functions correctly. |
void |
testCloseActiveConnection_CP()
Test that connections retrieved from ConnectionPoolDataSource
behave as expected when close() is called and the transaction is
active. |
void |
testCloseActiveConnection_DS()
Test that connections retrieved from DataSource behave as
expected when close() is called and the transaction is active. |
void |
testCloseActiveConnection_XA_global()
Test that connections retrieved from XADataSource that are part
of a global XA transaction, behave as expected when close() is
called and the transaction is active. |
void |
testCloseActiveConnection_XA_local()
Test that connections retrieved from XADataSource that are not
part of a global XA transaction, behave as expected when close()
is called and the transaction is active. |
private void |
testCloseActiveConnection(java.sql.Connection c,
boolean autoCommit,
boolean global)
Test that Connection.close() behaves as expected when the
transaction is active (DERBY-3319). |
void |
testClosedCPDSConnection()
|
void |
testClosedXADSConnection()
|
void |
testConnectionErrorEvent()
Test case for DERBY-3172 When the Derby engine is shutdown or Network Server is brought down, any api on JDBC Connection object should generate a Connection error event. |
void |
testConnectionEventListenerIsNull()
Test that event notification doesn't fail when a null listener has been registered (DERBY-3307). |
void |
testConnectionLeakInDatabaseMetaData()
Tests that DatabaseMetaData.getConnection does not leak references to physical connections or other logical connections. |
void |
testDerby3799()
Regression test for a NullPointerException when trying to use the LOB stored procedures after closing and then getting a new logical connection. |
void |
testDescriptionProperty()
Check that messageText connection attribute functions correctly. |
void |
testDSRequestAuthentication()
|
void |
testGlobalLocalInterleaf()
|
void |
testJira95pds()
|
void |
testJira95xads()
|
void |
testPooledReuseOnClose()
Test that a PooledConnection can be reused and closed (separately) during the close event raised by the closing of its logical connection. |
void |
testReadOnlyToWritableTran()
|
void |
testReuseAcrossGlobalLocal()
|
void |
testSchemaIsReset()
Verifies that the schema is reset when creating a new logical connection. |
void |
testSchemaIsResetWhenDeleted()
Tests that deleting the current / default schema doesn't cause the next logical connection to fail. |
void |
testSetIsolationWithStatement()
|
void |
testSetSchemaInXAConnection()
|
void |
testXAHoldability()
|
void |
timeoutTestDerby1144PooledDS()
Tests for DERBY-1144 This test tests that holdability, autocomit, and transactionIsolation are reset on getConnection for PooledConnections obtaind from connectionPoolDataSources DERBY-1134 has been filed for more comprehensive testing of client connection state. |
void |
timeoutTestDerby1144XADS()
|
| Methods inherited from class org.apache.derbyTesting.junit.BaseTestCase |
|---|
alarm, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertSecurityManager, assertThrowableEquals, execJavaCmd, fail, getFailureFolder, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeSystemProperty, runBare, setSystemProperty, traceit |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runTest, setName, setUp, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String dbName
protected static java.util.Hashtable conns
private static final java.lang.String CONNSTRING_FORMAT
private final java.lang.Object nogc
| Constructor Detail |
|---|
public J2EEDataSourceTest(java.lang.String name)
| Method Detail |
|---|
private static junit.framework.Test getTimeoutSuite(java.lang.String postfix)
postfix - suite name postfix
private static junit.framework.Test baseSuite(java.lang.String postfix)
postfix - suite name postfix
private static junit.framework.Test getClientSuite()
private static junit.framework.Test getEmbeddedSuite(java.lang.String postfix)
postfix - suite name postfix
public static junit.framework.Test suite()
public void tearDown()
throws java.lang.Exception
BaseJDBCTestCase
tearDown in class BaseJDBCTestCasejava.lang.Exception
public void testConnectionErrorEvent()
throws java.sql.SQLException,
java.lang.Exception
java.sql.SQLException
java.lang.Exception
public void testConnectionEventListenerIsNull()
throws java.sql.SQLException
java.sql.SQLException
private void subtestCloseEventWithNullListener(javax.sql.PooledConnection pc)
throws java.sql.SQLException
java.sql.SQLException
private void subtestErrorEventWithNullListener(javax.sql.PooledConnection pc)
throws java.sql.SQLException
java.sql.SQLException
private void testCloseActiveConnection(java.sql.Connection c,
boolean autoCommit,
boolean global)
throws java.sql.SQLException
Connection.close() behaves as expected when the
transaction is active (DERBY-3319).
c - the connection to testautoCommit - the expected auto-commit value. When auto-commit is
on, close() shouldn't fail when the transaction is active.global - tells whether the connection is part of a global XA
transaction. If it is, close() shouldn't fail, since the
transaction can be finished later without using the connection.
java.sql.SQLException
public void testCloseActiveConnection_DS()
throws java.sql.SQLException
DataSource behave as
expected when close() is called and the transaction is active.
java.sql.SQLException
public void testCloseActiveConnection_CP()
throws java.sql.SQLException
ConnectionPoolDataSource
behave as expected when close() is called and the transaction is
active.
java.sql.SQLException
public void testCloseActiveConnection_XA_local()
throws java.sql.SQLException
XADataSource that are not
part of a global XA transaction, behave as expected when close()
is called and the transaction is active.
java.sql.SQLException
public void testCloseActiveConnection_XA_global()
throws java.sql.SQLException,
javax.transaction.xa.XAException
XADataSource that are part
of a global XA transaction, behave as expected when close() is
called and the transaction is active.
java.sql.SQLException
javax.transaction.xa.XAException
public void testPooledReuseOnClose()
throws java.sql.SQLException
java.sql.SQLException
private void subtestPooledReuseOnClose(javax.sql.PooledConnection pc)
throws java.sql.SQLException
java.sql.SQLException
private void subtestPooledCloseOnClose(javax.sql.PooledConnection pc)
throws java.sql.SQLException
java.sql.SQLException
private void subtestPooledRemoveListenerOnClose(javax.sql.PooledConnection pc)
throws java.sql.SQLException
java.sql.SQLException
private void subtestPooledAddListenerOnClose(javax.sql.PooledConnection pc)
throws java.sql.SQLException
java.sql.SQLException
public void testAllDataSources()
throws java.sql.SQLException,
java.lang.Exception
java.sql.SQLException
java.lang.Exception
public void testClosedCPDSConnection()
throws java.sql.SQLException,
java.lang.Exception
java.sql.SQLException
java.lang.Exception
public void testClosedXADSConnection()
throws java.sql.SQLException,
java.lang.Exception
java.sql.SQLException
java.lang.Exception
public void testGlobalLocalInterleaf()
throws java.sql.SQLException,
javax.transaction.xa.XAException
java.sql.SQLException
javax.transaction.xa.XAException
public void testSetIsolationWithStatement()
throws java.sql.SQLException,
javax.transaction.xa.XAException
java.sql.SQLException
javax.transaction.xa.XAException
public void testReuseAcrossGlobalLocal()
throws java.sql.SQLException,
javax.transaction.xa.XAException
java.sql.SQLException
javax.transaction.xa.XAException
public void testSetSchemaInXAConnection()
throws java.sql.SQLException
java.sql.SQLException
public void testSchemaIsReset()
throws java.sql.SQLException
The test is run in a non-statement pooling configuration first, and then with statement pooling enabled if the environment supports it.
Relevant Jira issue: DERBY-3690.
The current role also needs to be reset, but can't be tested here since we need to run with SQL authorization.
java.sql.SQLException - if something goes wrongRolesTest.testCurrentRoleIsReset()
private void doTestSchemaIsReset(javax.sql.PooledConnection pc,
java.lang.String userSchema)
throws java.sql.SQLException
pc - pooled connection to get logical connections fromuserSchema - name of the default schema for the connection (user)
java.sql.SQLException - if something goes wrong...
public void testSchemaIsResetWhenDeleted()
throws java.sql.SQLException
Relevant Jira issue: DERBY-3690.
java.sql.SQLException - if something goes wrong
public void testAutoCommitOnXAResourceStart()
throws java.sql.SQLException,
javax.transaction.xa.XAException
java.sql.SQLException
javax.transaction.xa.XAException
public void testReadOnlyToWritableTran()
throws java.sql.SQLException,
java.lang.Exception
java.sql.SQLException
java.lang.Exception
public void testJira95pds()
throws java.lang.Exception
java.lang.Exception
public void testJira95xads()
throws java.sql.SQLException
java.sql.SQLException
public void testBadConnectionAttributeSyntax()
throws java.sql.SQLException
java.sql.SQLException
public void testClientDSConnectionAttributes()
throws java.sql.SQLException
java.sql.SQLException
public void testDSRequestAuthentication()
throws java.lang.Exception
java.lang.Exception
public void testClientTraceFileDSConnectionAttribute()
throws java.sql.SQLException
java.sql.SQLExceptionprivate static void assertTraceFilesExist()
public void testClientMessageTextConnectionAttribute()
throws java.sql.SQLException
java.sql.SQLException
private static void assertMessageText(java.sql.Connection conn,
java.lang.String retrieveMessageTextValue)
throws java.sql.SQLException
java.sql.SQLException
public void testDescriptionProperty()
throws java.sql.SQLException,
java.lang.Exception
java.sql.SQLException
java.lang.Exception
private void subTestDataSourceDescription(javax.sql.DataSource ds)
throws java.lang.Exception
java.lang.Exception
public void testXAHoldability()
throws java.sql.SQLException,
javax.transaction.xa.XAException
java.sql.SQLException
javax.transaction.xa.XAException
public void testConnectionLeakInDatabaseMetaData()
throws java.sql.SQLException
java.sql.SQLException - if something goes wrong
public void testDerby3799()
throws java.sql.SQLException
java.sql.SQLException
public void timeoutTestDerby1144PooledDS()
throws java.sql.SQLException
java.sql.SQLException
public void timeoutTestDerby1144XADS()
throws java.sql.SQLException
java.sql.SQLException
private static void assertPooledConnAutoCommit(java.lang.String desc,
javax.sql.PooledConnection pc1)
throws java.sql.SQLException
desc - description of connectionpc1 - pooled connection to test
java.sql.SQLException
private static void assertPooledConnHoldability(java.lang.String desc,
javax.sql.PooledConnection pc1)
throws java.sql.SQLException
desc - pc1 -
java.sql.SQLException
private static void assertConnHoldability(java.sql.Connection conn,
int expectedHoldability)
throws java.sql.SQLException
conn - expectedHoldability - * @throws SQLException
java.sql.SQLException
private void assertPooledConnIso(java.lang.String pooledConnType,
javax.sql.PooledConnection pc)
throws java.sql.SQLException
pooledConnType - Descripiton of the type of pooled connectionpc - PooledConnection or XAConnection
java.sql.SQLException
private static void setupDerby1144Table(java.sql.Connection conn)
throws java.sql.SQLException
conn -
java.sql.SQLException
private void assertIsoLocks(java.sql.Connection conn,
int expectedIsoLevel)
throws java.sql.SQLException
conn - Connection to testexpectedIsoLevel - expected isolation level
java.sql.SQLException
private boolean selectTimesoutDuringUpdate(java.sql.Connection conn)
throws java.sql.SQLException
Connection.TRANSACTION_READ_UNCOMMITTED it will not
timeout. Otherwise it should.
conn - Connection to test.
java.sql.SQLException
private void assertConnectionState(int expectedHoldability,
int expectedIsolation,
boolean expectedCommitSetting,
boolean expectedReadOnly,
java.sql.Connection conn)
throws java.sql.SQLException
java.sql.SQLException
private static void setDatabaseProperty(java.lang.String property,
java.lang.String value)
throws java.sql.SQLException
java.sql.SQLException
private void setHoldability(java.sql.Connection conn,
boolean hold)
throws java.sql.SQLException
java.sql.SQLException
private static void dsConnectionRequests(java.lang.String[] expectedValues,
javax.sql.DataSource ds)
private static void dsConnectionRequest(java.lang.String expectedValue,
javax.sql.DataSource ds,
java.lang.String user,
java.lang.String ConnAttr)
private static void dsConnectionRequests(java.lang.String[] expectedValues,
javax.sql.ConnectionPoolDataSource ds)
private static void dsConnectionRequest(java.lang.String expectedValue,
javax.sql.ConnectionPoolDataSource ds,
java.lang.String user,
java.lang.String ConnAttr)
private static void dsConnectionRequests(java.lang.String[] expectedValues,
javax.sql.XADataSource ds)
private static void dsConnectionRequest(java.lang.String expectedValue,
javax.sql.XADataSource ds,
java.lang.String user,
java.lang.String ConnAttr)
protected void assertXAException(java.lang.String tag,
javax.transaction.xa.XAException xae)
private static void queryOnStatement(java.lang.String expectedCursorName,
int[] expectedValues,
java.sql.Connection conn,
java.sql.Statement s)
throws java.sql.SQLException
java.sql.SQLException
private static void resultSetQuery(java.lang.String expectedCursorName,
int[] expectedValues,
java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLException
private static void assertLocks(int[] expectedValues,
java.sql.Connection conn)
throws java.sql.SQLException
java.sql.SQLException
private void assertStatementState(int[] parameterExpectedValues,
int[] expectedValues,
java.sql.Statement s)
throws java.sql.SQLException
java.sql.SQLException
private java.sql.Statement createFloatStatementForStateChecking(int[] StatementExpectedValues,
java.sql.Connection conn)
throws java.sql.SQLException
java.sql.SQLException
private java.sql.Statement internalCreateFloatStatementForStateChecking(java.sql.Connection conn)
throws java.sql.SQLException
java.sql.SQLException
private java.sql.PreparedStatement createFloatStatementForStateChecking(int[] parameterExpectedValues,
int[] PreparedStatementExpectedValues,
java.sql.Connection conn,
java.lang.String sql)
throws java.sql.SQLException
java.sql.SQLException
private java.sql.PreparedStatement internalCreateFloatStatementForStateChecking(java.sql.Connection conn,
java.lang.String sql)
throws java.sql.SQLException
java.sql.SQLException
private java.sql.CallableStatement createFloatCallForStateChecking(int[] parameterExpectedValues,
int[] CallableStatementExpectedValues,
java.sql.Connection conn,
java.lang.String sql)
throws java.sql.SQLException
java.sql.SQLException
private java.sql.CallableStatement internalCreateFloatCallForStateChecking(java.sql.Connection conn,
java.lang.String sql)
throws java.sql.SQLException
java.sql.SQLException
private void assertConnectionOK(java.lang.Object[] expectedValues,
java.lang.String dsName,
java.sql.Connection conn)
throws java.sql.SQLException
java.sql.SQLException
private void assertConnectionPreClose(java.lang.String dsName,
java.sql.Connection conn)
throws java.sql.SQLException
java.sql.SQLException
private void assertStatementOK(java.lang.String dsName,
java.sql.Connection conn,
java.sql.Statement s)
throws java.sql.SQLException
java.sql.SQLException
private static void PoolReset(java.lang.String type,
javax.sql.PooledConnection pc)
throws java.sql.SQLException
java.sql.SQLException
private static void PoolResetWork(java.lang.String expectedID,
java.lang.String tableAction,
java.sql.Connection conn)
throws java.sql.SQLException
java.sql.SQLException
private static void assertToString(java.sql.Connection conn)
throws java.lang.Exception
java.lang.Exception
private static void assertStringFormat(javax.sql.PooledConnection pc)
throws java.lang.Exception
java.lang.Exceptionprivate static void assertStringFormat(java.sql.Connection conn)
private static java.lang.String assertStringPrefix(java.lang.Object conn)
private static void assertToString(javax.sql.DataSource ds)
throws java.lang.Exception
java.lang.Exception
private static void clearConnections()
throws java.sql.SQLException
java.sql.SQLException
private void assertTenConnectionsUnique()
throws java.lang.Exception
java.lang.Exception
private static void assertToString(javax.sql.XADataSource xds)
throws java.lang.Exception
java.lang.Exception
private static void assertToString(javax.sql.ConnectionPoolDataSource pds)
throws java.lang.Exception
java.lang.Exceptionprivate static java.lang.String getNestedMethodName()
public static void checkNesConn(java.lang.String dsName)
throws java.sql.SQLException
java.sql.SQLException
|
Built on Thu 2009-11-26 18:42:53-0800, from revision 884739 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||