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

All Known Implementing Classes:
HibernateBoundEntityDao

public interface BoundEntityDao


Method Summary
 List<org.squashtest.tm.domain.customfield.BoundEntity> findAllForBinding(org.squashtest.tm.domain.customfield.CustomFieldBinding customFieldBinding)
          given a CustomFieldBinding, returns all the existing entities subject to that binding; namely all the {@link BindableEntity} that belongs to the project of that binding.
 org.squashtest.tm.domain.customfield.BoundEntity findBoundEntity(org.squashtest.tm.domain.customfield.CustomFieldValue customFieldValue)
          given a CustomFieldValue id, returns the BoundEntity instance it is related to.
 org.squashtest.tm.domain.customfield.BoundEntity findBoundEntity(Long boundEntityId, org.squashtest.tm.domain.customfield.BindableEntity entityType)
          Will retrieve a BoundEntity according to its ID and type.
 boolean hasCustomField(Long boundEntityId, org.squashtest.tm.domain.customfield.BindableEntity entityType)
          Tells whether the given bound entity has custom fields or not.
 

Method Detail

findAllForBinding

List<org.squashtest.tm.domain.customfield.BoundEntity> findAllForBinding(org.squashtest.tm.domain.customfield.CustomFieldBinding customFieldBinding)
given a CustomFieldBinding, returns all the existing entities subject to that binding; namely all the {@link BindableEntity} that belongs to the project of that binding.

Parameters:
customFieldBinding -
Returns:

findBoundEntity

org.squashtest.tm.domain.customfield.BoundEntity findBoundEntity(org.squashtest.tm.domain.customfield.CustomFieldValue customFieldValue)
given a CustomFieldValue id, returns the BoundEntity instance it is related to.

Parameters:
customFieldValueId -
Returns:

findBoundEntity

org.squashtest.tm.domain.customfield.BoundEntity findBoundEntity(Long boundEntityId,
                                                                 org.squashtest.tm.domain.customfield.BindableEntity entityType)
Will retrieve a BoundEntity according to its ID and type.

Parameters:
boundEntityId -
entityType -
Returns:

hasCustomField

boolean hasCustomField(Long boundEntityId,
                       org.squashtest.tm.domain.customfield.BindableEntity entityType)
Tells whether the given bound entity has custom fields or not.

Parameters:
boundEntityId -
entityType -
Returns:


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