public class SampleConnectionEventListener
extends java.lang.Object
implements javax.resource.spi.ConnectionEventListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
Copyright statement.
|
Constructor and Description |
---|
SampleConnectionEventListener(javax.resource.spi.ManagedConnection mc)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void | addConnectionListener(javax.resource.spi.ConnectionEventListener l)
Adds a connection listener to the existing connection listener
|
void | connectionClosed(javax.resource.spi.ConnectionEvent arg1)
Connection closed.
|
void | connectionErrorOccurred(javax.resource.spi.ConnectionEvent arg1)
The connectionErrorOccurred method.
|
void | localTransactionCommitted(javax.resource.spi.ConnectionEvent arg1)
The localTransactionCommitted method.
|
void | localTransactionRolledback(javax.resource.spi.ConnectionEvent arg1)
The localTransactionRolledback method.
|
void | localTransactionStarted(javax.resource.spi.ConnectionEvent arg1)
The localTransactionStarted method.
|
void | removeConnectionListener(javax.resource.spi.ConnectionEventListener l)
Removes a connection listener
|
void | sendEvent(int eventType, java.lang.Exception ex, java.lang.Object connectionHandle)
Sends an event
|
public static final java.lang.String COPYRIGHT
public SampleConnectionEventListener(javax.resource.spi.ManagedConnection mc)
public void connectionClosed(javax.resource.spi.ConnectionEvent arg1)
public void connectionErrorOccurred(javax.resource.spi.ConnectionEvent arg1)
public void localTransactionCommitted(javax.resource.spi.ConnectionEvent arg1)
public void localTransactionRolledback(javax.resource.spi.ConnectionEvent arg1)
public void localTransactionStarted(javax.resource.spi.ConnectionEvent arg1)
public void addConnectionListener(javax.resource.spi.ConnectionEventListener l)
public void removeConnectionListener(javax.resource.spi.ConnectionEventListener l)
public void sendEvent(int eventType, java.lang.Exception ex, java.lang.Object connectionHandle)