Java Doc for DriverConfig.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » sql » 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 » EJB Server resin 3.1.5 » resin » com.caucho.sql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.sql.DriverConfig

DriverConfig
public class DriverConfig (Code)
Configures the database driver.


Field Summary
final public static  StringPROPERTY_PASSWORD
     The key used to look into the properties passed to the connect method to find the password.
final public static  StringPROPERTY_USER
     The key used to look into the properties passed to the connect method to find the username.
final protected static  Loggerlog
    

Constructor Summary
public  DriverConfig(DBPoolImpl pool)
     Null constructor for the Driver interface; called by the JNDI configuration.

Method Summary
public  voidaddBuilderProgram(ConfigProgram program)
     Adds to the builder program.
 ConnectioncreateDriverConnection(String user, String password)
     Creates a connection.
 PooledConnectioncreatePooledConnection(String user, String password)
     Creates a connection.
public  ProfilerPointConfigcreateProfilerPoint()
     Configure a ProfilerPointConfig, used to create a ProfilerPoint that is then passed to setProfiler().
public  longgetConnectionCountTotal()
     Returns the total number of connections made.
public  longgetConnectionFailCountTotal()
    
public  DBPoolImplgetDBPool()
     Returns the DBPool.
public  DrivergetDriver()
     Returns the driver object.
public  ClassgetDriverClass()
     Returns the JDBC driver class for the pooled object.
synchronized  ObjectgetDriverObject()
     Returns the driver object configured for the database.
public  PropertiesgetInfo()
     Returns the properties.
public  longgetLastFailTime()
    
 LifecyclegetLifecycle()
    
public  ManagedConnectionFactorygetManagedConnectionFactory()
     Returns the managed connection factory.
public  StringgetPassword()
    
public  ConnectionPoolDataSourcegetPoolDataSource()
     Returns the driver pool.
public  StringgetType()
    
public  StringgetURL()
     Returns the connection's JDBC url.
public  StringgetUser()
     Returns the connection's user.
public  XADataSourcegetXADataSource()
     Returns any XADataSource.
public  voidinit()
    
synchronized  voidinitDataSource(boolean isTransactional, boolean isSpy)
     Initialize the pool's data source
  • If data-source is set, look it up in JNDI.
public  voidinitDriver()
     Initializes the JDBC driver.
public  booleanisLocalTransaction()
     Returns true if the driver is XA enabled.
public  booleanisXATransaction()
     Returns true if the driver is XA enabled.
public  voidsetDataSource(Object dataSource)
     Sets the driver as data source.
public  voidsetDriver(Driver driver)
     Sets the driver object.
public  voidsetDriverType(String type)
     Sets the driver as data source.
public  voidsetInitParam(InitParam initParam)
     Sets a property from the underlying driver.
public  voidsetInitParam(String key, String value)
     Sets a property from the underlying driver.
public  voidsetPassword(String password)
    
public  voidsetPoolDataSource(ConnectionPoolDataSource pDataSource)
     Sets the pooled data source driver.
public  voidsetProfilerPoint(ProfilerPoint profilerPoint)
     Enables profiling for this driver.
public  voidsetType(Class driverClass)
     Sets the JDBC driver class underlying the pooled object.
public  voidsetURL(String url)
     Sets the connection's JDBC url.
public  voidsetUser(String user)
     Sets the connection's user.
public  voidsetXADataSource(XADataSource xaDataSource)
     Sets the xa data source driver.
 booleanstart()
    
 booleanstop()
    
public  StringtoString()
     Returns a string description of the pool.

Field Detail
PROPERTY_PASSWORD
final public static String PROPERTY_PASSWORD(Code)
The key used to look into the properties passed to the connect method to find the password.



PROPERTY_USER
final public static String PROPERTY_USER(Code)
The key used to look into the properties passed to the connect method to find the username.



log
final protected static Logger log(Code)




Constructor Detail
DriverConfig
public DriverConfig(DBPoolImpl pool)(Code)
Null constructor for the Driver interface; called by the JNDI configuration. Applications should not call this directly.




Method Detail
addBuilderProgram
public void addBuilderProgram(ConfigProgram program)(Code)
Adds to the builder program.



