|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILptsFactoryConnectionListener
Class Description : The listener to be implemented for control of connections.
This interface is used by the Connection Factory TLptsFactoryConnection
to indicate that the status of a connection has changed.
When the connection factory initiateConnection is called, the result is a function or functions being called on this interface.
Every application should implement this interface as it provides control over new connections so that statements can be generated after a successful connection.
The other factory listeners for the statement and rowset work together with this listener, and are initiated from actions stemming from here.
These three factory listeners are the backbone of any dbJAPI application as they provide all the control required for achieving its requirements.
$LastChangedRevision: 1197 $
$LastChangedDate:: 2010-11-22 10:06:06#$
Method Summary | |
---|---|
void |
newConnectionCreated(TLptsConnection connection)
This informs the listener that a new Connection has been made and established to a database. |
void |
newConnectionFailed(TLptsLog log)
This informs the listener that a new Connection was not successful. |
void |
newConnectionProcessStarted()
This is used to indicate that the connection process has started. |
void |
removedAndClosedConnection(TLptsConnection connection)
Informs the listener that an existing connection has been removed and closed on the database. |
Method Detail |
---|
void newConnectionCreated(TLptsConnection connection)
This informs the listener that a new Connection has been made and established to a database.
TLptsFactoryStatement.createNewStatement(com.lapetus_ltd.api.db.control.TLptsConnection, com.lapetus_ltd._2009.xml.types.XLptsDBStatementType)
.
connection
- The new live connection to the DB.void newConnectionFailed(TLptsLog log)
This informs the listener that a new Connection was not successful.
log
- The log generated by the failure of the connection. It is also stored in the TLptsLogger log list.void newConnectionProcessStarted()
This is used to indicate that the connection process has started.
TLptsMainDatabase.setApplicationMainFrame(javax.swing.JFrame)
has been set on the main frame of the application,
void removedAndClosedConnection(TLptsConnection connection)
Informs the listener that an existing connection has been removed and closed on the database.
connection
- This is the connection that has been closed. Any action performed on this connection from here on out will cause an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |