Java Doc for checkDataSource.java in  » Database-DBMS » db-derby-10.2 » org » apache » derbyTesting » functionTests » tests » jdbcapi » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database DBMS » db derby 10.2 » org.apache.derbyTesting.functionTests.tests.jdbcapi 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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  Hashtableconns
     A hashtable of opened connections.
protected static  Perl5Utilp5u
     This is a utility that knows how to do pattern matching.

Constructor Summary
public  checkDataSource()
    

Method Summary
public  voidcheckConnection(String dsName, Connection conn)
    
protected  voidcheckConnectionPreClose(String dsName, Connection conn)
    
protected static  voidcheckJBMSToString()
    
public static  voidcheckNesConn(String dsName)
    
protected  voidcheckStatement(String dsName, Connection conn, Statement s)
    
protected static  voidcheckStringFormat(PooledConnection pc)
    
protected static  voidcheckStringFormat(Connection conn)
     Check the format of the connection string.
protected static  StringcheckStringPrefix(Object conn)
     Make sure the connection string starts with the right prefix, which is the classname@hashcode.
protected static  voidcheckToString(Connection conn)
    
protected static  voidcheckToString(DataSource ds)
    
protected static  voidcheckToString(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  voidcheckToString(XADataSource xds)
    
protected static  voidclearConnections()
     Clear out and close connections in the connections hashtable.
protected  CallableStatementcreateFloatCallForStateChecking(Connection conn, String sql)
    
protected  StatementcreateFloatStatementForStateChecking(Connection conn)
     Create a statement with modified State.
protected  PreparedStatementcreateFloatStatementForStateChecking(Connection conn, String sql)
    
protected  voidgetHoldability(Connection conn)
    
protected  StringgetNestedMethodName()
     Return the Java class and method for the procedure for the nested connection test.
protected  XidgetXid(int xid, byte b1, byte b2)
    
protected  CallableStatementinternalCreateFloatCallForStateChecking(Connection conn, String sql)
    
protected  StatementinternalCreateFloatStatementForStateChecking(Connection conn)
    
protected  PreparedStatementinternalCreateFloatStatementForStateChecking(Connection conn, String sql)
    
public static  voidmain(String[] args)
    
static  StringrsConcurrency(int type)
    
static  StringrsFetchDirection(int type)
    
static  StringrsType(int type)
    
protected  voidrunTest(String[] args)
    
protected  voidsetHoldability(Connection conn, boolean hold)
    
protected  voidshowStatementState(String when, Statement s)
    
protected  voidshowXAException(String tag, XAException xae)
    
public  voidtestJira95ds(Connection conn, String dbName)
    
public  voidtestJira95xads(Connection conn, String dbName)
    
public static  StringtranslateIso(int iso)
    

Field Detail
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




Constructor Detail
checkDataSource
public checkDataSource()(Code)




Method Detail
checkConnection
public void checkConnection(String dsName, Connection conn) throws SQLException(Code)



checkConnectionPreClose
protected void checkConnectionPreClose(String dsName, Connection conn) throws SQLException(Code)



checkJBMSToString
protected static void checkJBMSToString() throws Exception(Code)
Get connections using ij.startJBMS() and make sure they're unique



checkNesConn
public static void checkNesConn(String dsName) throws SQLException(Code)



checkStatement
protected void checkStatement(String dsName, Connection conn, Statement s) throws SQLException(Code)



checkStringFormat
protected static void checkStringFormat(PooledConnection pc) throws Exception(Code)
Check the format of a pooled connection



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.



createFloatCallForStateChecking
protected CallableStatement createFloatCallForStateChecking(Connection conn, String sql) throws SQLException(Code)



createFloatStatementForStateChecking
protected Statement createFloatStatementForStateChecking(Connection conn) throws SQLException(Code)
Create a statement with modified State.



createFloatStatementForStateChecking
protected PreparedStatement createFloatStatementForStateChecking(Connection conn, String sql) throws SQLException(Code)



getHoldability
protected void getHoldability(Connection conn) throws SQLException(Code)



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)



internalCreateFloatCallForStateChecking
protected CallableStatement internalCreateFloatCallForStateChecking(Connection conn, String sql) throws SQLException(Code)



internalCreateFloatStatementForStateChecking
protected Statement internalCreateFloatStatementForStateChecking(Connection conn) throws SQLException(Code)



internalCreateFloatStatementForStateChecking
protected PreparedStatement internalCreateFloatStatementForStateChecking(Connection conn, String sql) throws SQLException(Code)



main
public static void main(String[] args) throws Exception(Code)



rsConcurrency
static String rsConcurrency(int type)(Code)



rsFetchDirection
static String rsFetchDirection(int type)(Code)



rsType
static String rsType(int type)(Code)



runTest
protected void runTest(String[] args) throws Exception(Code)



setHoldability
protected void setHoldability(Connection conn, boolean hold) throws SQLException(Code)



showStatementState
protected void showStatementState(String when, Statement s) throws SQLException(Code)



showXAException
protected void showXAException(String tag, XAException xae)(Code)



testJira95ds
public void testJira95ds(Connection conn, String dbName) throws SQLException(Code)



testJira95xads
public void testJira95xads(Connection conn, String dbName) throws SQLException(Code)



translateIso
public static String translateIso(int iso)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.