Java Doc for StandardXAPoolDataSource.java in  » Database-JDBC-Connection-Pool » xapool » org » enhydra » jdbc » pool » 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 » Database JDBC Connection Pool » xapool » org.enhydra.jdbc.pool 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.enhydra.jdbc.pool.StandardPoolDataSource
   org.enhydra.jdbc.pool.StandardXAPoolDataSource

StandardXAPoolDataSource
public class StandardXAPoolDataSource extends StandardPoolDataSource (Code)
StandardXAPoolDataSource class allows to make some operations on XAConnection. It implements PoolHelper for the 3 methods :

create : create an XAConnection

create(user,password) : create a PooledConnection with an other user/password

testThisObject : check if the object is still valid

checkThisObject : check if the object is closed

expire : kill the object



Field Summary
public  Logglog
    
public  TransactionManagertransactionManager
    
public  StringtransactionManagerName
    
public  XADataSourcexads
    

Constructor Summary
public  StandardXAPoolDataSource()
    
public  StandardXAPoolDataSource(int initSize)
    
public  StandardXAPoolDataSource(StandardXADataSource ds)
    
public  StandardXAPoolDataSource(StandardXADataSource ds, int initSize)
    

Method Summary
public  voidconnectionClosed(ConnectionEvent event)
    
public  GenerationObjectcreate(String _user, String _password)
    
public  XADataSourcegetDataSource()
     Getter for property dataSource.
public  ObjectgetObjectInstance(Object refObj, Name name, Context nameCtx, Hashtable env)
    
public  ReferencegetReference()
     Retrieves the Reference of this object.
public  voidsetDataSource(XADataSource dataSource)
     Setter for property dataSource.
public  voidsetTransactionManager(TransactionManager tm)
    
public  voidsetTransactionManagerName(String tmName)
    
public  booleantestThisObject(Object o)
     This method tests if a connection is valid or not.
public  StringtoString()
    

Field Detail
glog
public Log glog(Code)



transactionManager
public TransactionManager transactionManager(Code)



transactionManagerName
public String transactionManagerName(Code)



xads
public XADataSource xads(Code)




Constructor Detail
StandardXAPoolDataSource
public StandardXAPoolDataSource()(Code)
Constructor



StandardXAPoolDataSource
public StandardXAPoolDataSource(int initSize)(Code)
Constructor



StandardXAPoolDataSource
public StandardXAPoolDataSource(StandardXADataSource ds)(Code)
Constructor



StandardXAPoolDataSource
public StandardXAPoolDataSource(StandardXADataSource ds, int initSize)(Code)
Constructor




Method Detail
connectionClosed
public void connectionClosed(ConnectionEvent event)(Code)
Invoked when the application calls close() on its representation of the connection



create
public GenerationObject create(String _user, String _password) throws SQLException(Code)



getDataSource
public XADataSource getDataSource()(Code)
Getter for property dataSource. Value of property dataSource.



getObjectInstance
public Object getObjectInstance(Object refObj, Name name, Context nameCtx, Hashtable env) throws Exception(Code)



getReference
public Reference getReference() throws NamingException(Code)
Retrieves the Reference of this object. Used at binding time by JNDI to build a reference on this object. The non-null Reference of this object.
exception:
  NamingException - If a naming exception was encountered whileretrieving the reference.



setDataSource
public void setDataSource(XADataSource dataSource)(Code)
Setter for property dataSource.
Parameters:
  dataSource - New value of property dataSource.



setTransactionManager
public void setTransactionManager(TransactionManager tm)(Code)



setTransactionManagerName
public void setTransactionManagerName(String tmName)(Code)



testThisObject
public boolean testThisObject(Object o)(Code)
This method tests if a connection is valid or not. It overrides the method in StandardPoolDataSource to take into account global transactions: if global transaction is in progress - suspend it so that connection testing happens ouside of transaction. If connection testing fails - it will not affect transaction and next good connection can join the transaction



