Project

General

Profile

Download (1.62 KB) Statistics
| Branch: | Tag: | Revision:
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.model.occurrence;
11

    
12
import java.util.UUID;
13

    
14
import eu.etaxonomy.cdm.model.common.DefinedTermBase;
15
import org.apache.log4j.Logger;
16
import javax.persistence.*;
17
import javax.xml.bind.annotation.XmlAccessType;
18
import javax.xml.bind.annotation.XmlAccessorType;
19
import javax.xml.bind.annotation.XmlRootElement;
20

    
21
/**
22
 * http://rs.tdwg.org/ontology/voc/Collection.rdf#SpecimenPreservationMethodTypeTerm
23
 * @author m.doering
24
 * @version 1.0
25
 * @created 08-Nov-2007 13:06:44
26
 */
27
@XmlAccessorType(XmlAccessType.FIELD)
28
@XmlRootElement(name = "PreservationMethod")
29
@Entity
30
public class PreservationMethod extends DefinedTermBase {
31
	private static final Logger logger = Logger.getLogger(PreservationMethod.class);
32
	
33
	/**
34
	 * Factory method
35
	 * @return
36
	 */
37
	public static PreservationMethod NewInstance(){
38
		return new PreservationMethod();
39
	}
40
	
41
	/**
42
	 * Constructor
43
	 */
44
	private PreservationMethod() {
45
		super();
46
	}
47
	
48
	/**
49
	 * Factory method
50
	 * @return
51
	 */
52
	public static PreservationMethod NewInstance(String term, String label, String labelAbbrev) {
53
		return new PreservationMethod(term, label, labelAbbrev);
54
	}
55
	
56
	/**
57
	 * Constructor
58
	 */
59
	protected PreservationMethod(String term, String label, String labelAbbrev) {
60
		super(term, label, labelAbbrev);
61
	}
62
	
63

    
64
	public static final PreservationMethod getByUuid(UUID uuid){
65
		return (PreservationMethod)findByUuid(uuid);
66
	}
67

    
68
}
(13-13/16)