|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.cddb.SQLCDDB
public class SQLCDDB
A very simple CDDB implementation that uses a SQL database for CDs and tracks. The following tables with their columns are preassumed for the given connection:
table CD table track table CDID -------- ----------- ----------- discID discID discID title trackNo QueryString artist title year artist length length extension extensionAll columns are text columns except year (which is a number representing the year), length (which is a number representing seconds) and trackNo (another number). The fields should also exist in the order given above.
| Constructor Summary | |
|---|---|
SQLCDDB(Connection con)
|
|
| Method Summary | |
|---|---|
String[] |
getCategories()
returns the available categories under which the CDInfo entries are stored - in accordance to the CDDB standard |
CDDBRecord[] |
queryCD(CDID cd)
fuzzy matches are currently not supported |
CDInfo |
readCDInfo(CDDBRecord record)
not supported, yet |
void |
writeCDInfo(CDInfo cdinfo)
allows to submit CD information to the database - if the operation is permitted by the database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SQLCDDB(Connection con)
| Method Detail |
|---|
public String[] getCategories()
CDDB
getCategories in interface CDDB
public CDDBRecord[] queryCD(CDID cd)
throws IOException
queryCD in interface CDDBIOExceptionCDDBRecord.isExactMatch()public CDInfo readCDInfo(CDDBRecord record)
readCDInfo in interface CDDBCDDB.queryCD(CDID)
public void writeCDInfo(CDInfo cdinfo)
throws IOException,
CDDBProtocolException
CDDB
writeCDInfo in interface CDDBIOException
CDDBProtocolException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||