Java Doc for JDBCPoolDataSource.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.jdbc.JDBCPoolDataSource

JDBCPoolDataSource
public class JDBCPoolDataSource implements DataSource,Referenceable,ObjectFactory(Code)
DataSource for non-transactional JDBC pools. This handles configuration parameters for both the pool and the JDBC driver. It is important that you set all the configuration parameters before you initialize the DataSource, and you must initialize it before you use it. All the configuration parameters are not documented here; you are instead referred to ObjectPool and JDBCConnectionFactory.
See Also:   org.ofbiz.minerva.pool.ObjectPool
See Also:   org.ofbiz.minerva.pool.jdbc.JDBCConnectionFactory
author:
   Aaron Mulder (ammulder@alumni.princeton.edu)



Constructor Summary
public  JDBCPoolDataSource()
     Creates a new JDBC pool data source.

Method Summary
public  voidclose()
     Shuts down this data source and the underlying pool.
public  ConnectiongetConnection()
     Gets a connection from the pool.
public  ConnectiongetConnection(String user, String password)
     Gets a connection from the pool.
public static  JDBCPoolDataSourcegetDataSource(String poolName)
     Gets a specific JDBC pool data source by pool name.
public static  CollectiongetDataSources()
     Gets all the current JDBC pool data sources.
public  longgetGCInterval()
    
public  longgetGCMinIdleTime()
    
public  longgetIdleTimeout()
    
public  StringgetJDBCPassword()
    
public  PropertiesgetJDBCProperties()
    
public  StringgetJDBCURL()
    
public  StringgetJDBCUser()
    
public  StringgetJNDIName()
     Gets the JNDI name this pool is bound to.
public  PrintWritergetLogWriter()
     Gets a log writer used to record pool events.
public  intgetLoginTimeout()
     This property is not used by this implementation.
public  floatgetMaxIdleTimeoutPercent()
    
public  intgetMaxSize()
    
public  intgetMinSize()
    
public  ObjectgetObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment)
     Decodes a reference to a specific pool data source.
public  StringgetPoolName()
    
public  StringgetPoolStatus()
     Returns a string describing the pool status (number of connections created, used, and maximum).
public  ReferencegetReference()
     Gets a reference to this data source.
public  voidinitialize()
     Initializes the pool.
public  booleanisBlocking()
    
public  booleanisGCEnabled()
    
public  booleanisIdleTimeoutEnabled()
    
public  booleanisInvalidateOnError()
    
public  booleanisTimestampUsed()
    
public  voidsetBlocking(boolean blocking)
    
public  voidsetGCEnabled(boolean allowGC)
    
public  voidsetGCInterval(long millis)
    
public  voidsetGCMinIdleTime(long millis)
    
public  voidsetIdleTimeout(long millis)
    
public  voidsetIdleTimeoutEnabled(boolean allowShrinking)
    
public  voidsetInvalidateOnError(boolean invalidate)
    
public  voidsetJDBCPassword(String password)
    
public  voidsetJDBCProperties(Properties props)
    
public  voidsetJDBCURL(String url)
    
public  voidsetJDBCUser(String user)
    
public  voidsetJNDIName(String name)
     If you use this to set a JNDI name, this pool will be bound to that name using the default InitialContext.
public  voidsetLogWriter(PrintWriter writer)
     Sets a log writer used to record pool events.
public  voidsetLoginTimeout(int timeout)
     This property is not used by this implementation.
public  voidsetMaxIdleTimeoutPercent(float percent)
    
public  voidsetMaxSize(int size)
    
public  voidsetMinSize(int size)
    
public  voidsetPoolName(String name)
    
public  voidsetProperties(String props)
    
public  voidsetTimestampUsed(boolean timestamp)
    


Constructor Detail
JDBCPoolDataSource
public JDBCPoolDataSource()(Code)
Creates a new JDBC pool data source. Be sure to configure it and then call initialize before you try to use it.




Method Detail
close
public void close()(Code)
Shuts down this data source and the underlying pool. If you used setJNDI name to bind it in JNDI, it is unbound.



getConnection
public Connection getConnection() throws java.sql.SQLException(Code)
Gets a connection from the pool.



getConnection
public Connection getConnection(String user, String password) throws java.sql.SQLException(Code)
Gets a connection from the pool. If a new connection must be created, it will use the specified user name and password. If there is a connection available in the pool, it will be used, regardless of the user name and password use to created it initially.



getDataSource
public static JDBCPoolDataSource getDataSource(String poolName)(Code)
Gets a specific JDBC pool data source by pool name.



getDataSources
public static Collection getDataSources()(Code)
Gets all the current JDBC pool data sources.



getGCInterval
public long getGCInterval()(Code)



getGCMinIdleTime
public long getGCMinIdleTime()(Code)



getIdleTimeout
public long getIdleTimeout()(Code)



getJDBCPassword
public String getJDBCPassword()(Code)



getJDBCProperties
public Properties getJDBCProperties()(Code)



getJDBCURL
public String getJDBCURL()(Code)



getJDBCUser
public String getJDBCUser()(Code)



getJNDIName
public String getJNDIName()(Code)
Gets the JNDI name this pool is bound to. Only valid if you used setJNDIName to bind it.
See Also:   JDBCPoolDataSource.setJNDIName



getLogWriter
public PrintWriter getLogWriter() throws java.sql.SQLException(Code)
Gets a log writer used to record pool events.



getLoginTimeout
public int getLoginTimeout() throws java.sql.SQLException(Code)
This property is not used by this implementation.



getMaxIdleTimeoutPercent
public float getMaxIdleTimeoutPercent()(Code)



getMaxSize
public int getMaxSize()(Code)



getMinSize
public int getMinSize()(Code)



getObjectInstance
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment)(Code)
Decodes a reference to a specific pool data source.



getPoolName
public String getPoolName()(Code)



getPoolStatus
public String getPoolStatus()(Code)
Returns a string describing the pool status (number of connections created, used, and maximum).



getReference
public Reference getReference()(Code)
Gets a reference to this data source.



initialize
public void initialize()(Code)
Initializes the pool. You need to have configured all the pool and JDBC properties first.



isBlocking
public boolean isBlocking()(Code)



isGCEnabled
public boolean isGCEnabled()(Code)



isIdleTimeoutEnabled
public boolean isIdleTimeoutEnabled()(Code)



isInvalidateOnError
public boolean isInvalidateOnError()(Code)



isTimestampUsed
public boolean isTimestampUsed()(Code)



setBlocking
public void setBlocking(boolean blocking)(Code)



setGCEnabled
public void setGCEnabled(boolean allowGC)(Code)



setGCInterval
public void setGCInterval(long millis)(Code)



setGCMinIdleTime
public void setGCMinIdleTime(long millis)(Code)



setIdleTimeout
public void setIdleTimeout(long millis)(Code)



setIdleTimeoutEnabled
public void setIdleTimeoutEnabled(boolean allowShrinking)(Code)



setInvalidateOnError
public void setInvalidateOnError(boolean invalidate)(Code)



setJDBCPassword
public void setJDBCPassword(String password)(Code)



setJDBCProperties
public void setJDBCProperties(Properties props)(Code)



setJDBCURL
public void setJDBCURL(String url)(Code)



setJDBCUser
public void setJDBCUser(String user)(Code)



setJNDIName
public void setJNDIName(String name) throws NamingException(Code)
If you use this to set a JNDI name, this pool will be bound to that name using the default InitialContext. You can also do this manually if you have additional requirements.



setLogWriter
public void setLogWriter(PrintWriter writer) throws java.sql.SQLException(Code)
Sets a log writer used to record pool events.



setLoginTimeout
public void setLoginTimeout(int timeout) throws java.sql.SQLException(Code)
This property is not used by this implementation.



setMaxIdleTimeoutPercent
public void setMaxIdleTimeoutPercent(float percent)(Code)



setMaxSize
public void setMaxSize(int size)(Code)



setMinSize
public void setMinSize(int size)(Code)



setPoolName
public void setPoolName(String name)(Code)



setProperties
public void setProperties(String props)(Code)



setTimestampUsed
public void setTimestampUsed(boolean timestamp)(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.