org.squashtest.tm.service.internal.repository
public interface CustomFieldValueDao extends CustomCustomFieldValueDao
| 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 |
delete(org.squashtest.tm.domain.customfield.CustomFieldValue value)
'nuff said.
|
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<org.squashtest.tm.domain.customfield.CustomFieldValue> |
findAllCustomFieldValueOfBindingAndEntity(long customFieldBindingId,
long boundEntityId,
org.squashtest.tm.domain.customfield.BindableEntity bindableEntity)
return the custom field value matchine the given params.
|
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)
'nuff said.
|
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. |
void |
persist(org.squashtest.tm.domain.customfield.CustomFieldValue newValue)
'nuff said.
|
findAll, findAllByIds, findByIdclearFromCache, clearFromCache, flush, persist, remove, removeAllstatic final String ENTITY_TYPE
void persist(org.squashtest.tm.domain.customfield.CustomFieldValue newValue)
persist in interface GenericDao<org.squashtest.tm.domain.customfield.CustomFieldValue>newValue - void delete(org.squashtest.tm.domain.customfield.CustomFieldValue value)
value - void deleteAll(List<Long> ids)
ids - void deleteAllForBinding(Long bindingId)
CustomFieldBinding, given its id.bindingId - void deleteAllForEntity(Long entityId, org.squashtest.tm.domain.customfield.BindableEntity entity)
entityId - entity - void deleteAllForEntities(org.squashtest.tm.domain.customfield.BindableEntity entityType,
List<Long> entityIds)
entityTpe - entityIds - org.squashtest.tm.domain.customfield.CustomFieldValue findById(Long id)
id - List<org.squashtest.tm.domain.customfield.CustomFieldValue> findAllCustomValues(long entityId, org.squashtest.tm.domain.customfield.BindableEntity entityType)
CustomFieldValue for the given entity, sorted according to the
order specified in their respective CustomFieldBinding.entityId - entityType - List<org.squashtest.tm.domain.customfield.CustomFieldValue> batchedFindAllCustomValuesFor(Collection<Long> entityIds, org.squashtest.tm.domain.customfield.BindableEntity entityType)
entityIds - entityType - List<org.squashtest.tm.domain.customfield.CustomFieldValue> batchedInitializedFindAllCustomValuesFor(List<Long> entityIds, org.squashtest.tm.domain.customfield.BindableEntity entityType)
entityIds - entityType - 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)
List<org.squashtest.tm.domain.customfield.CustomFieldValue> findAllCustomValuesOfBinding(long customFieldBindingId)
CustomFieldValue related to a given CustomFieldBinding, sorted according to
their custom field binding order.customFieldBindingId - List<org.squashtest.tm.domain.customfield.CustomFieldValue> findAllCustomValuesOfBindings(List<Long> customFieldBindingIds)
customFieldBindingIds - List<CustomFieldValueDao.CustomFieldValuesPair> findPairedCustomFieldValues(org.squashtest.tm.domain.customfield.BindableEntity entity, Long origEntityId, 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.entity - origEntityId - copyEntityId - List<org.squashtest.tm.domain.customfield.CustomFieldValue> findAllCustomFieldValueOfBindingAndEntity(long customFieldBindingId, long boundEntityId, org.squashtest.tm.domain.customfield.BindableEntity bindableEntity)
customFieldBindingId - : the id of the CustomFieldBindingboundEntityId - : the id of the BoundEntitybindableEntity - : the type of the BoundEntityList<org.squashtest.tm.domain.customfield.CustomFieldValue> findAllForEntityAndRenderingLocation(long entityId, org.squashtest.tm.domain.customfield.BindableEntity entityType, org.squashtest.tm.domain.customfield.RenderingLocation renderingLocation)
Copyright © 2010-2014 Henix, henix.fr. All Rights Reserved.