Java Doc for JDBCConnectionFactory.java in  » ERP-CRM-Financial » SourceTap-CRM » org » ofbiz » minerva » pool » jdbc » 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 » ERP CRM Financial » SourceTap CRM » org.ofbiz.minerva.pool.jdbc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.ofbiz.minerva.pool.PoolObjectFactory
      org.ofbiz.minerva.pool.jdbc.JDBCConnectionFactory

JDBCConnectionFactory
public class JDBCConnectionFactory extends PoolObjectFactory (Code)
Object factory that creates java.sql.Connections. This is meant for use outside a J2EE/JTA environment - servlets alone, client/server, etc. If you're interested in creating transactional-aware connections, see XAConnectionFactory, which complies with the JDBC 2.0 standard extension.
See Also:   org.ofbiz.minerva.pool.jdbc.xa.XAConnectionFactory
author:
   Aaron Mulder (ammulder@alumni.princeton.edu)



Constructor Summary
public  JDBCConnectionFactory()
     Creates a new factory.

Method Summary
public  ObjectcreateObject(Object parameters)
     Creates a new JDBC Connection.
public  voiddeleteObject(Object pooledObject)
     Closes a connection.
public  PropertiesgetConnectProperties()
     Gets the JDBC Properties used to create new connections.
public  StringgetConnectURL()
     Gets the JDBC URL used to create new connections.
public  intgetPSCacheSize()
     Gets the number of PreparedStatements to be cached for each Connection.
public  StringgetPassword()
     Gets the JDBC password used to create new connections.
public  StringgetUser()
     Gets the JDBC user name used to create new connections.
public  voidpoolClosing(ObjectPool pool)
     Cleans up.
public  voidpoolStarted(ObjectPool pool)
     Validates that connection properties were set (at least a URL).
public  ObjectprepareObject(Object pooledObject)
     Wraps the connection with a ConnectionInPool.
public  ObjectreturnObject(Object clientObject)
     Closes all outstanding work for the connection, rolls it back, and returns the underlying connection to the pool.
public  voidsetConnectProperties(Properties props)
     Sets the JDBC Propeties used to create new connections.
public  voidsetConnectURL(String url)
     Sets the JDBC URL used to create new connections.
public  voidsetPSCacheSize(int size)
     Sets the number of PreparedStatements to be cached for each Connection.
public  voidsetPassword(String password)
     Sets the JDBC password used to create new connections.
public  voidsetUser(String userName)
     Sets the JDBC user name used to create new connections.
public  ObjecttranslateObject(Object clientObject)
     Returns the original connection from a ConnectionInPool.


Constructor Detail
JDBCConnectionFactory
public JDBCConnectionFactory()(Code)
Creates a new factory. You must configure it with JDBC properties before you can use it.




Method Detail
createObject
public Object createObject(Object parameters) throws Exception(Code)
Creates a new JDBC Connection.



deleteObject
public void deleteObject(Object pooledObject)(Code)
Closes a connection.



getConnectProperties
public Properties getConnectProperties()(Code)
Gets the JDBC Properties used to create new connections.



getConnectURL
public String getConnectURL()(Code)
Gets the JDBC URL used to create new connections.



getPSCacheSize
public int getPSCacheSize()(Code)
Gets the number of PreparedStatements to be cached for each Connection. The default value is 10.



getPassword
public String getPassword()(Code)
Gets the JDBC password used to create new connections.



getUser
public String getUser()(Code)
Gets the JDBC user name used to create new connections.



poolClosing
public void poolClosing(ObjectPool pool)(Code)
Cleans up.



poolStarted
public void poolStarted(ObjectPool pool)(Code)
Validates that connection properties were set (at least a URL).



prepareObject
public Object prepareObject(Object pooledObject)(Code)
Wraps the connection with a ConnectionInPool.
See Also:   org.ofbiz.minerva.pool.jdbc.ConnectionInPool



returnObject
public Object returnObject(Object clientObject)(Code)
Closes all outstanding work for the connection, rolls it back, and returns the underlying connection to the pool.



setConnectProperties
public void setConnectProperties(Properties props)(Code)
Sets the JDBC Propeties used to create new connections. This is optional, and will only be used if present.



setConnectURL
public void setConnectURL(String url)(Code)
Sets the JDBC URL used to create new connections.



setPSCacheSize
public void setPSCacheSize(int size)(Code)
Sets the number of PreparedStatements to be cached for each Connection. Your DB product may impose a limit on the number of open PreparedStatements. The default value is 10.



setPassword
public void setPassword(String password)(Code)
Sets the JDBC password used to create new connections. This is optional, and will only be used if present.



setUser
public void setUser(String userName)(Code)
Sets the JDBC user name used to create new connections. This is optional, and will only be used if present.



translateObject
public Object translateObject(Object clientObject)(Code)
Returns the original connection from a ConnectionInPool.
See Also:   org.ofbiz.minerva.pool.jdbc.ConnectionInPool



Methods inherited from org.ofbiz.minerva.pool.PoolObjectFactory
public boolean checkValidObject(Object source, Object parameters)(Code)(Java Doc)
abstract public Object createObject(Object parameters) throws Exception(Code)(Java Doc)
public void deleteObject(Object pooledObject)(Code)(Java Doc)
public Object isUniqueRequest()(Code)(Java Doc)
public void poolClosing(ObjectPool pool)(Code)(Java Doc)
public void poolStarted(ObjectPool pool)(Code)(Java Doc)
public Object prepareObject(Object pooledObject)(Code)(Java Doc)
public Object returnObject(Object clientObject)(Code)(Java Doc)
public Object translateObject(Object clientObject)(Code)(Java Doc)

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.