Java Doc for BaseWrapperManagedConnectionFactory.java in  » EJB-Server-JBoss-4.2.1 » connector » org » jboss » resource » adapter » 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 » EJB Server JBoss 4.2.1 » connector » org.jboss.resource.adapter.jdbc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnectionFactory

All known Subclasses:   org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory,  org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory,
BaseWrapperManagedConnectionFactory
abstract public class BaseWrapperManagedConnectionFactory implements ManagedConnectionFactory,ValidatingManagedConnectionFactory,Serializable(Code)
BaseWrapperManagedConnectionFactory
author:
   David Jencks
author:
   Adrian Brock
author:
   Weston Price
version:
   $Revision: 57189 $

Inner Class :static class SubjectActions implements PrivilegedAction

Field Summary
final public static  StringTRACK_STATEMENTS_FALSE
    
final public static  intTRACK_STATEMENTS_FALSE_INT
    
final public static  StringTRACK_STATEMENTS_NOWARN
    
final public static  intTRACK_STATEMENTS_NOWARN_INT
    
final public static  StringTRACK_STATEMENTS_TRUE
    
final public static  intTRACK_STATEMENTS_TRUE_INT
    
protected  StringcheckValidConnectionSQL
     The variable checkValidConnectionSQL holds an sql statement that may be executed whenever a managed connection is removed from the pool, to check that it is still valid.
protected  ValidConnectionCheckerconnectionChecker
    
final protected  PropertiesconnectionProps
    
protected  booleandoQueryTimeout
    
protected  booleanisTransactionQueryTimeout
    
final protected  Loggerlog
    
protected  StringnewConnectionSQL
     The variable newConnectionSQL holds an SQL statement which if not null is executed when a new Connection is obtained for a new ManagedConnection.
protected  Stringpassword
    
protected  intpreparedStatementCacheSize
    
protected  intqueryTimeout
    
final static  longserialVersionUID
    
protected  booleansharePS
    
protected  inttrackStatements
    
protected  inttransactionIsolation
    
protected  StringuserName
    
protected  StringvalidConnectionCheckerClassName
    

Constructor Summary
public  BaseWrapperManagedConnectionFactory()
    

Method Summary
public  ObjectcreateConnectionFactory(ConnectionManager cm)
    
public  ObjectcreateConnectionFactory()
    
public  StringgetCheckValidConnectionSQL()
    
protected  PropertiesgetConnectionProperties(Subject subject, ConnectionRequestInfo cri)
     Gets full set of connection properties, i.e.
public  StringgetExceptionSorterClassName()
    
public  SetgetInvalidConnections(Set connectionSet)
    
public  PrintWritergetLogWriter()
    
public  StringgetNewConnectionSQL()
    
public  StringgetPassword()
    
public  intgetPreparedStatementCacheSize()
    
public  intgetQueryTimeout()
    
public  booleangetSharePreparedStatements()
    
public  StringgetTrackStatements()
    
public  StringgetTransactionIsolation()
    
public  StringgetUserName()
    
public  StringgetValidConnectionCheckerClassName()
    
public  booleangetValidateOnMatch()
    
 booleanisExceptionFatal(SQLException e)
    
public  booleanisTransactionQueryTimeout()
    
 SQLExceptionisValidConnection(Connection c)
    
public  voidsetCheckValidConnectionSQL(String checkValidConnectionSQL)
    
public  voidsetExceptionSorterClassName(String exceptionSorterClassName)
    
public  voidsetLogWriter(PrintWriter param1)
    
public  voidsetNewConnectionSQL(String newConnectionSQL)
    
public  voidsetPassword(String password)
    
public  voidsetPreparedStatementCacheSize(int size)
    
public  voidsetQueryTimeout(int timeout)
    
public  voidsetSharePreparedStatements(boolean sharePS)
    
public  voidsetTrackStatements(String value)
    
public  voidsetTransactionIsolation(String transactionIsolation)
    
public  voidsetTransactionQueryTimeout(boolean value)
    
public  voidsetUserName(String userName)
    
public  voidsetValidConnectionCheckerClassName(String value)
    
public  voidsetValidateOnMatch(boolean validateOnMatch)
    

Field Detail
TRACK_STATEMENTS_FALSE
final public static String TRACK_STATEMENTS_FALSE(Code)



TRACK_STATEMENTS_FALSE_INT
final public static int TRACK_STATEMENTS_FALSE_INT(Code)



TRACK_STATEMENTS_NOWARN
final public static String TRACK_STATEMENTS_NOWARN(Code)



TRACK_STATEMENTS_NOWARN_INT
final public static int TRACK_STATEMENTS_NOWARN_INT(Code)



TRACK_STATEMENTS_TRUE
final public static String TRACK_STATEMENTS_TRUE(Code)



