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.reference;
|
11
|
|
12
|
|
13
|
import javax.persistence.Entity;
|
14
|
|
15
|
import org.apache.log4j.Logger;
|
16
|
|
17
|
/**
|
18
|
* This class represents a database used as an information source. A database is
|
19
|
* a structured collection of records or data.
|
20
|
* <P>
|
21
|
* This class corresponds, according to the TDWG ontology, partially to the
|
22
|
* publication type term (from PublicationTypeTerm): "ComputerProgram".
|
23
|
*
|
24
|
* @author m.doering
|
25
|
* @version 1.0
|
26
|
* @created 08-Nov-2007 13:06:19
|
27
|
*/
|
28
|
@Entity
|
29
|
public class Database extends PublicationBase implements Cloneable {
|
30
|
private static final Logger logger = Logger.getLogger(Database.class);
|
31
|
|
32
|
/**
|
33
|
* Creates a new empty database instance.
|
34
|
*/
|
35
|
public static Database NewInstance(){
|
36
|
return new Database();
|
37
|
}
|
38
|
|
39
|
|
40
|
|
41
|
//*********** CLONE **********************************/
|
42
|
|
43
|
/**
|
44
|
* Clones <i>this</i> database instance. This is a shortcut that enables to
|
45
|
* create a new instance that differs only slightly from <i>this</i>
|
46
|
* database instance by modifying only some of the attributes.<BR>
|
47
|
* This method overrides the {@link PublicationBase#clone() method} from PublicationBase.
|
48
|
*
|
49
|
* @see PublicationBase#clone()
|
50
|
* @see media.IdentifyableMediaEntity#clone()
|
51
|
* @see java.lang.Object#clone()
|
52
|
*/
|
53
|
@Override
|
54
|
public Database clone(){
|
55
|
Database result = (Database)super.clone();
|
56
|
//no changes to: -
|
57
|
return result;
|
58
|
}
|
59
|
|
60
|
}
|