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.
|
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<Integer> 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<Integer> 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 specifiedCopyright © 2017. All rights reserved.