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


org.enhydra.jdbc.standard.StandardDataSource
   org.enhydra.jdbc.standard.StandardConnectionPoolDataSource
      org.enhydra.jdbc.standard.StandardXADataSource

All known Subclasses:   org.enhydra.jdbc.instantdb.IdbXADataSource,  org.enhydra.jdbc.informix.InformixXADataSource,  org.enhydra.jdbc.sybase.SybaseXADataSource,  org.enhydra.jdbc.oracle.OracleXADataSource,
StandardXADataSource
public class StandardXADataSource extends StandardConnectionPoolDataSource implements XADataSource(Code)
Data source for creating StandardXAConnections.


Field Summary
final public static  longDEFAULT_DEADLOCKMAXWAIT
    
final public static  intDEFAULT_DEADLOCKRETRYWAIT
    
final public static  intDEFAULT_MAX_CON
    
final public static  intDEFAULT_MIN_CON
    
public  intconnectionCount
    
 HashtabledeadConnections
    
public  longdeadLockMaxWait
    
public  longdeadLockRetryWait
    
 VectorfreeConnections
    
public  intmaxCon
    
public  intminCon
    
public transient  TransactionManagertransactionManager
    
 HashtablexidConnections
    

Constructor Summary
public  StandardXADataSource()
    

Method Summary
synchronized  longcheckTimeouts(long curTime)
     Invoked by the timer thread to check all transactions for timeouts.
public  voidcloseFreeConnection()
    
synchronized  voidconnectionClosed()
     Called when an XA connection gets closed.
public  voiddump()
    
public synchronized  voidfreeConnection(Xid id, boolean placeAtStart)
     Frees a connection to make it eligible for reuse.
public  intgetAllConnections()
    
synchronized  StandardXAStatefulConnectiongetConnection(Xid xid, boolean mustFind)
     Returns the connection associated with a given XID.
public  intgetConnectionCount()
    
public  longgetDeadLockMaxWait()
    
public  longgetDeadLockRetryWait()
    
synchronized  StandardXAStatefulConnectiongetFreeConnection()
     Returns a connection from the free list, removing it in the process.
public  intgetMaxCon()
    
public  intgetMinCon()
    
public  ObjectgetObjectInstance(Object refObj, Name name, Context nameCtx, Hashtable env)
    
public  ReferencegetReference()
    
public  TransactionManagergetTransactionManager()
    
public  XAConnectiongetXAConnection()
     Creates an XA connection using the default username and password.
public synchronized  XAConnectiongetXAConnection(String user, String password)
     Creates an XA connection using the supplied username and password.
public  HashtablegetXidConnections()
    
public  intgetXidCount()
     Returns the number of connections that are either prepared or heuristically completed.
public synchronized  voidprocessToWait()
    
 Xid[]recover()
     Constructs a list of all prepared connections' xids.
public  voidsetDeadLockMaxWait(long deadLock)
    
public  voidsetDeadLockRetryWait(long deadLockRetryWait)
    
public  voidsetDriverName(String driverName)
    
public  voidsetMaxCon(int max)
    
public  voidsetMinCon(int min)
    
public  voidsetPassword(String password)
    
public  voidsetTransactionManager(TransactionManager tm)
    
public  voidsetTransactionManagerName(String tmName)
    
public  voidsetUrl(String url)
    
public  voidsetUser(String user)
    
public  StringtoString()
    

Field Detail
DEFAULT_DEADLOCKMAXWAIT
final public static long DEFAULT_DEADLOCKMAXWAIT(Code)



DEFAULT_DEADLOCKRETRYWAIT
final public static int DEFAULT_DEADLOCKRETRYWAIT(Code)



DEFAULT_MAX_CON
final public static int DEFAULT_MAX_CON(Code)



DEFAULT_MIN_CON
final public static int DEFAULT_MIN_CON(Code)



connectionCount
public int connectionCount(Code)



deadConnections
Hashtable deadConnections(Code)



deadLockMaxWait
public long deadLockMaxWait(Code)



deadLockRetryWait
public long deadLockRetryWait(Code)



freeConnections
Vector freeConnections(Code)



maxCon
public int maxCon(Code)



minCon
public int minCon(Code)



transactionManager
public transient TransactionManager transactionManager(Code)



xidConnections
Hashtable xidConnections(Code)




Constructor Detail
StandardXADataSource
public StandardXADataSource()(Code)
Constructor




Method Detail
checkTimeouts
synchronized long checkTimeouts(long curTime) throws SQLException(Code)
Invoked by the timer thread to check all transactions for timeouts. Returns the time of the next timeout event after current timeouts have expired.



