|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flickrrecsys.db.DbSettings
public class DbSettings
Connecting to settings table in the database
| Constructor Summary | |
|---|---|
DbSettings(java.lang.String path)
Constructor which gets the connection to the database |
|
| Method Summary | |
|---|---|
boolean |
alreadyExist(java.lang.String nsid)
Check if the record has already been added |
Settings |
getUserSettings(java.lang.String nsid)
Get user settings |
int |
insert(java.lang.String nsid)
Insert default settings |
void |
updateContactLastUpdate(int sid,
java.sql.Timestamp contactLastUpdate)
Update contactlastupdate |
void |
updateFavoLastUpdate(int sid,
java.sql.Timestamp favoLastUpdate)
Update favolastupdate |
void |
updateGroupLastUpdate(int sid,
java.lang.String nsid,
java.sql.Timestamp groupLastUpdate)
Update group last update |
void |
updateInfoLastUpdate(int sid,
java.sql.Timestamp infoLastUpdate)
Update infolastupdate |
void |
updateLimitCoac(int sid,
int limitCoac)
Update limitcoac |
void |
updateLimitFavo(int sid,
int limitFavo)
Update limitfavo |
void |
updateLimitTs(int sid,
int limitTs)
Update limitts |
void |
updateNoCoac(int sid,
int noCoac)
Update number of contact |
void |
updatePerformedTasks(int sid,
java.lang.String performedTasks)
Update performed tasks |
void |
updateTagLastUpdate(int sid,
java.sql.Timestamp tagLastUpdate)
Update taglastupdate |
void |
updateTagSimilarity(int sid,
float tagSimilarity)
Update tag similarity |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbSettings(java.lang.String path)
path - to where the database details are| Method Detail |
|---|
public int insert(java.lang.String nsid)
throws java.sql.SQLException,
java.security.NoSuchAlgorithmException,
java.io.UnsupportedEncodingException
nsid - user id from the flickr website
java.sql.SQLException
java.security.NoSuchAlgorithmException
java.io.UnsupportedEncodingException
public boolean alreadyExist(java.lang.String nsid)
throws java.sql.SQLException
nsid - user id from the flickr website
java.sql.SQLException
public void updateInfoLastUpdate(int sid,
java.sql.Timestamp infoLastUpdate)
throws java.sql.SQLException
sid - settings idinfoLastUpdate - date and time
java.sql.SQLException
public void updateContactLastUpdate(int sid,
java.sql.Timestamp contactLastUpdate)
throws java.sql.SQLException
sid - settings idcontactLastUpdate - date and time
java.sql.SQLException
public void updateTagLastUpdate(int sid,
java.sql.Timestamp tagLastUpdate)
throws java.sql.SQLException
sid - settings idtagLastUpdate - date and time
java.sql.SQLException
public void updateGroupLastUpdate(int sid,
java.lang.String nsid,
java.sql.Timestamp groupLastUpdate)
throws java.sql.SQLException
sid - settings idnsid - user id from the flickr websitegroupLastUpdate - date and time
java.sql.SQLException
public void updateFavoLastUpdate(int sid,
java.sql.Timestamp favoLastUpdate)
throws java.sql.SQLException
sid - settings idfavoLastUpdate - date and time
java.sql.SQLException
public void updateTagSimilarity(int sid,
float tagSimilarity)
throws java.sql.SQLException
sid - settings idtagSimilarity - date and time
java.sql.SQLException
public void updateNoCoac(int sid,
int noCoac)
throws java.sql.SQLException
sid - settings idnoCoac - number of contact
java.sql.SQLException
public void updatePerformedTasks(int sid,
java.lang.String performedTasks)
throws java.sql.SQLException
sid - settings idperformedTasks - performed tasks
java.sql.SQLException
public Settings getUserSettings(java.lang.String nsid)
throws java.sql.SQLException
nsid - user id from the flickr website
java.sql.SQLException
public void updateLimitFavo(int sid,
int limitFavo)
throws java.sql.SQLException
sid - settings idlimitFavo - number of results to be displayed
java.sql.SQLException
public void updateLimitCoac(int sid,
int limitCoac)
throws java.sql.SQLException
sid - settings idlimitCoac - number of coac to be displayed
java.sql.SQLException
public void updateLimitTs(int sid,
int limitTs)
throws java.sql.SQLException
sid - settings idlimitTs - number of contacts to be displayed
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||