|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is implemented by plugins that know how to connect to a database identified by a DatabaseIdentifier
Method Summary | |
SongDatabase |
openIdentifiedDatabase(DatabaseIdentifier identifier)
Attempt to open the SongDatabase referenced by the given identifier. |
Method Detail |
public SongDatabase openIdentifiedDatabase(DatabaseIdentifier identifier) throws SongDatabaseFailedException, UnrecognizedDatabaseIdentifierException
Returns the SongDatabase opened. If an error occurred while opening the database, throw a SongDatabaseFailedException. If the DatabaseConnector does not recognize the DatabaseIdentifier or otherwise believes that another DatabaseConnector should be used to open the database, throw DatabaseIdentifierNotRecognizedException.
Note that this method may be invoked off the AWT/Swing thread, so accesses to the GUI or callbacks to the maingui plugin should be appropriately wrapped.
identifier
- identifier for the database to open
SongDatabaseFailedException
- an error occurred while opening the database.
This will usually have a cause exception, such as IOException or SQLException.
UnrecognizedDatabaseIdentifierException
- this DatabaseConnector doesn't
recognize the DatabaseIdentifier, or otherwise believes that it is the wrong
DatabaseConnector for the job.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |