Revision 4af8adcf
Added by Katja Luther over 1 year ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/hibernate/term/DefinedTermDaoImpl.java | ||
---|---|---|
778 | 778 |
} |
779 | 779 |
|
780 | 780 |
@Override |
781 |
public Collection<TermDto> findByTitleAsDto(String title, TermType termType) { |
|
781 |
public Collection<TermDto> findByTitleAsDtoWithVocDto(String title, TermType termType) {
|
|
782 | 782 |
String queryString = TermDto.getTermDtoSelect() |
783 | 783 |
+ " where a.titleCache like :title " |
784 | 784 |
+ (termType!=null?" and a.termType = :termType ":""); |
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/term/IDefinedTermDao.java | ||
---|---|---|
243 | 243 |
* @param termType the termType that the terms have to match |
244 | 244 |
* @return a collection of matching term DTOs |
245 | 245 |
*/ |
246 |
public Collection<TermDto> findByTitleAsDto(String title, TermType termType); |
|
246 |
public Collection<TermDto> findByTitleAsDtoWithVocDto(String title, TermType termType);
|
|
247 | 247 |
|
248 | 248 |
/** |
249 | 249 |
* Returns a collection of {@link TermDto}s that match the given search parameters. |
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/ITermService.java | ||
---|---|---|
244 | 244 |
* @param termType the termType that the terms have to match |
245 | 245 |
* @return a collection of matching term DTOs |
246 | 246 |
*/ |
247 |
public Collection<TermDto> findByTitleAsDto(String title, TermType termType); |
|
247 |
public Collection<TermDto> findByTitleAsDtoWithVocDto(String title, TermType termType);
|
|
248 | 248 |
|
249 | 249 |
/** |
250 | 250 |
* Returns a collection of {@link TermDto}s that match the given search parameters. |
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/TermServiceImpl.java | ||
---|---|---|
613 | 613 |
} |
614 | 614 |
|
615 | 615 |
@Override |
616 |
public Collection<TermDto> findByTitleAsDto(String title, TermType termType){ |
|
617 |
return dao.findByTitleAsDto(title, termType); |
|
616 |
public Collection<TermDto> findByTitleAsDtoWithVocDto(String title, TermType termType){
|
|
617 |
return dao.findByTitleAsDtoWithVocDto(title, termType);
|
|
618 | 618 |
} |
619 | 619 |
|
620 | 620 |
@Override |
Also available in: Unified diff
ref #9814: rename findByTitleasDto method to findByTitleAsDtoWithVocDto