public class TagDaoImpl extends TagDaoBase
TagTRANSFORM_NONE| Constructor and Description |
|---|
TagDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
Object |
create(int transform,
Tag tag)
Does the same thing as
TagDao.create(Tag) with an additional flag called
transform. |
List<Long> |
getFollowers(Long tagId)
Return the IDs of all users that follow the tag with the given ID.
|
protected List<TagData> |
handleFindByPrefix(String prefix,
ResultSpecification filterSpecification)
Performs the core logic for
TagDaoBase.findByPrefix(String, com.communote.server.core.filter.ResultSpecification) |
protected Tag |
handleFindByTagStore(String tagStoreTagId,
String tagStoreAlias)
Performs the core logic for
TagDaoBase.findByTagStore(String, String) |
void |
remove(Tag tag)
Removes the instance of Tag from the persistent store.
|
void |
removeNoteTag(long oldTagId,
Long newTagId)
This method removes the given tag.
|
create, create, create, evict, findByPrefix, findByTagStore, getGlobalIdDao, load, load, loadAll, loadAll, remove, setGlobalIdDao, transformEntities, transformEntity, update, updatepublic Object create(int transform, Tag tag)
TagDao.create(Tag) with an additional flag called
transform. If this flag is set to TRANSFORM_NONE then the returned
entity will NOT be transformed. If this flag is any of the other constants
defined here then the result WILL BE passed through an operation which can
optionally transform the entity (into a value object for example). By default, transformation
does not occur.create in interface TagDaocreate in class TagDaoBaseTagDao.create(int transform, Tag)public List<Long> getFollowers(Long tagId)
TagDaotagId - the ID of the tag for which the followers should be returnedprotected List<TagData> handleFindByPrefix(String prefix, ResultSpecification filterSpecification)
TagDaoBase.findByPrefix(String, com.communote.server.core.filter.ResultSpecification)handleFindByPrefix in class TagDaoBaseprotected Tag handleFindByTagStore(String tagStoreTagId, String tagStoreAlias)
TagDaoBase.findByTagStore(String, String)handleFindByTagStore in class TagDaoBasepublic void remove(Tag tag)
TagDaoTagDao.remove(Tag)public void removeNoteTag(long oldTagId,
Long newTagId)
oldTagId - Id of the tag to delete.newTagId - Id of an optional new tag, the data of the old tag should be assigned to.Copyright © 2019 Communote team. All rights reserved.