|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flickrrecsys.db.DbLoadingDuration
public class DbLoadingDuration
Connection to the loading duration
| Constructor Summary | |
|---|---|
DbLoadingDuration(java.lang.String path)
Constructor which gets the connection to the database |
|
| Method Summary | |
|---|---|
boolean |
alreadyExist(java.lang.String nsid)
Check if the timestamp has already been recorded |
int |
getlId(java.lang.String nsid)
Get loading duration id |
java.sql.Timestamp |
getStartingTime(java.lang.String nsid,
java.sql.Timestamp endTime)
Get the starting time in Timestamp |
void |
insert(java.lang.String nsid,
java.sql.Timestamp startingTime)
Insert loading duration |
void |
updateEndTime(java.lang.String nsid,
java.sql.Timestamp endTime)
Update the finish time |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbLoadingDuration(java.lang.String path)
path - to where the database is located| Method Detail |
|---|
public void insert(java.lang.String nsid,
java.sql.Timestamp startingTime)
throws java.sql.SQLException,
java.security.NoSuchAlgorithmException,
java.io.UnsupportedEncodingException
nsid - user id from the flickr websitestartingTime - current time of the machine
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 int getlId(java.lang.String nsid)
throws java.sql.SQLException
nsid - user id from the flickr website
java.sql.SQLException
public void updateEndTime(java.lang.String nsid,
java.sql.Timestamp endTime)
throws java.sql.SQLException
nsid - user id from the flickr websiteendTime - the end time
java.sql.SQLException
public java.sql.Timestamp getStartingTime(java.lang.String nsid,
java.sql.Timestamp endTime)
throws java.sql.SQLException
nsid - user id from the flickr websiteendTime - end time
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||