public interface CustomFieldDao extends org.springframework.data.jpa.repository.JpaRepository<org.squashtest.tm.domain.customfield.CustomField,Long>
| Modifier and Type | Method and Description |
|---|---|
List<org.squashtest.tm.domain.customfield.CustomField> |
findAllBindableCustomFields(Long projectId,
org.squashtest.tm.domain.customfield.BindableEntity bindableEntity)
Will return the list of custom fields that can be bound to the given project and the given bindable entity (ie,
those who aren't bound yet).
|
List<org.squashtest.tm.domain.customfield.CustomField> |
findAllBoundCustomFields(Long projectId,
org.squashtest.tm.domain.customfield.BindableEntity bindableEntity)
returns the complementary of
findAllBindableCustomFields(Long, BindableEntity) |
List<org.squashtest.tm.domain.customfield.CustomField> |
findAllByOrderByNameAsc()
Will find all custom fields and return them ordered by their name.
|
org.squashtest.tm.domain.customfield.CustomField |
findByCode(String code)
Will find the CustomField having a code value matching the parameter.
|
org.squashtest.tm.domain.customfield.CustomField |
findById(long id) |
org.squashtest.tm.domain.customfield.CustomField |
findByName(String name)
Returns the field matching the name if it exists.
|
org.squashtest.tm.domain.customfield.SingleSelectField |
findSingleSelectFieldById(Long customFieldId)
This is a downcast-version of #findOne
will find the
SingleSelectField of the given id |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAllorg.squashtest.tm.domain.customfield.CustomField findById(long id)
@Query(value="select ssf from SingleSelectField ssf where id = :customFieldId")
org.squashtest.tm.domain.customfield.SingleSelectField findSingleSelectFieldById(@Param(value="customFieldId")
Long customFieldId)
SingleSelectField of the given idcustomFieldId - the id of the wanted SingleSelectFieldSingleSelectField or null@Query List<org.squashtest.tm.domain.customfield.CustomField> findAllBindableCustomFields(Long projectId, org.squashtest.tm.domain.customfield.BindableEntity bindableEntity)
projectId - bindableEntity - @Query List<org.squashtest.tm.domain.customfield.CustomField> findAllBoundCustomFields(Long projectId, org.squashtest.tm.domain.customfield.BindableEntity bindableEntity)
findAllBindableCustomFields(Long, BindableEntity)projectId - bindableEntity - org.squashtest.tm.domain.customfield.CustomField findByName(@NotNull
String name)
name - List<org.squashtest.tm.domain.customfield.CustomField> findAllByOrderByNameAsc()
CustomField ordered by CustomField.getName()org.squashtest.tm.domain.customfield.CustomField findByCode(@NotNull
String code)
code - CustomField matching the code param.Copyright © 2010–2017 Henix, henix.fr. All rights reserved.