com.hazelcast.jca
Class ManagedConnectionFactoryImpl

java.lang.Object
  extended by com.hazelcast.jca.JcaBase
      extended by com.hazelcast.jca.ManagedConnectionFactoryImpl
All Implemented Interfaces:
Serializable, javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ResourceAdapterAssociation

public class ManagedConnectionFactoryImpl
extends JcaBase
implements javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ResourceAdapterAssociation

This managed connection factory is populated with all container-specific configuration and infrastructure

See Also:
setConnectionTracingDetail(boolean), setConnectionTracingEvents(String), setResourceAdapter(ResourceAdapter), Serialized Form

Constructor Summary
ManagedConnectionFactoryImpl()
           
 
Method Summary
 HazelcastConnectionFactory createConnectionFactory()
           
 HazelcastConnectionFactory createConnectionFactory(javax.resource.spi.ConnectionManager cm)
           
 javax.resource.spi.ManagedConnection createManagedConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
           
 boolean equals(Object obj)
           
 String getConnectionTracingEvents()
          Getter for the RAR property 'connectionTracingEvents'
 ResourceAdapterImpl getResourceAdapter()
           
 int hashCode()
           
 boolean isConnectionTracingDetail()
          Getter for the RAR property 'connectionTracingDetails'
 javax.resource.spi.ManagedConnection matchManagedConnections(Set connectionSet, Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
           
 void setConnectionTracingDetail(boolean connectionTracingDetail)
          Setter for the RAR property 'connectionTracingDetails'.
 void setConnectionTracingEvents(String tracingSpec)
          Setter for the property 'connectionTracingEvents'.
 void setId(int id)
           
 void setResourceAdapter(javax.resource.spi.ResourceAdapter resourceAdapter)
           
 String toString()
           
 
Methods inherited from class com.hazelcast.jca.JcaBase
getLogWriter, setLogWriter
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.resource.spi.ManagedConnectionFactory
getLogWriter, setLogWriter
 

Constructor Detail

ManagedConnectionFactoryImpl

public ManagedConnectionFactoryImpl()
Method Detail

createConnectionFactory

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

createConnectionFactory

public HazelcastConnectionFactory createConnectionFactory(javax.resource.spi.ConnectionManager cm)
                                                   throws javax.resource.ResourceException
Specified by:
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException

createManagedConnection

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

getConnectionTracingEvents

public String getConnectionTracingEvents()
Getter for the RAR property 'connectionTracingEvents'


setConnectionTracingDetail

public void setConnectionTracingDetail(boolean connectionTracingDetail)
Setter for the RAR property 'connectionTracingDetails'. This method is called by the container


isConnectionTracingDetail

public boolean isConnectionTracingDetail()
Getter for the RAR property 'connectionTracingDetails'


getResourceAdapter

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

setResourceAdapter

public void setResourceAdapter(javax.resource.spi.ResourceAdapter resourceAdapter)
                        throws javax.resource.ResourceException
Specified by:
setResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation
Throws:
javax.resource.ResourceException

matchManagedConnections

public javax.resource.spi.ManagedConnection matchManagedConnections(Set connectionSet,
                                                                    Subject subject,
                                                                    javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
                                                             throws javax.resource.ResourceException
Specified by:
matchManagedConnections in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException

setConnectionTracingEvents

public void setConnectionTracingEvents(String tracingSpec)
Setter for the property 'connectionTracingEvents'. This method is called by the container

Parameters:
tracingSpec - A comma delimited list of HzConnectionEvent

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface javax.resource.spi.ManagedConnectionFactory
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Specified by:
equals in interface javax.resource.spi.ManagedConnectionFactory
Overrides:
equals in class Object

setId

public void setId(int id)


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.