2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.api
.service
;
12 import java
.util
.List
;
14 import org
.apache
.log4j
.Logger
;
16 import eu
.etaxonomy
.cdm
.model
.common
.CdmBase
;
17 import eu
.etaxonomy
.cdm
.model
.common
.IdentifiableEntity
;
18 import eu
.etaxonomy
.cdm
.model
.name
.TaxonNameBase
;
19 import eu
.etaxonomy
.cdm
.persistence
.dao
.common
.IIdentifiableDao
;
21 public abstract class IdentifiableServiceBase
<T
extends IdentifiableEntity
> extends ServiceBase
<T
>
22 implements IIdentifiableEntityService
<T
>{
23 static Logger logger
= Logger
.getLogger(IdentifiableServiceBase
.class);
24 // protected IIdentifiableDao<T> dao;
26 // protected void setEntityDao(IIdentifiableDao<T> dao){
30 protected List
<T
> findByTitle(String name
) {
31 // return ((IIdentifiableDao)dao).findByName(name);
35 protected List
<T
> findCdmObjectsByTitle(String title
){
36 return ((IIdentifiableDao
)dao
).findByTitle(title
);
39 protected List
<T
> findCdmObjectsByTitle(String title
, Class
<T
> clazz
){
42 protected List
<T
> findCdmObjectsByTitle(String title
, CdmBase sessionObject
){
43 return ((IIdentifiableDao
)dao
).findByTitle(title
, sessionObject
);