toString
public String toString()(Code)



Fields inherited from org.enhydra.jdbc.pool.StandardPoolDataSource
public ConnectionPoolDataSource cpds(Code)(Java Doc)
public String dataSourceName(Code)(Java Doc)
public Log glog(Code)(Java Doc)
public Context ictx(Code)(Java Doc)
public String jdbcTestStmt(Code)(Java Doc)
public boolean onOff(Code)(Java Doc)
public GenericPool pool(Code)(Java Doc)

Methods inherited from org.enhydra.jdbc.pool.StandardPoolDataSource
public boolean checkThisObject(Object o)(Code)(Java Doc)
public void connectionClosed(ConnectionEvent event)(Code)(Java Doc)
public void connectionErrorOccurred(ConnectionEvent event)(Code)(Java Doc)
public GenerationObject create() throws SQLException(Code)(Java Doc)
public GenerationObject create(String _user, String _password) throws SQLException(Code)(Java Doc)
public void expire(Object o)(Code)(Java Doc)
public void fullRemoveLockedObject(GenerationObject obj)(Code)(Java Doc)
public int getCheckLevelObject()(Code)(Java Doc)
public Connection getConnection() throws SQLException(Code)(Java Doc)
public Connection getConnection(String _user, String _password) throws SQLException(Code)(Java Doc)
public String getDataSourceName()(Code)(Java Doc)
public long getDeadLockMaxWait()(Code)(Java Doc)
public long getDeadLockRetryWait()(Code)(Java Doc)
public int getGeneration()(Code)(Java Doc)
public String getJdbcTestStmt()(Code)(Java Doc)
public long getLifeTime()(Code)(Java Doc)
public int getLockedObjectCount()(Code)(Java Doc)
public PrintWriter getLogWriter()(Code)(Java Doc)
public long getMaxLifeTime()(Code)(Java Doc)
public int getMaxSize()(Code)(Java Doc)
public int getMinSize()(Code)(Java Doc)
public Object getObjectInstance(Object refObj, Name name, Context nameCtx, Hashtable env) throws Exception(Code)(Java Doc)
public GenericPool getPool()(Code)(Java Doc)
public Reference getReference() throws NamingException(Code)(Java Doc)
public long getSleepTime()(Code)(Java Doc)
public int getUnlockedObjectCount()(Code)(Java Doc)
public GenericPool getUsedPool()(Code)(Java Doc)
public boolean isGC()(Code)(Java Doc)
public void removeUnlockedObject(GenerationObject obj)(Code)(Java Doc)
public void setCheckLevelObject(int checkLevelObject)(Code)(Java Doc)
public void setDataSourceName(String dataSourceName)(Code)(Java Doc)
public void setDeadLockMaxWait(long deadLock)(Code)(Java Doc)
public void setDeadLockRetryWait(long loopWait)(Code)(Java Doc)
public void setDebug(boolean debug)(Code)(Java Doc)
public void setGC(boolean gc)(Code)(Java Doc)
public void setGeneration(int generation)(Code)(Java Doc)
public void setJdbcTestStmt(String jdbcTestStmt)(Code)(Java Doc)
public void setLifeTime(long lifeTime)(Code)(Java Doc)
public void setLogWriter(PrintWriter logWriter)(Code)(Java Doc)
public void setMaxLifeTime(long maxLifeTime)(Code)(Java Doc)
public void setMaxSize(int maxSize) throws Exception(Code)(Java Doc)
public void setMinSize(int minSize) throws Exception(Code)(Java Doc)
public void setSleepTime(long sleepTime)(Code)(Java Doc)
public void setThreadFactory(JdbcThreadFactory tf)(Code)(Java Doc)
public void shutdown(boolean force)(Code)(Java Doc)
public void stopPool()(Code)(Java Doc)
public boolean testThisObject(Object o)(Code)(Java Doc)
public String toString()(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.