TRACK_STATEMENTS_TRUE_INT
final public static int TRACK_STATEMENTS_TRUE_INT(Code)



checkValidConnectionSQL
protected String checkValidConnectionSQL(Code)
The variable checkValidConnectionSQL holds an sql statement that may be executed whenever a managed connection is removed from the pool, to check that it is still valid. This requires setting up an mbean to execute it when notified by the ConnectionManager.



connectionChecker
protected ValidConnectionChecker connectionChecker(Code)
The instance of the valid connection checker



connectionProps
final protected Properties connectionProps(Code)



doQueryTimeout
protected boolean doQueryTimeout(Code)



isTransactionQueryTimeout
protected boolean isTransactionQueryTimeout(Code)



log
final protected Logger log(Code)



newConnectionSQL
protected String newConnectionSQL(Code)
The variable newConnectionSQL holds an SQL statement which if not null is executed when a new Connection is obtained for a new ManagedConnection.



password
protected String password(Code)



preparedStatementCacheSize
protected int preparedStatementCacheSize(Code)



queryTimeout
protected int queryTimeout(Code)



serialVersionUID
final static long serialVersionUID(Code)

since:
   4.0.1



sharePS
protected boolean sharePS(Code)
Whether to share cached prepared statements



trackStatements
protected int trackStatements(Code)



transactionIsolation
protected int transactionIsolation(Code)



userName
protected String userName(Code)



validConnectionCheckerClassName
protected String validConnectionCheckerClassName(Code)
The classname used to check whether a connection is valid




Constructor Detail
BaseWrapperManagedConnectionFactory
public BaseWrapperManagedConnectionFactory()(Code)




Method Detail
createConnectionFactory
public Object createConnectionFactory(ConnectionManager cm) throws ResourceException(Code)



createConnectionFactory
public Object createConnectionFactory() throws ResourceException(Code)



getCheckValidConnectionSQL
public String getCheckValidConnectionSQL()(Code)



getConnectionProperties
protected Properties getConnectionProperties(Subject subject, ConnectionRequestInfo cri) throws ResourceException(Code)
Gets full set of connection properties, i.e. whatever is provided in config plus "user" and "password" from subject/cri.

Note that the set is used to match connections to datasources as well as to create new managed connections.

In fact, we have a problem here. Theoretically, there is a possible name collision between config properties and "user"/"password".




getExceptionSorterClassName
public String getExceptionSorterClassName()(Code)



getInvalidConnections
public Set getInvalidConnections(Set connectionSet) throws ResourceException(Code)



getLogWriter
public PrintWriter getLogWriter() throws ResourceException(Code)



getNewConnectionSQL
public String getNewConnectionSQL()(Code)



getPassword
public String getPassword()(Code)



getPreparedStatementCacheSize
public int getPreparedStatementCacheSize()(Code)



getQueryTimeout
public int getQueryTimeout()(Code)



getSharePreparedStatements
public boolean getSharePreparedStatements()(Code)



getTrackStatements
public String getTrackStatements()(Code)



getTransactionIsolation
public String getTransactionIsolation()(Code)



getUserName
public String getUserName()(Code)



getValidConnectionCheckerClassName
public String getValidConnectionCheckerClassName()(Code)



getValidateOnMatch
public boolean getValidateOnMatch()(Code)



isExceptionFatal
boolean isExceptionFatal(SQLException e)(Code)



isTransactionQueryTimeout
public boolean isTransactionQueryTimeout()(Code)



isValidConnection
SQLException isValidConnection(Connection c)(Code)
Checks whether a connection is valid



setCheckValidConnectionSQL
public void setCheckValidConnectionSQL(String checkValidConnectionSQL)(Code)



setExceptionSorterClassName
public void setExceptionSorterClassName(String exceptionSorterClassName)(Code)



setLogWriter
public void setLogWriter(PrintWriter param1) throws ResourceException(Code)



setNewConnectionSQL
public void setNewConnectionSQL(String newConnectionSQL)(Code)



setPassword
public void setPassword(String password)(Code)



setPreparedStatementCacheSize
public void setPreparedStatementCacheSize(int size)(Code)



setQueryTimeout
public void setQueryTimeout(int timeout)(Code)



setSharePreparedStatements
public void setSharePreparedStatements(boolean sharePS)(Code)



setTrackStatements
public void setTrackStatements(String value)(Code)



setTransactionIsolation
public void setTransactionIsolation(String transactionIsolation)(Code)



setTransactionQueryTimeout
public void setTransactionQueryTimeout(boolean value)(Code)



setUserName
public void setUserName(String userName)(Code)



setValidConnectionCheckerClassName
public void setValidConnectionCheckerClassName(String value)(Code)



setValidateOnMatch
public void setValidateOnMatch(boolean validateOnMatch)(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.