public interface CustomFieldValueDao extends org.springframework.data.jpa.repository.JpaRepository<org.squashtest.tm.domain.customfield.CustomFieldValue,Long>
| Modifier and Type | Interface and Description |
|---|---|
static class |
CustomFieldValueDao.CustomFieldValuesPair |
| Modifier and Type | Field and Description |
|---|---|
static String |
ENTITY_TYPE |
| Modifier and Type | Method and Description |
|---|---|
List<org.squashtest.tm.domain.customfield.CustomFieldValue> |
batchedFindAllCustomValuesFor(Collection<Long> entityIds,
org.squashtest.tm.domain.customfield.BindableEntity entityType)
Same as above, list version.
|
List<org.squashtest.tm.domain.customfield.CustomFieldValue> |
batchedInitializedFindAllCustomValuesFor(List<Long> entityIds,
org.squashtest.tm.domain.customfield.BindableEntity entityType)
Same as above, and initialiazes the bindings and custom fields.
|
List<org.squashtest.tm.domain.customfield.CustomFieldValue> |
batchedRestrictedFindAllCustomValuesFor(List<Long> entityIds,
org.squashtest.tm.domain.customfield.BindableEntity entityType,
Collection<org.squashtest.tm.domain.customfield.CustomField> customFields)
Same as above, will restrict to the custom fields specified as arguments
|
void |
deleteAll(List<Long> ids)
Delete all the CustomFieldValue, given their ids.
|
void |
deleteAllForBinding(Long bindingId)
Delete all the CustomFieldValue related to a
CustomFieldBinding, given its id. |
void |
deleteAllForEntities(org.squashtest.tm.domain.customfield.BindableEntity entityType,
List<Long> entityIds)
Delete all the custom field values related to a bunch of bound entities
|
void |
deleteAllForEntity(Long entityId,
org.squashtest.tm.domain.customfield.BindableEntity entity)
Delete all the custom field values related to a BoundEntity, identified by its id and BindableEntity
|
List<String> |
findAllAvailableTagForEntityInProjects(org.squashtest.tm.domain.customfield.BindableEntity boundEntityType,
List<Long> projectIds) |
List<org.squashtest.tm.domain.customfield.CustomFieldValue> |
findAllCustomValues(long entityId,
org.squashtest.tm.domain.customfield.BindableEntity entityType)
returns the list of
CustomFieldValue for the given entity, sorted according to the
order specified in their respective CustomFieldBinding. |
List<org.squashtest.tm.domain.customfield.CustomFieldValue> |
findAllCustomValuesOfBinding(long customFieldBindingId)
returns all the
CustomFieldValue related to a given CustomFieldBinding, sorted according to
their custom field binding order. |
List<org.squashtest.tm.domain.customfield.CustomFieldValue> |
findAllCustomValuesOfBindings(List<Long> customFieldBindingIds)
returns all the CustomFieldValue related to a list of CustomFieldBinding, the resulting elements will be
returned in unspecified order
|
List<org.squashtest.tm.domain.customfield.CustomFieldValue> |
findAllForEntityAndRenderingLocation(long entityId,
org.squashtest.tm.domain.customfield.BindableEntity entityType,
org.squashtest.tm.domain.customfield.RenderingLocation renderingLocation) |
Long |
findBoundEntityId(Long customFieldValueId) |
org.squashtest.tm.domain.customfield.CustomFieldValue |
findById(Long id) |
List<CustomFieldValueDao.CustomFieldValuesPair> |
findPairedCustomFieldValues(org.squashtest.tm.domain.customfield.BindableEntity entity,
Long origEntityId,
Long copyEntityId)
Will return instances of
CustomFieldValueDao.CustomFieldValuesPair, that will pair two CustomFieldValue that represents the same
CustomFieldBinding. |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAllstatic final String ENTITY_TYPE
@Query
@Modifying
@Transactional
void deleteAll(@Param(value="ids")
List<Long> ids)
@Query
@Modifying
@Transactional
void deleteAllForBinding(@Param(value="bindingId")
Long bindingId)
CustomFieldBinding, given its id.@Query
@Modifying
@Transactional
void deleteAllForEntity(@Param(value="entityId")
Long entityId,
@Param(value="entityType")
org.squashtest.tm.domain.customfield.BindableEntity entity)
@Query
@Modifying
@Transactional
void deleteAllForEntities(@Param(value="entityType")
org.squashtest.tm.domain.customfield.BindableEntity entityType,
@Param(value="entityIds")
List<Long> entityIds)
org.squashtest.tm.domain.customfield.CustomFieldValue findById(Long id)
@Query List<org.squashtest.tm.domain.customfield.CustomFieldValue> findAllCustomValues(@Param(value="entityId") long entityId, @Param(value="entityType") org.squashtest.tm.domain.customfield.BindableEntity entityType)
CustomFieldValue for the given entity, sorted according to the
order specified in their respective CustomFieldBinding.@Query List<org.squashtest.tm.domain.customfield.CustomFieldValue> batchedFindAllCustomValuesFor(@Param(value="entityIds") Collection<Long> entityIds, @Param(value="entityType") org.squashtest.tm.domain.customfield.BindableEntity entityType)
@Query List<org.squashtest.tm.domain.customfield.CustomFieldValue> batchedInitializedFindAllCustomValuesFor(@Param(value="entityIds") List<Long> entityIds, @Param(value="entityType") org.squashtest.tm.domain.customfield.BindableEntity entityType)
@Query List<org.squashtest.tm.domain.customfield.CustomFieldValue> batchedRestrictedFindAllCustomValuesFor(@Param(value="entityIds") List<Long> entityIds, @Param(value="entityType") org.squashtest.tm.domain.customfield.BindableEntity entityType, @Param(value="customFields") Collection<org.squashtest.tm.domain.customfield.CustomField> customFields)
@Query List<org.squashtest.tm.domain.customfield.CustomFieldValue> findAllCustomValuesOfBinding(@Param(value="bindingId") long customFieldBindingId)
CustomFieldValue related to a given CustomFieldBinding, sorted according to
their custom field binding order.@Query List<org.squashtest.tm.domain.customfield.CustomFieldValue> findAllCustomValuesOfBindings(@Param(value="bindingIds") List<Long> customFieldBindingIds)
@Query List<CustomFieldValueDao.CustomFieldValuesPair> findPairedCustomFieldValues(@Param(value="entityType") org.squashtest.tm.domain.customfield.BindableEntity entity, @Param(value="origEntityId") Long origEntityId, @Param(value="copyEntityId") Long copyEntityId)
CustomFieldValueDao.CustomFieldValuesPair, that will pair two CustomFieldValue that represents the same
CustomFieldBinding. Those two CustomFieldValue belongs to two BoundEntity as specified by the parameters.
One of them is considered as the original and the other one is the copy.@Query Long findBoundEntityId(@Param(value="customFieldValueId") Long customFieldValueId)
@Query List<org.squashtest.tm.domain.customfield.CustomFieldValue> findAllForEntityAndRenderingLocation(@Param(value="entityId") long entityId, @Param(value="entityType") org.squashtest.tm.domain.customfield.BindableEntity entityType, @Param(value="location") org.squashtest.tm.domain.customfield.RenderingLocation renderingLocation)
Copyright © 2010–2017 Henix, henix.fr. All rights reserved.