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

All Known Implementing Classes:
HibernateBoundEntityDao

public interface BoundEntityDao


Method Summary
 List<BoundEntity> findAllForBinding(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.
 BoundEntity findBoundEntity(CustomFieldValue customFieldValue)
          given a CustomFieldValue id, returns the BoundEntity instance it is related to.
 BoundEntity findBoundEntity(Long boundEntityId, BindableEntity entityType)
          Will retrieve a BoundEntity according to its ID and type.
 boolean hasCustomField(Long boundEntityId, BindableEntity entityType)
          Tells whether the given bound entity has custom fields or not.
 

Method Detail

findAllForBinding

List<BoundEntity> findAllForBinding(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

BoundEntity findBoundEntity(CustomFieldValue customFieldValue)
given a CustomFieldValue id, returns the BoundEntity instance it is related to.

Parameters:
customFieldValueId -
Returns:

findBoundEntity

BoundEntity findBoundEntity(Long boundEntityId,
                            BindableEntity entityType)
Will retrieve a BoundEntity according to its ID and type.

Parameters:
boundEntityId -
entityType -
Returns:

hasCustomField

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

Parameters:
boundEntityId -
entityType -
Returns:


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