com.googlecode.cassadra.jca.managed.connection
Class CassandraManagedConnection
java.lang.Object
com.googlecode.cassadra.jca.managed.connection.CassandraManagedConnection
- All Implemented Interfaces:
- ConnectionProvider, javax.resource.spi.ManagedConnection
public class CassandraManagedConnection
- extends Object
- implements javax.resource.spi.ManagedConnection, ConnectionProvider
- Author:
- sergey.sarabun@gmail.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CassandraManagedConnection
public CassandraManagedConnection(CassandraProperties properties)
throws javax.resource.ResourceException
- Throws:
javax.resource.ResourceException
getInternalConnection
public CassandraIfaceWrapper getInternalConnection()
- Specified by:
getInternalConnection in interface ConnectionProvider
close
public void close()
- Specified by:
close in interface ConnectionProvider
getConnection
public Object getConnection(Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
throws javax.resource.ResourceException
- Specified by:
getConnection in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
destroy
public void destroy()
throws javax.resource.ResourceException
- Specified by:
destroy in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
cleanup
public void cleanup()
throws javax.resource.ResourceException
- Specified by:
cleanup in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
associateConnection
public void associateConnection(Object connection)
throws javax.resource.ResourceException
- Specified by:
associateConnection in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
addConnectionEventListener
public void addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
- Specified by:
addConnectionEventListener in interface javax.resource.spi.ManagedConnection
removeConnectionEventListener
public void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
- Specified by:
removeConnectionEventListener in interface javax.resource.spi.ManagedConnection
getXAResource
public XAResource getXAResource()
throws javax.resource.ResourceException
- Specified by:
getXAResource in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
getLocalTransaction
public javax.resource.spi.LocalTransaction getLocalTransaction()
throws javax.resource.ResourceException
- Specified by:
getLocalTransaction in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
getMetaData
public javax.resource.spi.ManagedConnectionMetaData getMetaData()
throws javax.resource.ResourceException
- Specified by:
getMetaData in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
setLogWriter
public void setLogWriter(PrintWriter out)
throws javax.resource.ResourceException
- Specified by:
setLogWriter in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
getLogWriter
public PrintWriter getLogWriter()
throws javax.resource.ResourceException
- Specified by:
getLogWriter in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
Copyright © 2013. All Rights Reserved.