|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flickrrecsys.db.DbContacts
public class DbContacts
Connection to the contacts table
| Constructor Summary | |
|---|---|
DbContacts(java.lang.String path)
Constructor which gets the connection to the database |
|
| Method Summary | |
|---|---|
boolean |
checkExistingContacts(java.lang.String nsid,
java.lang.String contactNsid)
Check if the users are already connection |
void |
deleteContacts(java.lang.String nsid)
Delete contacts by user id |
java.util.Vector<Coac> |
getRecCoac(java.lang.String nsid,
int limit)
Get recommended contacts |
void |
insert(java.lang.String nsid,
java.lang.String contactNsid)
Inserting data to the contacts table |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbContacts(java.lang.String path)
path - to where the database is located| Method Detail |
|---|
public void insert(java.lang.String nsid,
java.lang.String contactNsid)
throws java.sql.SQLException,
java.security.NoSuchAlgorithmException,
java.io.UnsupportedEncodingException
nsid - user id from the flickr websitecontactNsid - user id from the flickr website
java.sql.SQLException
java.security.NoSuchAlgorithmException
java.io.UnsupportedEncodingException
public boolean checkExistingContacts(java.lang.String nsid,
java.lang.String contactNsid)
throws java.sql.SQLException
nsid - user id from the flickr websitecontactNsid - user id from the flickr website
java.sql.SQLException
public void deleteContacts(java.lang.String nsid)
throws java.sql.SQLException
nsid - user id from the flickr website
java.sql.SQLException
public java.util.Vector<Coac> getRecCoac(java.lang.String nsid,
int limit)
throws java.sql.SQLException
nsid - user id from the flickr websitelimit - limitation on the number of returns
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||