closeFreeConnection
public void closeFreeConnection()(Code)



connectionClosed
synchronized void connectionClosed() throws SQLException(Code)
Called when an XA connection gets closed. When they have all been closed then any remaining physical connections are also closed.



dump
public void dump()(Code)



freeConnection
public synchronized void freeConnection(Xid id, boolean placeAtStart)(Code)
Frees a connection to make it eligible for reuse. The free list is normally a last in, first out list (LIFO). This is efficient. However, timed out connections are nice to hang onto for error reporting, so they can be placed at the start. This is less efficient, but hopefully is a rare occurence. Here, no need to verify the number of connections, we remove an object from the xidConnections to put it in th freeConnections



getAllConnections
public int getAllConnections()(Code)



getConnection
synchronized StandardXAStatefulConnection getConnection(Xid xid, boolean mustFind) throws XAException(Code)
Returns the connection associated with a given XID. is reached, the Xid is found or an exception is thrown.



getConnectionCount
public int getConnectionCount()(Code)



getDeadLockMaxWait
public long getDeadLockMaxWait()(Code)



getDeadLockRetryWait
public long getDeadLockRetryWait()(Code)



getFreeConnection
synchronized StandardXAStatefulConnection getFreeConnection() throws SQLException(Code)
Returns a connection from the free list, removing it in the process. If none area available then a new connection is created.



getMaxCon
public int getMaxCon()(Code)



getMinCon
public int getMinCon()(Code)



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



getReference
public Reference getReference() throws NamingException(Code)



getTransactionManager
public TransactionManager getTransactionManager()(Code)



getXAConnection
public XAConnection getXAConnection() throws SQLException(Code)
Creates an XA connection using the default username and password.



getXAConnection
public synchronized XAConnection getXAConnection(String user, String password) throws SQLException(Code)
Creates an XA connection using the supplied username and password.



getXidConnections
public Hashtable getXidConnections()(Code)



getXidCount
public int getXidCount()(Code)
Returns the number of connections that are either prepared or heuristically completed.



processToWait
public synchronized void processToWait() throws Exception(Code)



recover
Xid[] recover()(Code)
Constructs a list of all prepared connections' xids.



setDeadLockMaxWait
public void setDeadLockMaxWait(long deadLock)(Code)



setDeadLockRetryWait
public void setDeadLockRetryWait(long deadLockRetryWait)(Code)



setDriverName
public void setDriverName(String driverName) throws SQLException(Code)



setMaxCon
public void setMaxCon(int max)(Code)



setMinCon
public void setMinCon(int min)(Code)



setPassword
public void setPassword(String password)(Code)



setTransactionManager
public void setTransactionManager(TransactionManager tm)(Code)



setTransactionManagerName
public void setTransactionManagerName(String tmName)(Code)



setUrl
public void setUrl(String url)(Code)



setUser
public void setUser(String user)(Code)



toString
public String toString()(Code)



Fields inherited from org.enhydra.jdbc.standard.StandardConnectionPoolDataSource
final public static int DEFAULT_PREPAREDSTMTCACHESIZE(Code)(Java Doc)
int preparedStmtCacheSize(Code)(Java Doc)

Methods inherited from org.enhydra.jdbc.standard.StandardConnectionPoolDataSource
public Hashtable getMasterPrepStmtCache()(Code)(Java Doc)
public PooledConnection getPooledConnection() throws SQLException(Code)(Java Doc)
public synchronized PooledConnection getPooledConnection(String user, String password) throws SQLException(Code)(Java Doc)
public int getPreparedStmtCacheSize()(Code)(Java Doc)
public void setPreparedStmtCacheSize(int value)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Fields inherited from org.enhydra.jdbc.standard.StandardDataSource
transient Driver driver(Code)(Java Doc)
String driverName(Code)(Java Doc)
String url(Code)(Java Doc)

Methods inherited from org.enhydra.jdbc.standard.StandardDataSource
public boolean equals(Object obj)(Code)(Java Doc)
public synchronized Connection getConnection() throws SQLException(Code)(Java Doc)
public synchronized Connection getConnection(String u, String p) throws SQLException(Code)(Java Doc)
public String getDriverName()(Code)(Java Doc)
public Object getObjectInstance(Object refObj, Name name, Context nameCtx, Hashtable env) throws Exception(Code)(Java Doc)
public Reference getReference() throws NamingException(Code)(Java Doc)
public int getTransactionIsolation()(Code)(Java Doc)
public String getUrl()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public void setDriverName(String driverName) throws SQLException(Code)(Java Doc)
public void setTransactionIsolation(int level)(Code)(Java Doc)
public void setUrl(String url)(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.