Source Code Cross Referenced for ConnectionAdapterIF.java in  » Database-JDBC-Connection-Pool » proxool » org » logicalcobwebs » dbscript » 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 JDBC Connection Pool » proxool » org.logicalcobwebs.dbscript 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        /*
02:         * This software is released under a licence similar to the Apache Software Licence.
03:         * See org.logicalcobwebs.proxool.package.html for details.
04:         * The latest version is available at http://proxool.sourceforge.net
05:         */
06:        package org.logicalcobwebs.dbscript;
07:
08:        import org.logicalcobwebs.proxool.ProxoolException;
09:
10:        import java.util.Properties;
11:        import java.sql.SQLException;
12:        import java.sql.Connection;
13:
14:        /**
15:         * An interface that will provide connections. It differs from a real
16:         * {@link java.sql.Driver Driver} because it has {@link #setup} and
17:         * {@link #tearDown} methods.
18:         *
19:         * @version $Revision: 1.8 $, $Date: 2003/03/03 11:12:03 $
20:         * @author Bill Horsman (bill@logicalcobwebs.co.uk)
21:         * @author $Author: billhorsman $ (current maintainer)
22:         * @since Proxool 0.5
23:         */
24:        public interface ConnectionAdapterIF {
25:
26:            /**
27:             * Setup the adapter. Define the connection. Prototype any connections
28:             * as necessary.
29:             *
30:             * @param driver the name of the class
31:             * @param url the url to pass to the driver
32:             * @param info the properties to pass to the driver
33:             * @throws SQLException if anything goes wrong
34:             */
35:            void setup(String driver, String url, Properties info)
36:                    throws SQLException, ProxoolException;
37:
38:            /**
39:             * Simply get a connection (using the definitions defined in {@link #setup}
40:             * @return the connection
41:             * @throws SQLException if anything goes wrong
42:             */
43:            Connection getConnection() throws SQLException;
44:
45:            /**
46:             * This gives the adapter the flexibilty of closing the connection for real
47:             * or just putting it back in a pool.
48:             * @param connection the connection to "close"
49:             * @throws SQLException if anything goes wrong
50:             */
51:            void closeConnection(Connection connection) throws SQLException;
52:
53:            /**
54:             * Reclaim resources used by the adapter (for instance, close any
55:             * open connections)
56:             */
57:            void tearDown() throws ProxoolException;
58:
59:            /**
60:             * Convenient name so we can identify this adapter in logs.
61:             * @return name
62:             */
63:            String getName();
64:
65:        }
66:
67:        /*
68:         Revision history:
69:         $Log: ConnectionAdapterIF.java,v $
70:         Revision 1.8  2003/03/03 11:12:03  billhorsman
71:         fixed licence
72:
73:         Revision 1.7  2003/02/19 15:14:21  billhorsman
74:         fixed copyright (copy and paste error,
75:         not copyright change)
76:
77:         Revision 1.6  2003/01/17 00:38:12  billhorsman
78:         wide ranging changes to clarify use of alias and url -
79:         this has led to some signature changes (new exceptions
80:         thrown) on the ProxoolFacade API.
81:
82:         Revision 1.5  2002/11/13 20:23:34  billhorsman
83:         change method name, throw exceptions differently, trivial changes
84:
85:         Revision 1.4  2002/11/09 15:59:34  billhorsman
86:         fix doc
87:
88:         Revision 1.3  2002/11/02 14:22:16  billhorsman
89:         Documentation
90:
91:         Revision 1.2  2002/11/02 12:46:42  billhorsman
92:         improved debug
93:
94:         Revision 1.1  2002/11/02 11:29:53  billhorsman
95:         new script runner for testing
96:
97:         */
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.