|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flickrrecsys.db.DbGroup
public class DbGroup
Connecting to the group table in the database
| Constructor Summary | |
|---|---|
DbGroup(java.lang.String path)
Constructor which gets the connection to the database |
|
| Method Summary | |
|---|---|
boolean |
alreadyExist(java.lang.String groupId)
Check if the group id already exist |
int |
getGId(java.lang.String groupId)
Get local group id |
int |
insert(java.lang.String groupName,
java.lang.String groupId)
Insert group |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbGroup(java.lang.String path)
path - to where the database details are| Method Detail |
|---|
public int insert(java.lang.String groupName,
java.lang.String groupId)
throws java.sql.SQLException,
java.security.NoSuchAlgorithmException,
java.io.UnsupportedEncodingException
groupName - name of groupgroupId - group id from the flickr website
java.sql.SQLException
java.security.NoSuchAlgorithmException
java.io.UnsupportedEncodingException
public boolean alreadyExist(java.lang.String groupId)
throws java.sql.SQLException
groupId - group id from the flickr website
java.sql.SQLException
public int getGId(java.lang.String groupId)
throws java.sql.SQLException
groupId - group id from the flickr website
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||