org.otfeed.j2ee.ra
Class OtfeedManagedConnectionFactory

java.lang.Object
  extended by org.otfeed.j2ee.ra.OtfeedManagedConnectionFactory
All Implemented Interfaces:
java.io.Serializable, javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ResourceAdapterAssociation

public class OtfeedManagedConnectionFactory
extends java.lang.Object
implements javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ResourceAdapterAssociation

See Also:
Serialized Form

Constructor Summary
OtfeedManagedConnectionFactory()
           
 
Method Summary
 java.lang.Object createConnectionFactory()
           
 java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager connectionManager)
           
 javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo connectionInfo)
           
 java.lang.Long getDefaultHeartbeatInterval()
           
 java.lang.String getDefaultHostsString()
           
 java.lang.String getDefaultPassword()
           
 java.lang.String getDefaultUsername()
           
 java.io.PrintWriter getLogWriter()
           
 javax.resource.spi.ResourceAdapter getResourceAdapter()
           
 javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set candidates, javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo connectionInfo)
           
 void setDefaultHeartbeatInterval(java.lang.Long val)
           
 void setDefaultHostsString(java.lang.String address)
           
 void setDefaultPassword(java.lang.String val)
           
 void setDefaultUsername(java.lang.String val)
           
 void setLogWriter(java.io.PrintWriter writer)
           
 void setResourceAdapter(javax.resource.spi.ResourceAdapter val)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.resource.spi.ManagedConnectionFactory
equals, hashCode
 

Constructor Detail

OtfeedManagedConnectionFactory

public OtfeedManagedConnectionFactory()
Method Detail

createConnectionFactory

public java.lang.Object createConnectionFactory()
                                         throws javax.resource.ResourceException
Specified by:
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException

createConnectionFactory

public java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager connectionManager)
                                         throws javax.resource.ResourceException
Specified by:
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException

createManagedConnection

public javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject,
                                                                    javax.resource.spi.ConnectionRequestInfo connectionInfo)
                                                             throws javax.resource.ResourceException
Specified by:
createManagedConnection in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException

matchManagedConnections

public javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set candidates,
                                                                    javax.security.auth.Subject subject,
                                                                    javax.resource.spi.ConnectionRequestInfo connectionInfo)
                                                             throws javax.resource.ResourceException
Specified by:
matchManagedConnections in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException

getLogWriter

public java.io.PrintWriter getLogWriter()
                                 throws javax.resource.ResourceException
Specified by:
getLogWriter in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException

setLogWriter

public void setLogWriter(java.io.PrintWriter writer)
                  throws javax.resource.ResourceException
Specified by:
setLogWriter in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException

getResourceAdapter

public javax.resource.spi.ResourceAdapter getResourceAdapter()
Specified by:
getResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation

setResourceAdapter

public void setResourceAdapter(javax.resource.spi.ResourceAdapter val)
Specified by:
setResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation

getDefaultUsername

public java.lang.String getDefaultUsername()

setDefaultUsername

public void setDefaultUsername(java.lang.String val)

getDefaultPassword

public java.lang.String getDefaultPassword()

setDefaultPassword

public void setDefaultPassword(java.lang.String val)

getDefaultHostsString

public java.lang.String getDefaultHostsString()

setDefaultHostsString

public void setDefaultHostsString(java.lang.String address)

getDefaultHeartbeatInterval

public java.lang.Long getDefaultHeartbeatInterval()

setDefaultHeartbeatInterval

public void setDefaultHeartbeatInterval(java.lang.Long val)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007-2008 Mike Kroutikov. All Rights Reserved.