|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Defines general operations on a database.
Separate methods are used for connections for data and metadata because
in a number of cases these are stored on different machines in different formats.
| Method Summary | |
boolean |
connectForData(String username,
String password)
Called before data is retrieved from the AccessMechanism |
boolean |
connectForMetaData(String username,
String password)
Called before metadata is retrieved from the AccessMechanism |
void |
disconnectFromData()
Called after data is retrieved from the AccessMechanism using connectForData. |
void |
disconnectFromMetaData()
Called after meta data is retrieved from the AccessMechanism using connectForMetaData. |
| Method Detail |
public boolean connectForData(String username,
String password)
throws ConnectionException
username - a valid username for the database if it requires it, or null otherwise.password - the corresponding password (not encrypted) if required, or null otherwise.
ConnectionException - if a connection could not be established
public void disconnectFromData()
throws ConnectionException
ConnectionException - if a connection could not be disconnected
public boolean connectForMetaData(String username,
String password)
throws ConnectionException
username - a valid username for the database if it requires it, or null otherwise.password - the corresponding password (not encrypted) if required, or null otherwise.
ConnectionException - if a connection could not be established
public void disconnectFromMetaData()
throws ConnectionException
ConnectionException - if a connection could not be disconnected
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||