|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CustomFieldValueDao
| Nested Class Summary | |
|---|---|
static class |
CustomFieldValueDao.CustomFieldValuesPair
|
| Method Summary | |
|---|---|
List<org.squashtest.tm.domain.customfield.CustomFieldValue> |
batchedFindAllCustomValuesFor(List<Long> entityIds,
org.squashtest.tm.domain.customfield.BindableEntity entityType)
Same as above, list version. |
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 |
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. |
| Method Detail |
|---|
void persist(org.squashtest.tm.domain.customfield.CustomFieldValue newValue)
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(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 BoundEntity
Long findBoundEntityId(Long customFieldValueId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||