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