|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.ei.txnhandler.connector.offline.OffLineManagedConnection
This class represents a physical connection to the underlying OffLine Database.
Constructor Summary | |
OffLineManagedConnection()
OffLineManagedConnection constructor. |
|
OffLineManagedConnection(EManagedConnectionFactory mcf,
java.sql.Connection con)
OffLineManagedConnection constructor. |
Method Summary | |
void |
addConnectionEventListener(EConnectionEventListener listener)
This method adds an event listener to this managed connection's list of listeners. |
boolean |
checkIfDestroyed()
This method checks to see if the associated connection has been destroyed. |
void |
cleanup()
This method will close any live connections still associated with the managed connection. |
void |
destroy()
This method will close any live connections still associated with the managed connection. |
java.lang.Object |
getConnection()
This method creates a new connection handle for the underlying physical connection represented by the EManagedConnection instance. |
EManagedConnectionFactory |
getManagedConnectionFactory()
This method returns the EManagedConnectionFactory associated with this connection. |
java.lang.Object |
getPhysicalConnection()
This method creates a new connection handle for the underlying physical connection represented by the EManagedConnection instance. |
void |
removeConnectionEventListener(EConnectionEventListener listener)
This connection removes a specified event listener from it's list. |
void |
sendEvent(int eventType,
java.lang.Exception ex)
This method will send an event to all the listeners in it's listener list, notifying listeners of a Connection closing event or connection error event. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OffLineManagedConnection()
public OffLineManagedConnection(EManagedConnectionFactory mcf, java.sql.Connection con)
mcf
- The EManagedConnectionFactory instance associated with this connection.con
- A java SQL Connection to be associated with this managed connection.Method Detail |
public void addConnectionEventListener(EConnectionEventListener listener)
addConnectionEventListener
in interface EManagedConnection
listener
- The listener to be added to this list.public boolean checkIfDestroyed()
public void cleanup()
cleanup
in interface EManagedConnection
public void destroy()
destroy
in interface EManagedConnection
public java.lang.Object getConnection()
getConnection
in interface EManagedConnection
public EManagedConnectionFactory getManagedConnectionFactory()
public java.lang.Object getPhysicalConnection()
public void removeConnectionEventListener(EConnectionEventListener listener)
removeConnectionEventListener
in interface EManagedConnection
listener
- The listener to remove from the list.public void sendEvent(int eventType, java.lang.Exception ex)
eventType
- The Event Type to be sent. See the EConnectionEvent class fields for details
on event integers.ex
- Any exceptions that are thrown with the event.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |