Java Doc for JtestResourceAdapter.java in  » J2EE » JOnAS-4.8.6 » fictional » resourceadapter » 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 » J2EE » JOnAS 4.8.6 » fictional.resourceadapter 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   fictional.resourceadapter.JtestResourceAdapter

JtestResourceAdapter
public class JtestResourceAdapter implements ManagedConnectionFactory,ConnectionRequestInfo,ManagedConnection,ManagedConnectionMetaData,GenericCredential,Serializable,Referenceable(Code)

author:
   Bob Kruse
author:
   used to test the J2EE Connector as implemented by JOnAS.


Field Summary
 StringId
    
 StringPortNumber
    
 StringServerName
    
public  ConnectionImplcHandle
    
 StringcName
    
 booleanclosed
    
public  ConnectionManagercm
    
 booleanforceMatchNull
    
 StringgcID
    
public  booleaninLocalTrans
    
public  booleaninXATrans
    
public  LocalTransactionImplloTx
    
public  booleanmanaged
    
 Stringproduct
    
 Stringprotocol
    
 PrintWriterpw
    
public  Stringre_authentication_Password
    
public  Stringre_authentication_UserName
    
 Referencereference
    
public  Stringres_auth
    
public  booleansendEvent
    
 StringtimeStamp
    
 Stringversion
    
public  XAResourcexar
    
public  XAResourceImplxari
    

Constructor Summary
public  JtestResourceAdapter()
    

Method Summary
public  voidaddConnectionEventListener(ConnectionEventListener listener)
    
public  voidassociateConnection(Object obj)
    
public  voidcleanup()
    
public  intcntListeners()
    
public  ObjectcreateConnectionFactory(ConnectionManager connectionmanager)
    
public  ObjectcreateConnectionFactory()
     When the createConnectionFactory method takes no arguments, the resource adapter provides a default ConnectionManager instance.
public  ManagedConnectioncreateManagedConnection(Subject subject, ConnectionRequestInfo connectionrequestinfo)
    
public  voiddestroy()
    
public  booleanequals(Object obj)
    
public  ConnectionImplgetCHandle()
    
public  ConnectionManagergetCM()
    
public  DategetConnDate()
    
public  ObjectgetConnection(Subject subject, ConnectionRequestInfo connectionrequestinfo)
    
public  byte[]getCredentialData()
    
public  XAResourceImplgetCurrentXar()
    
public  StringgetEISProductName()
    
public  StringgetEISProductVersion()
    
public  javax.resource.cci.LocalTransactiongetLocalTransaction(boolean sendEvent)
    
public  LocalTransactiongetLocalTransaction()
    
public  PrintWritergetLogWriter()
    
public  intgetMaxConnections()
    
public  ManagedConnectionFactorygetMcf()
    
public  StringgetMechType()
    
public  ManagedConnectionMetaDatagetMetaData()
    
public  StringgetName()
    
public  StringgetPassword()
    
public  PasswordCredentialgetPasswordCredential(ManagedConnectionFactory mcf, Subject subject, ConnectionRequestInfo info)
    
public  StringgetProtocol()
    
public  ReferencegetReference()
    
public  StringgetRes_Auth()
    
public  StringgetServerName()
    
public  StringgetTimeStamp()
    
public  StringgetUserName()
    
public  XAResourcegetXAResource()
    
public  inthashCode()
    
public  booleanisClosed()
    
public  ManagedConnectionmatchManagedConnections(Set connectionSet, Subject subject, ConnectionRequestInfo connectionrequestinfo)
    
public  voidremoveConnectionEventListener(ConnectionEventListener listener)
    
public  voidresetXar()
    
public  voidsendEvent(int eType, Exception ex, Object ch)
     Send the specified event to all the EventListeners that have registered with this ManagedConnection instance.
public  voidsetConnDate(Date cDate)
    
public  voidsetDPassword(String s)
    
public  voidsetDUserName(String s)
    
public  voidsetLogWriter(PrintWriter printwriter)
    
public  voidsetMatchNull(boolean truefalse)
    
public  voidsetMcf(ManagedConnectionFactory MCF)
    
public  voidsetPassword(String p)
    
public  voidsetPortNumber(String s)
    
public  voidsetProtocol(String s)
    
public  voidsetReference(javax.naming.Reference ref)
    
public  voidsetRes_Auth(String r)
    
public  voidsetServerName(String c1)
     Set the JOnAS config-property..
public  voidsetTimeStamp(String ts)
    
public  voidsetUserName(String u)
    

Field Detail
Id
String Id(Code)



PortNumber
String PortNumber(Code)



ServerName
String ServerName(Code)



cHandle
public ConnectionImpl cHandle(Code)



cName
String cName(Code)



closed
boolean closed(Code)



cm
public ConnectionManager cm(Code)



forceMatchNull
boolean forceMatchNull(Code)



gcID
String gcID(Code)



inLocalTrans
public boolean inLocalTrans(Code)



inXATrans
public boolean inXATrans(Code)



loTx
public LocalTransactionImpl loTx(Code)



managed
public boolean managed(Code)



product
String product(Code)



protocol
String protocol(Code)



pw
PrintWriter pw(Code)



re_authentication_Password
public String re_authentication_Password(Code)



