public interface TagDao extends BaseJpaDao
| Modifier and Type | Method and Description |
|---|---|
List<TagEntity> |
getChildrenTags(List<TagEntity> parentTagEntities)
Gets a list of tag entities that are immediate children of the specified parent tag entities.
|
long |
getCountOfAllTags()
Gets a count of all tag entities
|
List<TagEntity> |
getMostRecentTags(int numberOfResults)
Gets the most recent of all tag entities
|
List<TagEntity> |
getPercentageOfAllTags(double percentage)
Gets a percentage of all tag entities.
|
TagEntity |
getTagByKey(TagKey tagKey)
Get a tag entity by its key.
|
TagEntity |
getTagByTagTypeAndDisplayName(String tagTypeCode,
String displayName)
Get a tag entity by its tag type code and display name.
|
List<TagEntity> |
getTags()
Gets a list of all tag entities registered in the system.
|
List<TagEntity> |
getTagsByIds(List<Long> ids)
Gets a list of tag entities by a list of ids
|
List<TagChild> |
getTagsByTagTypeAndParentTagCode(String tagTypeCode,
String parentTagCode)
Gets a list of tag child objects with children flags, whose parent tag code is the specified tag code.
|
List<TagEntity> |
getTagsByTagTypeEntityAndParentTagCode(TagTypeEntity tagTypeEntity,
String parentTagCode,
Boolean isParentTagNull)
Gets a list of tag entities per specified parameters.
|
delete, detach, findAll, findById, findByNamedProperties, findUniqueByNamedProperties, getCurrentTimestamp, getEntityManager, query, queryByNamedParams, save, saveAndRefreshList<TagEntity> getChildrenTags(List<TagEntity> parentTagEntities)
parentTagEntities - the list of parent tag entitiesTagEntity getTagByKey(TagKey tagKey)
tagKey - the tag keyTagEntity getTagByTagTypeAndDisplayName(String tagTypeCode, String displayName)
tagTypeCode - the specified tag type codedisplayName - the specified display nameList<TagEntity> getTags()
List<TagEntity> getTagsByIds(List<Long> ids)
ids - a list of tag idsList<TagChild> getTagsByTagTypeAndParentTagCode(String tagTypeCode, String parentTagCode)
tagTypeCode - the tag type codeparentTagCode - the parent tag code, may be nullList<TagEntity> getTagsByTagTypeEntityAndParentTagCode(TagTypeEntity tagTypeEntity, String parentTagCode, Boolean isParentTagNull)
tagTypeEntity - the tag type entityparentTagCode - the parent tag code, may be nullisParentTagNull - specifies if tags should have no parents (root tags). This flag is ignored when parent tag code is specifiedList<TagEntity> getPercentageOfAllTags(double percentage)
percentage - the percentage of all tags to return. Value between 0 and 1 (inclusive).List<TagEntity> getMostRecentTags(int numberOfResults)
numberOfResults - the number of results to returnlong getCountOfAllTags()
Copyright © 2021. All rights reserved.