1 package eu
.etaxonomy
.cdm
.vaadin
.model
;
3 import java
.io
.Serializable
;
4 import java
.util
.Collection
;
9 import eu
.etaxonomy
.cdm
.model
.common
.CdmBase
;
10 import eu
.etaxonomy
.cdm
.model
.description
.DescriptionElementBase
;
11 import eu
.etaxonomy
.cdm
.model
.description
.Distribution
;
12 import eu
.etaxonomy
.cdm
.model
.description
.PresenceAbsenceTerm
;
13 import eu
.etaxonomy
.cdm
.model
.name
.Rank
;
14 import eu
.etaxonomy
.cdm
.model
.name
.TaxonNameBase
;
15 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
18 public class DbTableDTO
implements Serializable
{
20 private static final long serialVersionUID
= 1L;
24 public Taxon
getTaxon() {
28 public void setTaxon(Taxon taxon
) {
33 private DistributionDTO dDTO
;
37 public DbTableDTO(Taxon taxon
){
38 this.taxon
= CdmBase
.deproxy(taxon
, Taxon
.class);
41 //----Getter - Setter - methods ----//
43 public DistributionDTO
getdDTO() {
47 public void setdDTO(DistributionDTO dDTO
) {
55 public String
getFullTitleCache() {
56 TaxonNameBase name
= taxon
.getName();
57 name
= CdmBase
.deproxy(name
, TaxonNameBase
.class);
61 return name
.getFullTitleCache();
65 * @param fullTitleCache
67 public void setFullTitleCache(String fullTitleCache
) {
68 taxon
.getName().setFullTitleCache(fullTitleCache
, true);
69 taxon
.setTitleCache(fullTitleCache
, true);
73 * Returns the taxonomic {@link Rank rank} of <i>this</i> taxon name.
77 public String
getRank(){
78 rank
= taxon
.getName().getRank();
82 return rank
.toString();
85 public UUID
getUUID(){
86 return taxon
.getUuid();
92 public void setRank(Rank rank
){
93 taxon
.getName().setRank(rank
);
103 //----------- Detail View ------------------//
109 public String
getTaxonNameCache(){
110 return taxon
.getName().getTitleCache();
113 public void setTaxonNameCache(String titlecache
){
114 taxon
.getName().setTitleCache(titlecache
, true);
120 public String
getNomenclaturalCode(){
121 return taxon
.getName().getNomenclaturalCode().getTitleCache();
127 public String
getSecundum(){
128 return taxon
.getSec().toString();