re_authentication_UserName
public String re_authentication_UserName(Code)



reference
Reference reference(Code)



res_auth
public String res_auth(Code)



sendEvent
public boolean sendEvent(Code)



timeStamp
String timeStamp(Code)



version
String version(Code)



xar
public XAResource xar(Code)



xari
public XAResourceImpl xari(Code)




Constructor Detail
JtestResourceAdapter
public JtestResourceAdapter()(Code)




Method Detail
addConnectionEventListener
public void addConnectionEventListener(ConnectionEventListener listener)(Code)



associateConnection
public void associateConnection(Object obj) throws ResourceException(Code)



cleanup
public void cleanup() throws ResourceException(Code)



cntListeners
public int cntListeners()(Code)



createConnectionFactory
public Object createConnectionFactory(ConnectionManager connectionmanager) throws ResourceException(Code)



createConnectionFactory
public Object createConnectionFactory() throws ResourceException(Code)
When the createConnectionFactory method takes no arguments, the resource adapter provides a default ConnectionManager instance. This case is used in a non-managed application scenario. see 5.5.3



createManagedConnection
public ManagedConnection createManagedConnection(Subject subject, ConnectionRequestInfo connectionrequestinfo) throws ResourceException(Code)



destroy
public void destroy() throws ResourceException(Code)



equals
public boolean equals(Object obj)(Code)



getCHandle
public ConnectionImpl getCHandle()(Code)



getCM
public ConnectionManager getCM()(Code)



getConnDate
public Date getConnDate()(Code)



getConnection
public Object getConnection(Subject subject, ConnectionRequestInfo connectionrequestinfo) throws ResourceException(Code)



getCredentialData
public byte[] getCredentialData() throws SecurityException(Code)



getCurrentXar
public XAResourceImpl getCurrentXar() throws ResourceException(Code)



getEISProductName
public String getEISProductName() throws ResourceException(Code)



getEISProductVersion
public String getEISProductVersion() throws ResourceException(Code)



getLocalTransaction
public javax.resource.cci.LocalTransaction getLocalTransaction(boolean sendEvent) throws ResourceException(Code)



getLocalTransaction
public LocalTransaction getLocalTransaction() throws ResourceException(Code)



getLogWriter
public PrintWriter getLogWriter() throws ResourceException(Code)



getMaxConnections
public int getMaxConnections() throws ResourceException(Code)



getMcf
public ManagedConnectionFactory getMcf()(Code)



getMechType
public String getMechType()(Code)



getMetaData
public ManagedConnectionMetaData getMetaData() throws ResourceException(Code)



getName
public String getName()(Code)



getPassword
public String getPassword()(Code)



getPasswordCredential
public PasswordCredential getPasswordCredential(ManagedConnectionFactory mcf, Subject subject, ConnectionRequestInfo info) throws ResourceException(Code)
Returns the Password credential
Parameters:
  mcf - ManagedConnectionFactory currently being used
Parameters:
  subject - Subject associated with this call
Parameters:
  info - ConnectionRequestInfo PasswordCredential for this user



getProtocol
public String getProtocol()(Code)



getReference
public Reference getReference() throws NamingException(Code)
Required by the referencable attribute Reference object



getRes_Auth
public String getRes_Auth()(Code)



getServerName
public String getServerName()(Code)



getTimeStamp
public String getTimeStamp()(Code)



getUserName
public String getUserName()(Code)



getXAResource
public XAResource getXAResource() throws ResourceException(Code)



hashCode
public int hashCode()(Code)



isClosed
public boolean isClosed()(Code)



matchManagedConnections
public ManagedConnection matchManagedConnections(Set connectionSet, Subject subject, ConnectionRequestInfo connectionrequestinfo) throws ResourceException(Code)



removeConnectionEventListener
public void removeConnectionEventListener(ConnectionEventListener listener)(Code)



resetXar
public void resetXar()(Code)



sendEvent
public void sendEvent(int eType, Exception ex, Object ch) throws ResourceException(Code)
Send the specified event to all the EventListeners that have registered with this ManagedConnection instance. int Event type to send
Parameters:
  Exception - if one is associated with this event
Parameters:
  ch - Connection handle associated with this event
throws:
  ResourceException - generic exception if operation fails
throws:
  IllegalArgumentException - if an invalid event is specified



setConnDate
public void setConnDate(Date cDate)(Code)



setDPassword
public void setDPassword(String s)(Code)



setDUserName
public void setDUserName(String s)(Code)



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



setMatchNull
public void setMatchNull(boolean truefalse)(Code)



setMcf
public void setMcf(ManagedConnectionFactory MCF)(Code)



setPassword
public void setPassword(String p)(Code)



setPortNumber
public void setPortNumber(String s)(Code)



setProtocol
public void setProtocol(String s)(Code)



setReference
public void setReference(javax.naming.Reference ref)(Code)
Required by the referencable attribute
Parameters:
  ref - Reference object



setRes_Auth
public void setRes_Auth(String r)(Code)



setServerName
public void setServerName(String c1)(Code)
Set the JOnAS config-property.. Default value is "".
Parameters:
  c1 - String of config-property.for testng RA.



setTimeStamp
public void setTimeStamp(String ts)(Code)



setUserName
public void setUserName(String u)(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.