Class TagDAO
DAO for com.ubs.backend.classes.database.Tag
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSingleTempTag(long tagID)Selects a single temp tag with idgetSingleTempTag(long tagID, javax.persistence.EntityManager em)voidremove(long id)Removes Tag from the DatabaseselectByTag(String tag)select tag by tag contentselectByTag(String tag, javax.persistence.EntityManager em)selectNoAnswerTag(javax.persistence.EntityManager em)select all tags that do not have any connection to any kind of answers
-
Constructor Details
-
TagDAO
public TagDAO()
-
-
Method Details
-
selectByTag
-
selectByTag
select tag by tag content- Parameters:
tag-- Returns:
- Since:
- 17.07.2021
-
selectNoAnswerTag
select all tags that do not have any connection to any kind of answers- Parameters:
em-- Returns:
- Since:
- 17.07.2021
-
remove
public void remove(long id)Removes Tag from the Database -
getSingleTempTag
- Parameters:
tagID-em-- Returns:
- Since:
- 27.07.2021
-
getSingleTempTag
Selects a single temp tag with id- Parameters:
tagID-- Returns:
- the new generated tempTag
- Since:
- 27.07.2021
-