org.squashtest.tm.service.internal.repository.hibernate
Class HibernateBoundEntityDao

java.lang.Object
  extended by org.squashtest.tm.service.internal.repository.hibernate.HibernateBoundEntityDao
All Implemented Interfaces:
BoundEntityDao

@Repository
public class HibernateBoundEntityDao
extends Object
implements BoundEntityDao


Constructor Summary
HibernateBoundEntityDao()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateBoundEntityDao

public HibernateBoundEntityDao()
Method Detail

findAllForBinding

public List<org.squashtest.tm.domain.customfield.BoundEntity> findAllForBinding(org.squashtest.tm.domain.customfield.CustomFieldBinding customFieldBinding)
Description copied from interface: BoundEntityDao
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.

Specified by:
findAllForBinding in interface BoundEntityDao
Returns:

findBoundEntity

public org.squashtest.tm.domain.customfield.BoundEntity findBoundEntity(org.squashtest.tm.domain.customfield.CustomFieldValue customFieldValue)
Description copied from interface: BoundEntityDao
given a CustomFieldValue id, returns the BoundEntity instance it is related to.

Specified by:
findBoundEntity in interface BoundEntityDao
Returns:

findBoundEntity

public org.squashtest.tm.domain.customfield.BoundEntity findBoundEntity(Long boundEntityId,
                                                                        org.squashtest.tm.domain.customfield.BindableEntity entityType)
Description copied from interface: BoundEntityDao
Will retrieve a BoundEntity according to its ID and type.

Specified by:
findBoundEntity in interface BoundEntityDao
Returns:

hasCustomField

public boolean hasCustomField(Long boundEntityId,
                              org.squashtest.tm.domain.customfield.BindableEntity entityType)
Description copied from interface: BoundEntityDao
Tells whether the given bound entity has custom fields or not.

Specified by:
hasCustomField in interface BoundEntityDao
Returns:


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