Package de.xima.fc.dao.interfaces
Interface IProjectTagDao
- All Superinterfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<ProjectTag,
,Long, IEntityContext> IGenericDao<ProjectTag>
,IProjektDependentBaseDao<ProjectTag>
- All Known Implementing Classes:
ProjectTagDao
Data access object for creating, updating, and deleting
ProjectTag
entities.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionFetches all IDs of all projects that have at least one tag which starts with one of the given tags.getTags
(IEntityContext ec, Iterable<Long> projectIds) Fetches all tags for the given projects.void
updateTags
(IEntityContext ec, Projekt project, Iterable<String> tags) Updates the given project with the tags.Methods inherited from interface de.xima.cmn.dao.interfaces.IAbstractDao
all, bulkDelete, bulkUpdate, checkLockingVersion, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
Methods inherited from interface de.xima.fc.dao.interfaces.IGenericDao
count, findAll, findSingle, getEntityRefs, read
-
Method Details
-
updateTags
Updates the given project with the tags. All existing tags are replaced with the given tags. Note that this modifies the project. You should read the project again after this operation.- Parameters:
ec
- Entity context for accessing the database.project
- Project to update.tags
- New tags for the project.
-
getTags
Fetches all tags for the given projects.- Parameters:
ec
- Entity context for accessing the database.projectIds
- IDs of the projects for which to fetch the tags.- Returns:
- Map with they key being the project ID, mapped to the tags for that project.
-
getProjectIdsHavingTagsStartingWith
Fetches all IDs of all projects that have at least one tag which starts with one of the given tags.- Parameters:
ec
- Entity context for accessing the database.tags
- Tags to search for.- Returns:
- All project IDs that have at least one tag starting with one of the given tags.
-