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
.persistence
.dao
.common
;
12 import java
.util
.Enumeration
;
13 import java
.util
.List
;
14 import java
.util
.Locale
;
16 import eu
.etaxonomy
.cdm
.model
.common
.DefinedTermBase
;
17 import eu
.etaxonomy
.cdm
.model
.common
.Language
;
18 import eu
.etaxonomy
.cdm
.model
.common
.Representation
;
19 import eu
.etaxonomy
.cdm
.model
.location
.WaterbodyOrCountry
;
22 public interface IDefinedTermDao
extends ICdmEntityDao
<DefinedTermBase
>, ITitledDao
<DefinedTermBase
>{
25 * @param iso639 a two or three letter language code according to iso639-1 or iso639-2
26 * @return the Language or null
29 public Language
getLanguageByIso(String iso639
);
31 public List
<Language
> getLanguagesByIso(List
<String
> iso639List
);
33 public List
<Language
> getLanguagesByLocale(Enumeration
<Locale
> locales
);
35 public WaterbodyOrCountry
getCountryByIso(String iso639
);
37 public List
<?
extends DefinedTermBase
> getDefinedTermByRepresentationText(String text
, Class clazz
);