com.googlecode.cassadra.jca.connection.factory
Class CassandraManagedConnectionFactory
java.lang.Object
com.googlecode.cassadra.jca.connection.factory.CassandraProperties
com.googlecode.cassadra.jca.connection.factory.CassandraManagedConnectionFactory
- All Implemented Interfaces:
- Serializable, javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ResourceAdapterAssociation, javax.resource.spi.ValidatingManagedConnectionFactory
public class CassandraManagedConnectionFactory
- extends CassandraProperties
- implements javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ValidatingManagedConnectionFactory, javax.resource.spi.ResourceAdapterAssociation
- Author:
- sergey.sarabun@gmail.com
- See Also:
- Serialized Form
| Methods inherited from class com.googlecode.cassadra.jca.connection.factory.CassandraProperties |
getKeyspace, getPassword, getPort, getServer, getTimeout, getUsername, setKeyspace, setPassword, setPort, setServer, setTimeout, setUsername, toString |
CassandraManagedConnectionFactory
public CassandraManagedConnectionFactory()
createConnectionFactory
public Object createConnectionFactory(javax.resource.spi.ConnectionManager cxManager)
throws javax.resource.ResourceException
- Specified by:
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactory
- Throws:
javax.resource.ResourceException
createConnectionFactory
public Object createConnectionFactory()
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
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
setLogWriter
public void setLogWriter(PrintWriter out)
throws javax.resource.ResourceException
- Specified by:
setLogWriter in interface javax.resource.spi.ManagedConnectionFactory
- Throws:
javax.resource.ResourceException
getLogWriter
public PrintWriter getLogWriter()
throws javax.resource.ResourceException
- Specified by:
getLogWriter 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 ra)
throws javax.resource.ResourceException
- Specified by:
setResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation
- Throws:
javax.resource.ResourceException
getInvalidConnections
public Set getInvalidConnections(Set connectionSet)
throws javax.resource.ResourceException
- Specified by:
getInvalidConnections in interface javax.resource.spi.ValidatingManagedConnectionFactory
- Throws:
javax.resource.ResourceException
equals
public boolean equals(Object obj)
- Specified by:
equals in interface javax.resource.spi.ManagedConnectionFactory- Overrides:
equals in class Object
hashCode
public int hashCode()
- Specified by:
hashCode in interface javax.resource.spi.ManagedConnectionFactory- Overrides:
hashCode in class Object
Copyright © 2013. All Rights Reserved.