|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jdbcadmin.core.tools.AbstractCnxUser
Base class for classes which use a database connection
The public methods of the overriding classes must call the connect()
and #diconnect
methods
Field Summary | |
protected java.sql.Connection |
cnx
Connexion à la base, apres fermeture, elle doit être mise à null |
protected ConnectionInfo |
conInfos
Informations de connexion à la base de donnée |
Constructor Summary | |
AbstractCnxUser(ConnectionInfo aCnxInfos)
Constructor |
Method Summary | |
protected boolean |
connect()
If not initialized, creates or retrieves the connection |
protected void |
disconnect()
Closes the db connection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ConnectionInfo conInfos
protected java.sql.Connection cnx
Constructor Detail |
public AbstractCnxUser(ConnectionInfo aCnxInfos)
aCnxInfos
- Connection informationsMethod Detail |
protected boolean connect() throws TechnicalException
true
if the connection had to be created/retrieved
(in this case, the calling method must call disconnect()
), false
otherwise
TechnicalException
- error connecting to db.protected void disconnect()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |