public interface CustomFieldBindingDao extends org.springframework.data.jpa.repository.JpaRepository<org.squashtest.tm.domain.customfield.CustomFieldBinding,Long>, CustomCustomFieldBindingDao
| Modifier and Type | Method and Description |
|---|---|
Long |
countAllForProjectAndEntity(long projectId,
org.squashtest.tm.domain.customfield.BindableEntity boundEntity) |
List<org.squashtest.tm.domain.customfield.CustomFieldBinding> |
findAllAlike(long id)
Given an id, returns the list of all the entities binding the same project to the same entity.
|
List<org.squashtest.tm.domain.customfield.CustomFieldBinding> |
findAllByCustomFieldIdOrderByPositionAsc(long customFieldId) |
List<org.squashtest.tm.domain.customfield.CustomFieldBinding> |
findAllByIds(Collection<Long> ids)
returns the bindings grouped by project and entity, sorted by position
|
List<org.squashtest.tm.domain.customfield.CustomFieldBinding> |
findAllForGenericProject(long projectId) |
List<org.squashtest.tm.domain.customfield.CustomFieldBinding> |
findAllForProjectAndEntity(long projectId,
org.squashtest.tm.domain.customfield.BindableEntity boundEntity) |
org.squashtest.tm.domain.customfield.CustomFieldBinding |
findById(long bindingId) |
List<Object[]> |
findEffectiveBindingsForEntities(List<Long> entityIds,
org.squashtest.tm.domain.customfield.BindableEntity entityType)
batched version of
findEffectiveBindingsForEntity(long, BindableEntity). |
List<org.squashtest.tm.domain.customfield.CustomFieldBinding> |
findEffectiveBindingsForEntity(long entityId,
org.squashtest.tm.domain.customfield.BindableEntity entityType)
Given a bound entity, find which custom field bindings are effectively honored.
|
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAllcount, delete, delete, delete, deleteAll, exists, findOne, savecount, exists, findAll, findOnefindAllForProjectAndEntity, removeCustomFieldBindingsorg.squashtest.tm.domain.customfield.CustomFieldBinding findById(long bindingId)
@Query List<org.squashtest.tm.domain.customfield.CustomFieldBinding> findAllByIds(Collection<Long> ids)
@Query List<org.squashtest.tm.domain.customfield.CustomFieldBinding> findAllForGenericProject(long projectId)
@Query List<org.squashtest.tm.domain.customfield.CustomFieldBinding> findAllForProjectAndEntity(@Param(value="projectId") long projectId, @Param(value="entityType") org.squashtest.tm.domain.customfield.BindableEntity boundEntity)
List<org.squashtest.tm.domain.customfield.CustomFieldBinding> findAllByCustomFieldIdOrderByPositionAsc(long customFieldId)
@Query Long countAllForProjectAndEntity(long projectId, org.squashtest.tm.domain.customfield.BindableEntity boundEntity)
@Query List<org.squashtest.tm.domain.customfield.CustomFieldBinding> findAllAlike(long id)
@Query List<org.squashtest.tm.domain.customfield.CustomFieldBinding> findEffectiveBindingsForEntity(@Param(value="entityId") long entityId, @Param(value="entityType") org.squashtest.tm.domain.customfield.BindableEntity entityType)
@Query List<Object[]> findEffectiveBindingsForEntities(@Param(value="entityIds") List<Long> entityIds, @Param(value="entityType") org.squashtest.tm.domain.customfield.BindableEntity entityType)
findEffectiveBindingsForEntity(long, BindableEntity).
The result set is a bit different as it returns a tuple-2 : [ entityId, CustomFieldBinding]. The first element of the array is an entityId, and the second is a CustomFieldBinding. If an entity (of a given id) has multiple binding actually honored, multiple tuples will be returned for that entity.
Copyright © 2010–2017 Henix, henix.fr. All rights reserved.