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


java.lang.Object
   org.ofbiz.minerva.pool.jdbc.xa.wrapper.XADataSourceImpl

XADataSourceImpl
public class XADataSourceImpl implements XADataSource(Code)
Transactional DataSource wrapper for JDBC 1.0 drivers. This is very lightweight - it just passes requests through to an underlying driver, and wraps the results with an XAConnection. The XAConnection and corresponding XAResource are responsible for closing the connection when appropriate. Note that the underlying driver may perform pooling, but need not. This class does not add any pooling capabilities.
author:
   Aaron Mulder (ammulder@alumni.princeton.edu)



Constructor Summary
public  XADataSourceImpl()
     Empty constructure for beans, reflection, etc.
public  XADataSourceImpl(String url, Properties properties)
     Specifies the URL and properties to connect to the underlying driver.

Method Summary
public  PrintWritergetLogWriter()
     Gets the log writer used to record when XAConnections are opened.
public  intgetLoginTimeout()
     This is not used by the current implementation, since the effect would differ depending on the underlying driver.
public  StringgetPassword()
     Gets the JDBC password used to open an underlying connection.
public  PropertiesgetProperties()
     Gets the JDBC properties used to open an underlying connection.
public  booleangetSaveStackTrace()
     Have XAClientConnections save a stack trace on creation This is useful for debugging non-closed connections.
public  StringgetURL()
     Gets the JDBC URL used to open an underlying connection.
public  StringgetUser()
     Gets the JDBC user name used to open an underlying connection.
public  XAConnectiongetXAConnection()
     Gets an XAConnection.
public  XAConnectiongetXAConnection(String user, String password)
     Gets an XAConnection.
public  voidsetDriver(String driverName)
    
public  voidsetLogWriter(PrintWriter writer)
     Sets a log writer used to record when XAConnections are opened.
public  voidsetLoginTimeout(int timeout)
     This is not used by the current implementation, since the effect would differ depending on the underlying driver.
public  voidsetPassword(String password)
     Sets the JDBC password used to open an underlying connection.
public  voidsetProperties(Properties properties)
     Sets the JDBC properties used to open an underlying connection.
public  voidsetSaveStackTrace(boolean save)
    
public  voidsetURL(String url)
     Sets the JDBC URL used to open an underlying connection.
public  voidsetUser(String user)
     Sets the JDBC user name used to open an underlying connection.


Constructor Detail
XADataSourceImpl
public XADataSourceImpl()(Code)
Empty constructure for beans, reflection, etc.



XADataSourceImpl
public XADataSourceImpl(String url, Properties properties)(Code)
Specifies the URL and properties to connect to the underlying driver. If the properties are null, they will not be used.




Method Detail
getLogWriter
public PrintWriter getLogWriter() throws SQLException(Code)
Gets the log writer used to record when XAConnections are opened.



getLoginTimeout
public int getLoginTimeout() throws SQLException(Code)
This is not used by the current implementation, since the effect would differ depending on the underlying driver.



getPassword
public String getPassword()(Code)
Gets the JDBC password used to open an underlying connection.



getProperties
public Properties getProperties()(Code)
Gets the JDBC properties used to open an underlying connection.



getSaveStackTrace
public boolean getSaveStackTrace()(Code)
Have XAClientConnections save a stack trace on creation This is useful for debugging non-closed connections. It must be used with ReleaseOnCommit option



getURL
public String getURL()(Code)
Gets the JDBC URL used to open an underlying connection.



getUser
public String getUser()(Code)
Gets the JDBC user name used to open an underlying connection.



getXAConnection
public XAConnection getXAConnection() throws SQLException(Code)
Gets an XAConnection. This first gets a java.sql.Connection from the underlying driver, and then wraps it in an XAConnection and XAResource. This uses the URL, user, password, and properties (or as many as you have specified) to make the connection.



getXAConnection
public XAConnection getXAConnection(String user, String password) throws SQLException(Code)
Gets an XAConnection. This first gets a java.sql.Connection from the underlying driver, and then wraps it in an XAConnection and XAResource. Note that we never change the default userid and password, but instead only set the userid and password for this one connection.



setDriver
public void setDriver(String driverName)(Code)



setLogWriter
public void setLogWriter(PrintWriter writer) throws SQLException(Code)
Sets a log writer used to record when XAConnections are opened.



setLoginTimeout
public void setLoginTimeout(int timeout) throws SQLException(Code)
This is not used by the current implementation, since the effect would differ depending on the underlying driver.



setPassword
public void setPassword(String password)(Code)
Sets the JDBC password used to open an underlying connection. This is optional - use it only if your underlying driver requires it.



setProperties
public void setProperties(Properties properties)(Code)
Sets the JDBC properties used to open an underlying connection. This is optional - use it only if your underlying driver requires it.



setSaveStackTrace
public void setSaveStackTrace(boolean save)(Code)



setURL
public void setURL(String url)(Code)
Sets the JDBC URL used to open an underlying connection.



setUser
public void setUser(String user)(Code)
Sets the JDBC user name used to open an underlying connection. This is optional - use it only if your underlying driver requires it.



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)

ww_w.__j___a__va_2__s.__co__m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.