Java tutorial
/******************************************************************************* * This file is part of the EEG-database project * * ========================================== * * Copyright (C) 2013 by University of West Bohemia (http://www.zcu.cz/en/) * * *********************************************************************************************************************** * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. * * *********************************************************************************************************************** * * FullPersonDTO.java, 2013/10/02 00:01 Jakub Rinkes ******************************************************************************/ package cz.zcu.kiv.eegdatabase.wui.core.dto; import cz.zcu.kiv.eegdatabase.data.pojo.EducationLevel; import cz.zcu.kiv.eegdatabase.wui.core.Gender; import org.apache.commons.lang.builder.ReflectionToStringBuilder; import org.joda.time.DateTime; import java.io.Serializable; import java.sql.Timestamp; import java.util.Date; /** * Object used for PersonFormPanel that is put into registration form, add/edit person, and account management. * * @author Jakub Rinkes * */ public class FullPersonDTO extends IdentifiDTO implements Serializable { private static final long serialVersionUID = -5467478793603707659L; private String givenname; private String surname; private Timestamp dateOfBirth; private Gender gender; private String username; private EducationLevel educationLevel; private boolean confirmed; private DateTime registrationDate; private char laterality; private String authority; private String title; private String address; private String city; private String state; private String zipCode; private String url; private String phone; private String organizationType; private String organization; private String jobTitle; private String orgAddress; private String orgCity; private String orgState; private String orgZipCode; private String orgUrl; private String orgPhone; private String VAT; private String country; private String orgCountry; public FullPersonDTO() { dateOfBirth = new Timestamp(new Date().getTime()); } public String getGivenname() { return givenname; } public void setGivenname(String givenname) { this.givenname = givenname; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getSurname() { return surname; } public void setSurname(String surname) { this.surname = surname; } public Timestamp getDateOfBirth() { return dateOfBirth; } public void setDateOfBirth(Timestamp dateOfBirth) { this.dateOfBirth = dateOfBirth; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public String getCity() { return city; } public void setCity(String city) { this.city = city; } public String getState() { return state; } public void setState(String state) { this.state = state; } public String getZipCode() { return zipCode; } public void setZipCode(String zipCode) { this.zipCode = zipCode; } public String getCountry() { return country; } public void setCountry(String country) { this.country = country; } public String getPhone() { return phone; } public void setPhone(String phone) { this.phone = phone; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public Gender getGender() { return gender; } public void setGender(Gender gender) { this.gender = gender; } public EducationLevel getEducationLevel() { return educationLevel; } public void setEducationLevel(EducationLevel educationLevel) { this.educationLevel = educationLevel; } @Override public String toString() { return ReflectionToStringBuilder.toString(this); } public boolean isConfirmed() { return confirmed; } public void setConfirmed(boolean confirmed) { this.confirmed = confirmed; } public DateTime getRegistrationDate() { return registrationDate; } public void setRegistrationDate(DateTime registrationDate) { this.registrationDate = registrationDate; } public char getLaterality() { return laterality; } public void setLaterality(char laterality) { this.laterality = laterality; } public String getAuthority() { return authority; } public void setAuthority(String authority) { this.authority = authority; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getOrganizationType() { return organizationType; } public void setOrganizationType(String organizationType) { this.organizationType = organizationType; } public String getOrganization() { return organization; } public void setOrganization(String organization) { this.organization = organization; } public String getJobTitle() { return jobTitle; } public void setJobTitle(String jobTitle) { this.jobTitle = jobTitle; } public String getOrgAddress() { return orgAddress; } public void setOrgAddress(String orgAddress) { this.orgAddress = orgAddress; } public String getOrgCity() { return orgCity; } public void setOrgCity(String orgCity) { this.orgCity = orgCity; } public String getOrgState() { return orgState; } public void setOrgState(String orgState) { this.orgState = orgState; } public String getOrgZipCode() { return orgZipCode; } public void setOrgZipCode(String orgZipCode) { this.orgZipCode = orgZipCode; } public String getOrgUrl() { return orgUrl; } public void setOrgUrl(String orgUrl) { this.orgUrl = orgUrl; } public String getOrgPhone() { return orgPhone; } public void setOrgPhone(String orgPhone) { this.orgPhone = orgPhone; } public String getVAT() { return VAT; } public void setVAT(String VAT) { this.VAT = VAT; } public String getOrgCountry() { return orgCountry; } public void setOrgCountry(String orgCountry) { this.orgCountry = orgCountry; } }