org.jboss.jca.core.connectionmanager.notx
Class NoTxConnectionManagerImpl

java.lang.Object
  extended by org.jboss.jca.core.connectionmanager.AbstractConnectionManager
      extended by org.jboss.jca.core.connectionmanager.notx.NoTxConnectionManagerImpl
All Implemented Interfaces:
Serializable, javax.resource.spi.ConnectionManager, org.jboss.jca.core.api.connectionmanager.listener.ConnectionCacheListener, ConnectionListenerFactory, NoTxConnectionManager

public class NoTxConnectionManagerImpl
extends AbstractConnectionManager
implements NoTxConnectionManager

Non transactional connection manager implementation.

Author:
Gurkan Erdogdu, Jesper Pedersen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.jca.core.connectionmanager.AbstractConnectionManager
connectable, trace
 
Constructor Summary
NoTxConnectionManagerImpl()
          Default constructor.
 
Method Summary
 ConnectionListener createConnectionListener(javax.resource.spi.ManagedConnection managedConnection, Object context)
          Create a managed connection listener for the managed connection.
protected  CoreLogger getLogger()
          Get the logger.
 org.jboss.jca.core.spi.transaction.TransactionIntegration getTransactionIntegration()
          Get the transaction integration.
 boolean isTransactional()
          Determine whether there connection is a transactional.
 void transactionStarted(Collection<ConnectionRecord> conns)
          Notification of transaction started
 
Methods inherited from class org.jboss.jca.core.connectionmanager.AbstractConnectionManager
allocateConnection, disconnect, disconnectManagedConnection, getAllocationRetry, getAllocationRetryWaitMillis, getCachedConnectionManager, getFlushStrategy, getJndiName, getManagedConnection, getManagedConnection, getManagedConnectionFactory, getPool, getSecurityDomain, getSubjectFactory, isConnectable, managedConnectionDisconnected, managedConnectionReconnected, reconnect, reconnectManagedConnection, returnManagedConnection, setAllocationRetry, setAllocationRetryWaitMillis, setCachedConnectionManager, setConnectable, setFlushStrategy, setJndiName, setPool, setSecurityDomain, setSubjectFactory, shutdown, unregisterAssociation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.jca.core.connectionmanager.ConnectionManager
getAllocationRetry, getAllocationRetryWaitMillis, getCachedConnectionManager, getJndiName, getPool, getSecurityDomain, getSubjectFactory, setJndiName, shutdown, unregisterAssociation
 
Methods inherited from interface org.jboss.jca.core.api.connectionmanager.ConnectionManager
returnManagedConnection
 
Methods inherited from interface javax.resource.spi.ConnectionManager
allocateConnection
 
Methods inherited from interface org.jboss.jca.core.connectionmanager.listener.ConnectionCacheListener
disconnect, reconnect
 

Constructor Detail

NoTxConnectionManagerImpl

public NoTxConnectionManagerImpl()
Default constructor.

Method Detail

getLogger

protected CoreLogger getLogger()
Get the logger.

Specified by:
getLogger in class AbstractConnectionManager
Returns:
The value

createConnectionListener

public ConnectionListener createConnectionListener(javax.resource.spi.ManagedConnection managedConnection,
                                                   Object context)
                                            throws javax.resource.ResourceException
Create a managed connection listener for the managed connection.

Specified by:
createConnectionListener in interface ConnectionListenerFactory
Parameters:
managedConnection - the managed connection
context - a context object used by the pool
Returns:
a new connection event listener
Throws:
javax.resource.ResourceException - for any error

transactionStarted

public void transactionStarted(Collection<ConnectionRecord> conns)
                        throws SystemException
Description copied from class: AbstractConnectionManager
Notification of transaction started

Specified by:
transactionStarted in class AbstractConnectionManager
Parameters:
conns - the connections
Throws:
SystemException - for any error

getTransactionIntegration

public org.jboss.jca.core.spi.transaction.TransactionIntegration getTransactionIntegration()
Description copied from class: AbstractConnectionManager
Get the transaction integration.

Specified by:
getTransactionIntegration in interface ConnectionListenerFactory
Specified by:
getTransactionIntegration in class AbstractConnectionManager
Returns:
the transaction integration

isTransactional

public boolean isTransactional()
Description copied from class: AbstractConnectionManager
Determine whether there connection is a transactional.

Specified by:
isTransactional in interface ConnectionListenerFactory
Specified by:
isTransactional in class AbstractConnectionManager
Returns:
whether it is a transactional or not


Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)