(no commit message)
[cdmlib.git] / cdmlib-persistence / src / main / java / eu / etaxonomy / cdm / persistence / dao / common / IDefinedTermDao.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
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.
8 */
9
10 package eu.etaxonomy.cdm.persistence.dao.common;
11
12 import java.util.Enumeration;
13 import java.util.List;
14 import java.util.Locale;
15
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;
20
21
22 public interface IDefinedTermDao extends ICdmEntityDao<DefinedTermBase>, ITitledDao<DefinedTermBase>{
23
24 /**
25 * @param iso639 a two or three letter language code according to iso639-1 or iso639-2
26 * @return the Language or null
27 */
28 //TODO refactor typo:
29 public Language getLanguageByIso(String iso639);
30
31 public List<Language> getLanguagesByIso(List<String> iso639List);
32
33 public List<Language> getLanguagesByLocale(Enumeration<Locale> locales);
34
35 public WaterbodyOrCountry getCountryByIso(String iso639);
36
37 public List<? extends DefinedTermBase> getDefinedTermByRepresentationText(String text, Class clazz );
38
39
40 }