Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.skin.ws;
- /**
- * AccessoBean.java - a class that implement the java bean regarding the entity
- * 'accesso' in the database. this entity represent a user of the community.
- *
- * @author Pier Giuliano Nioi
- *
- */
- public class AccessoBean implements java.io.Serializable {
- /**
- * Fields
- */
- public static final long serialVersionUID = 1L;
- public int id;
- public String nomeut;
- public String password;
- public String sesso;
- public int eta;
- public String nazione;
- public String email;
- public int accessi;
- public String datai;
- /**
- * Constructor
- */
- public AccessoBean() {
- }
- /**
- * Gets the id of this user
- *
- * @return a int representing the id of the user
- */
- public int getId() {
- return this.id;
- }
- /**
- * Sets the id of the user
- *
- * @param id
- * a int value representing the id of the user
- */
- public void setId(int id) {
- this.id = id;
- }
- /**
- * Gets the name of the user
- *
- * @return a string representing the name of the user
- */
- public String getNomeut() {
- return this.nomeut;
- }
- /**
- * sets the name of the user
- *
- * @param n
- * a string representing the name of the user
- */
- public void setNomeut(String n) {
- this.nomeut = n;
- }
- /**
- * gets the password for the user
- *
- * @return a string representing the password of the user
- */
- public String getPassword() {
- return this.password;
- }
- /**
- * sets the password for the user
- *
- * @param p
- * a string representing the password of the user
- */
- public void setPassword(String p) {
- this.password = p;
- }
- /**
- * gets the email of the user
- *
- * @return a string representing the email address of the user
- */
- public String getEmail() {
- return this.email;
- }
- /**
- * set the email address of the user
- *
- * @param e
- * a string rappresenting the email of the user
- */
- public void setEmail(String e) {
- this.email = e;
- }
- /**
- * gets the value of the field 'accessi'
- *
- * @return an int value representing the value of the field 'accessi'
- */
- public int getAccessi() {
- return this.accessi;
- }
- /**
- * sets the value for the field 'accessi'
- *
- * @param a
- * a int value for the field accessi
- */
- public void setAccessi(int a) {
- this.accessi = a;
- }
- /**
- * gets the string representing the date in wich the user registered himself
- * to the community
- *
- * @return a string representing a date value
- */
- public String getDatai() {
- return this.datai;
- }
- /**
- * set the date of registration for the user
- *
- * @param timestamp
- * a string representing a date value
- */
- public void setDatai(String timestamp) {
- this.datai = timestamp;
- }
- /**
- * sets the gender of the user
- *
- * @return a string representing the gender of the user
- */
- public String getSesso() {
- return this.sesso;
- }
- /**
- * sets the gender of the user
- *
- * @param sex
- * a string rappresenting the gender of the user
- */
- public void setSesso(String sex) {
- this.sesso = sex;
- }
- /**
- *
- * gets the value of field 'nazione'
- *
- * @return a string
- */
- public String getNazione() {
- return this.nazione;
- }
- /**
- * sets the value of field 'nazione
- *
- * @param naz
- * a string
- */
- public void setNazione(String naz) {
- this.nazione = naz;
- }
- /**
- * gets the age of the user
- *
- * @return an int value
- */
- public int getEta() {
- return this.eta;
- }
- /**
- * sets the age of the user
- *
- * @param e
- * a int value
- */
- public void setEta(int e) {
- this.eta = e;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement