| java.lang.Object org.apache.derbyTesting.functionTests.tests.jdbcapi.checkDataSource
All known Subclasses: org.apache.derbyTesting.functionTests.tests.jdbcapi.checkDataSource30,
checkDataSource | public class checkDataSource (Code) | | Test the various embedded DataSource implementations of Derby.
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.
See Also: org.apache.derbyTesting.functionTests.util.SecurityCheck |
Field Summary | |
protected static Hashtable | conns A hashtable of opened connections. | protected static Perl5Util | p5u This is a utility that knows how to do pattern matching. |
Method Summary | |
public void | checkConnection(String dsName, Connection conn) | protected void | checkConnectionPreClose(String dsName, Connection conn) | protected static void | checkJBMSToString() | public static void | checkNesConn(String dsName) | protected void | checkStatement(String dsName, Connection conn, Statement s) | protected static void | checkStringFormat(PooledConnection pc) | protected static void | checkStringFormat(Connection conn) Check the format of the connection string. | protected static String | checkStringPrefix(Object conn) Make sure the connection string starts with the right prefix, which
is the classname@hashcode. | protected static void | checkToString(Connection conn) | protected static void | checkToString(DataSource ds) | protected static void | checkToString(ConnectionPoolDataSource pds) Check uniqueness of strings with a pooled data source.
We want to check the PooledConnection as well as the
underlying physical connection. | protected static void | checkToString(XADataSource xds) | protected static void | clearConnections() Clear out and close connections in the connections
hashtable. | protected CallableStatement | createFloatCallForStateChecking(Connection conn, String sql) | protected Statement | createFloatStatementForStateChecking(Connection conn) Create a statement with modified State. | protected PreparedStatement | createFloatStatementForStateChecking(Connection conn, String sql) | protected void | getHoldability(Connection conn) | protected String | getNestedMethodName() Return the Java class and method for the procedure
for the nested connection test. | protected Xid | getXid(int xid, byte b1, byte b2) | protected CallableStatement | internalCreateFloatCallForStateChecking(Connection conn, String sql) | protected Statement | internalCreateFloatStatementForStateChecking(Connection conn) | protected PreparedStatement | internalCreateFloatStatementForStateChecking(Connection conn, String sql) | public static void | main(String[] args) | static String | rsConcurrency(int type) | static String | rsFetchDirection(int type) | static String | rsType(int type) | protected void | runTest(String[] args) | protected void | setHoldability(Connection conn, boolean hold) | protected void | showStatementState(String when, Statement s) | protected void | showXAException(String tag, XAException xae) | public void | testJira95ds(Connection conn, String dbName) | public void | testJira95xads(Connection conn, String dbName) | public static String | translateIso(int iso) |
conns | protected static Hashtable conns(Code) | | A hashtable of opened connections. This is used when checking to
make sure connection strings are unique; we need to make sure all
the connections are closed when we are done, so they are stored
in this hashtable
|
p5u | protected static Perl5Util p5u(Code) | | This is a utility that knows how to do pattern matching. Used
in checking the format of a connection string
|
checkDataSource | public checkDataSource()(Code) | | |
checkJBMSToString | protected static void checkJBMSToString() throws Exception(Code) | | Get connections using ij.startJBMS() and make sure
they're unique
|
checkStringFormat | protected static void checkStringFormat(Connection conn) throws Exception(Code) | | Check the format of the connection string. This is the default test
to run if this is not a BrokeredConnection class
|
checkStringPrefix | protected static String checkStringPrefix(Object conn) throws Exception(Code) | | Make sure the connection string starts with the right prefix, which
is the classname@hashcode.
the expected prefix string, this is used in further stringformat checking |
checkToString | protected static void checkToString(Connection conn) throws Exception(Code) | | Make sure this connection's string is unique (DERBY-243)
|
checkToString | protected static void checkToString(DataSource ds) throws Exception(Code) | | Check uniqueness of connection strings coming from a
DataSouce
|
checkToString | protected static void checkToString(ConnectionPoolDataSource pds) throws Exception(Code) | | Check uniqueness of strings with a pooled data source.
We want to check the PooledConnection as well as the
underlying physical connection.
|
checkToString | protected static void checkToString(XADataSource xds) throws Exception(Code) | | Check uniqueness of strings for an XA data source
|
clearConnections | protected static void clearConnections() throws SQLException(Code) | | Clear out and close connections in the connections
hashtable.
|
getNestedMethodName | protected String getNestedMethodName()(Code) | | Return the Java class and method for the procedure
for the nested connection test.
checkDataSource 30 will override.
|
getXid | protected Xid getXid(int xid, byte b1, byte b2)(Code) | | |
rsFetchDirection | static String rsFetchDirection(int type)(Code) | | |
translateIso | public static String translateIso(int iso)(Code) | | |
|
|