createDriverConnection
Connection createDriverConnection(String user, String password) throws SQLException(Code)
Creates a connection.



createPooledConnection
PooledConnection createPooledConnection(String user, String password) throws SQLException(Code)
Creates a connection.



createProfilerPoint
public ProfilerPointConfig createProfilerPoint()(Code)
Configure a ProfilerPointConfig, used to create a ProfilerPoint that is then passed to setProfiler(). The returned ProfilerPointConfig has a default name set to the URL of this driver,



getConnectionCountTotal
public long getConnectionCountTotal()(Code)
Returns the total number of connections made.



getConnectionFailCountTotal
public long getConnectionFailCountTotal()(Code)
Returns the total number of failing connections



getDBPool
public DBPoolImpl getDBPool()(Code)
Returns the DBPool.



getDriver
public Driver getDriver() throws SQLException(Code)
Returns the driver object.



getDriverClass
public Class getDriverClass()(Code)
Returns the JDBC driver class for the pooled object.



getDriverObject
synchronized Object getDriverObject() throws SQLException(Code)
Returns the driver object configured for the database.



getInfo
public Properties getInfo()(Code)
Returns the properties.



getLastFailTime
public long getLastFailTime()(Code)
Returns the time of the last connection



getLifecycle
Lifecycle getLifecycle()(Code)



getManagedConnectionFactory
public ManagedConnectionFactory getManagedConnectionFactory()(Code)
Returns the managed connection factory.



getPassword
public String getPassword()(Code)
Returns the connection's password



getPoolDataSource
public ConnectionPoolDataSource getPoolDataSource() throws SQLException(Code)
Returns the driver pool.



getType
public String getType()(Code)



getURL
public String getURL()(Code)
Returns the connection's JDBC url.



getUser
public String getUser()(Code)
Returns the connection's user.



getXADataSource
public XADataSource getXADataSource()(Code)
Returns any XADataSource.



init
public void init()(Code)



initDataSource
synchronized void initDataSource(boolean isTransactional, boolean isSpy) throws SQLException(Code)
Initialize the pool's data source
  • If data-source is set, look it up in JNDI.
  • Else if the driver is a pooled or xa data source, use it.
  • Else create wrappers.



initDriver
public void initDriver() throws SQLException(Code)
Initializes the JDBC driver.



isLocalTransaction
public boolean isLocalTransaction()(Code)
Returns true if the driver is XA enabled.



isXATransaction
public boolean isXATransaction()(Code)
Returns true if the driver is XA enabled.



setDataSource
public void setDataSource(Object dataSource) throws ConfigException(Code)
Sets the driver as data source.



setDriver
public void setDriver(Driver driver) throws SQLException(Code)
Sets the driver object.



setDriverType
public void setDriverType(String type) throws ConfigException(Code)
Sets the driver as data source.



setInitParam
public void setInitParam(InitParam initParam)(Code)
Sets a property from the underlying driver. Used to set driver properties not handled by DBPool.
Parameters:
  name - property name for the driver
Parameters:
  value - the driver's value of the property name



setInitParam
public void setInitParam(String key, String value)(Code)
Sets a property from the underlying driver. Used to set driver properties not handled by DBPool.
Parameters:
  name - property name for the driver
Parameters:
  value - the driver's value of the property name



setPassword
public void setPassword(String password)(Code)
Sets the connection's password



setPoolDataSource
public void setPoolDataSource(ConnectionPoolDataSource pDataSource) throws SQLException(Code)
Sets the pooled data source driver.



setProfilerPoint
public void setProfilerPoint(ProfilerPoint profilerPoint)(Code)
Enables profiling for this driver.



setType
public void setType(Class driverClass) throws ConfigException(Code)
Sets the JDBC driver class underlying the pooled object.



setURL
public void setURL(String url)(Code)
Sets the connection's JDBC url.



setUser
public void setUser(String user)(Code)
Sets the connection's user.



setXADataSource
public void setXADataSource(XADataSource xaDataSource) throws SQLException(Code)
Sets the xa data source driver.



start
boolean start()(Code)



stop
boolean stop()(Code)



toString
public String toString()(Code)
Returns a string description of the pool.



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.