Advertisement
Guest User

AccessoBean

a guest
Oct 7th, 2010
1,032
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 4.03 KB | None | 0 0
  1. package com.skin.ws;
  2.  
  3. /**
  4.  * AccessoBean.java - a class that implement the java bean regarding the entity
  5.  * 'accesso' in the database. this entity represent a user of the community.
  6.  *
  7.  * @author Pier Giuliano Nioi
  8.  *
  9.  */
  10. public class AccessoBean implements java.io.Serializable {
  11.    
  12.    /**
  13.     * Fields
  14.     */
  15.    public static final long serialVersionUID = 1L;
  16.    public int               id;
  17.    public String            nomeut;
  18.    public String            password;
  19.    public String            sesso;
  20.    public int               eta;
  21.    public String            nazione;
  22.    public String            email;
  23.    public int               accessi;
  24.    public String            datai;
  25.    
  26.    /**
  27.     * Constructor
  28.     */
  29.    public AccessoBean() {
  30.    }
  31.    
  32.    /**
  33.     * Gets the id of this user
  34.     *
  35.     * @return a int representing the id of the user
  36.     */
  37.    public int getId() {
  38.       return this.id;
  39.    }
  40.    
  41.    /**
  42.     * Sets the id of the user
  43.     *
  44.     * @param id
  45.     *           a int value representing the id of the user
  46.     */
  47.    public void setId(int id) {
  48.       this.id = id;
  49.    }
  50.    
  51.    /**
  52.     * Gets the name of the user
  53.     *
  54.     * @return a string representing the name of the user
  55.     */
  56.    public String getNomeut() {
  57.       return this.nomeut;
  58.    }
  59.    
  60.    /**
  61.     * sets the name of the user
  62.     *
  63.     * @param n
  64.     *           a string representing the name of the user
  65.     */
  66.    public void setNomeut(String n) {
  67.       this.nomeut = n;
  68.    }
  69.    
  70.    /**
  71.     * gets the password for the user
  72.     *
  73.     * @return a string representing the password of the user
  74.     */
  75.    public String getPassword() {
  76.       return this.password;
  77.    }
  78.    
  79.    /**
  80.     * sets the password for the user
  81.     *
  82.     * @param p
  83.     *           a string representing the password of the user
  84.     */
  85.    public void setPassword(String p) {
  86.       this.password = p;
  87.    }
  88.    
  89.    /**
  90.     * gets the email of the user
  91.     *
  92.     * @return a string representing the email address of the user
  93.     */
  94.    public String getEmail() {
  95.       return this.email;
  96.    }
  97.    
  98.    /**
  99.     * set the email address of the user
  100.     *
  101.     * @param e
  102.     *           a string rappresenting the email of the user
  103.     */
  104.    public void setEmail(String e) {
  105.       this.email = e;
  106.    }
  107.    
  108.    /**
  109.     * gets the value of the field 'accessi'
  110.     *
  111.     * @return an int value representing the value of the field 'accessi'
  112.     */
  113.    public int getAccessi() {
  114.       return this.accessi;
  115.    }
  116.    
  117.    /**
  118.     * sets the value for the field 'accessi'
  119.     *
  120.     * @param a
  121.     *           a int value for the field accessi
  122.     */
  123.    public void setAccessi(int a) {
  124.       this.accessi = a;
  125.    }
  126.    
  127.    /**
  128.     * gets the string representing the date in wich the user registered himself
  129.     * to the community
  130.     *
  131.     * @return a string representing a date value
  132.     */
  133.    public String getDatai() {
  134.       return this.datai;
  135.    }
  136.    
  137.    /**
  138.     * set the date of registration for the user
  139.     *
  140.     * @param timestamp
  141.     *           a string representing a date value
  142.     */
  143.    public void setDatai(String timestamp) {
  144.       this.datai = timestamp;
  145.    }
  146.    
  147.    /**
  148.     * sets the gender of the user
  149.     *
  150.     * @return a string representing the gender of the user
  151.     */
  152.    public String getSesso() {
  153.       return this.sesso;
  154.    }
  155.    
  156.    /**
  157.     * sets the gender of the user
  158.     *
  159.     * @param sex
  160.     *           a string rappresenting the gender of the user
  161.     */
  162.    public void setSesso(String sex) {
  163.       this.sesso = sex;
  164.    }
  165.    
  166.    /**
  167.     *
  168.     * gets the value of field 'nazione'
  169.     *
  170.     * @return a string
  171.     */
  172.    public String getNazione() {
  173.       return this.nazione;
  174.    }
  175.    
  176.    /**
  177.     * sets the value of field 'nazione
  178.     *
  179.     * @param naz
  180.     *           a string
  181.     */
  182.    public void setNazione(String naz) {
  183.       this.nazione = naz;
  184.    }
  185.    
  186.    /**
  187.     * gets the age of the user
  188.     *
  189.     * @return an int value
  190.     */
  191.    public int getEta() {
  192.       return this.eta;
  193.    }
  194.    
  195.    /**
  196.     * sets the age of the user
  197.     *
  198.     * @param e
  199.     *           a int value
  200.     */
  201.    public void setEta(int e) {
  202.       this.eta = e;
  203.    }
  204. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement