Java Doc for DbConnectionProvider.java in  » Forum » yazd » com » Yasna » forum » database » 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 » Forum » yazd » com.Yasna.forum.database 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.Yasna.forum.database.DbConnectionProvider

All known Subclasses:   com.Yasna.forum.database.DataSourceConnectionProvider,  com.Yasna.forum.database.DbConnectionDefaultPool,
DbConnectionProvider
abstract public class DbConnectionProvider (Code)
Abstract class that defines the connection provider framework. Other classes extend this abstract class to make connection to actual data sources.




Method Summary
abstract protected  voiddestroy()
     Tells the connection provider to destroy itself.
public  StringgetAuthor()
     Returns the author of the connection provider.
abstract public  ConnectiongetConnection()
     Returns a database connection.
public  StringgetDescription()
     Returns a description of the connection provider.
public  intgetMajorVersion()
     Returns the major version of the connection provider, i.e.
public  intgetMinorVersion()
     Returns the minor version of the connection provider, i.e.
public  StringgetName()
     Returns the name of the connection provider.
abstract public  StringgetProperty(String name)
     Returns the value of a property of the connection provider.
Parameters:
  name - the name of the property.
abstract public  StringgetPropertyDescription(String name)
     Returns the description of a property of the connection provider.
Parameters:
  name - the name of the property.
public  booleanisPooled()
     Returns true if this connection provider provides connections out of a connection pool.
abstract public  EnumerationpropertyNames()
     Returns an enumeration of the property names for the connection provider.
abstract protected  voidrestart()
     This method should be called whenever properties have been changed so that the changes will take effect.
abstract public  voidsetProperty(String name, String value)
     Sets a property of the connection provider.
abstract protected  voidstart()
     Starts the connection provider.



Method Detail
destroy
abstract protected void destroy()(Code)
Tells the connection provider to destroy itself. For many connection providers, this will essentially result in a no-op. However, connection provider users should always call this method when changing from one connection provider to another to ensure that there are no dangling database connections.



getAuthor
public String getAuthor()(Code)
Returns the author of the connection provider. the name of the author of this connection provider.



getConnection
abstract public Connection getConnection()(Code)
Returns a database connection. When a Yazd component is done with a connection, it will call the close method of that connection. Therefore, connection pools with special release methods are not directly supported by the connection provider infrastructure. Instead, connections from those pools should be wrapped such that calling the close method on the wrapper class will release the connection from the pool. a Connection object.



getDescription
public String getDescription()(Code)
Returns a description of the connection provider. the description of the connection provider.



getMajorVersion
public int getMajorVersion()(Code)
Returns the major version of the connection provider, i.e. 1.x. the major version number of the provider.



getMinorVersion
public int getMinorVersion()(Code)
Returns the minor version of the connection provider, i.e. x.1. the minor version number of the provider.



getName
public String getName()(Code)
Returns the name of the connection provider. the name of the connection provider.



getProperty
abstract public String getProperty(String name)(Code)
Returns the value of a property of the connection provider.
Parameters:
  name - the name of the property. the value of the property.



getPropertyDescription
abstract public String getPropertyDescription(String name)(Code)
Returns the description of a property of the connection provider.
Parameters:
  name - the name of the property. the description of the property.



isPooled
public boolean isPooled()(Code)
Returns true if this connection provider provides connections out of a connection pool. Implementing and using connection providers that are pooled is strongly recommended, as they greatly increase the speed of Yazd. true if the Connection objects returned by this provider arepooled.



propertyNames
abstract public Enumeration propertyNames()(Code)
Returns an enumeration of the property names for the connection provider. an Enumeration of the property names.



restart
abstract protected void restart()(Code)
This method should be called whenever properties have been changed so that the changes will take effect.



setProperty
abstract public void setProperty(String name, String value)(Code)
Sets a property of the connection provider. Each provider has a set number of properties that are determined by the author. Trying to set a non- existant property will result in an IllegalArgumentException.
Parameters:
  name - the name of the property to set.
Parameters:
  value - the new value for the property.



start
abstract protected void start()(Code)
Starts the connection provider. For some connection providers, this will be a no-op. However, connection provider users should always call this method to make sure the connection provider is started.



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.