org.squashtest.tm.service.internal.repository
Interface CustomFieldValueDao


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

persist

void persist(org.squashtest.tm.domain.customfield.CustomFieldValue newValue)
'nuff said.

Parameters:
newValue -

delete

void delete(org.squashtest.tm.domain.customfield.CustomFieldValue value)
'nuff said.

Parameters:
value -

deleteAll

void deleteAll(List<Long> ids)
Delete all the CustomFieldValue, given their ids.

Parameters:
ids -

deleteAllForBinding

void deleteAllForBinding(Long bindingId)
Delete all the CustomFieldValue related to a CustomFieldBinding, given its id.

Parameters:
bindingId -

deleteAllForEntity

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

Parameters:
entityId -
entity -

deleteAllForEntities

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

Parameters:
entityTpe -
entityIds -

findById

org.squashtest.tm.domain.customfield.CustomFieldValue findById(Long id)
'nuff said.

Parameters:
id -
Returns:

findAllCustomValues

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.

Parameters:
entityId -
entityType -
Returns:

batchedFindAllCustomValuesFor

List<org.squashtest.tm.domain.customfield.CustomFieldValue> batchedFindAllCustomValuesFor(List<Long> entityIds,
                                                                                          org.squashtest.tm.domain.customfield.BindableEntity entityType)
Same as above, list version.

Parameters:
entityIds -
entityType -
Returns:

batchedRestrictedFindAllCustomValuesFor

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

Returns:

findAllCustomValuesOfBinding

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.

Parameters:
customFieldBindingId -
Returns:

findAllCustomValuesOfBindings

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

Parameters:
customFieldBindingIds -
Returns:

findPairedCustomFieldValues

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. 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.

Parameters:
entity -
origEntityId -
copyEntityId -
Returns:

findAllCustomFieldValueOfBindingAndEntity

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.

Parameters:
customFieldBindingId - : the id of the CustomFieldBinding
boundEntityId - : the id of the BoundEntity
bindableEntity - : the type of the BoundEntity
Returns:

findBoundEntityId

Long findBoundEntityId(Long customFieldValueId)


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.