@Repository public class TagDaoImpl extends AbstractHerdDao implements TagDao
AbstractHerdDao.AggregateFunctionBUSINESS_OBJECT_DATA_PARTITIONS, BUSINESS_OBJECT_DATA_SUBPARTITIONS, configurationHelper, DEFAULT_SINGLE_DAY_DATE_MASK, MAX_PARTITION_FILTERS_PER_REQUESTentityManager| Constructor and Description |
|---|
TagDaoImpl() |
| 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<Integer> ids)
Gets a list of tag entities by a list of ids
|
List<TagChild> |
getTagsByTagTypeAndParentTagCode(String tagType,
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.
|
getMaximumBusinessObjectDataVersionSubQuery, getQueryRestriction, getQueryRestriction, getQueryRestriction, getQueryRestrictionOnBusinessObjectDataVersionAndStatus, getQueryRestrictionOnPartitionValues, getQueryRestrictionOnPartitionValues, getQueryRestrictionOnPartitionValues, getQueryRestrictionOnPartitionValues, getQueryRestrictionOnStorage, savedelete, detach, executeSingleResultQuery, findAll, findById, findByNamedProperties, findUniqueByNamedProperties, getCurrentTimestamp, getEntityManager, getPredicateForInClause, query, queryByNamedParams, saveAndRefreshclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, detach, findAll, findById, findByNamedProperties, findUniqueByNamedProperties, getCurrentTimestamp, getEntityManager, query, queryByNamedParams, save, saveAndRefreshpublic List<TagEntity> getChildrenTags(List<TagEntity> parentTagEntities)
TagDaogetChildrenTags in interface TagDaoparentTagEntities - the list of parent tag entitiespublic TagEntity getTagByKey(TagKey tagKey)
TagDaogetTagByKey in interface TagDaotagKey - the tag keypublic TagEntity getTagByTagTypeAndDisplayName(String tagTypeCode, String displayName)
TagDaogetTagByTagTypeAndDisplayName in interface TagDaotagTypeCode - the specified tag type codedisplayName - the specified display namepublic List<TagEntity> getTags()
TagDaopublic List<TagEntity> getTagsByIds(List<Integer> ids)
TagDaogetTagsByIds in interface TagDaoids - a list of tag idspublic List<TagChild> getTagsByTagTypeAndParentTagCode(String tagType, String parentTagCode)
TagDaogetTagsByTagTypeAndParentTagCode in interface TagDaotagType - the tag type codeparentTagCode - the parent tag code, may be nullpublic List<TagEntity> getTagsByTagTypeEntityAndParentTagCode(TagTypeEntity tagTypeEntity, String parentTagCode, Boolean isParentTagNull)
TagDaogetTagsByTagTypeEntityAndParentTagCode in interface TagDaotagTypeEntity - 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 specifiedpublic List<TagEntity> getPercentageOfAllTags(double percentage)
TagDaogetPercentageOfAllTags in interface TagDaopercentage - the percentage of all tags to return. Value between 0 and 1 (inclusive).public List<TagEntity> getMostRecentTags(int numberOfResults)
TagDaogetMostRecentTags in interface TagDaonumberOfResults - the number of results to returnpublic long getCountOfAllTags()
TagDaogetCountOfAllTags in interface TagDaoCopyright © 2019. All rights reserved.