KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > samples > jpetstore > domain > Account


1 package org.springframework.samples.jpetstore.domain;
2
3 import java.io.Serializable JavaDoc;
4
5
6 public class Account implements Serializable JavaDoc {
7
8   /* Private Fields */
9
10   private String JavaDoc username;
11   private String JavaDoc password;
12   private String JavaDoc email;
13   private String JavaDoc firstName;
14   private String JavaDoc lastName;
15   private String JavaDoc status;
16   private String JavaDoc address1;
17   private String JavaDoc address2;
18   private String JavaDoc city;
19   private String JavaDoc state;
20   private String JavaDoc zip;
21   private String JavaDoc country;
22   private String JavaDoc phone;
23   private String JavaDoc favouriteCategoryId;
24   private String JavaDoc languagePreference;
25   private boolean listOption;
26   private boolean bannerOption;
27   private String JavaDoc bannerName;
28
29   /* JavaBeans Properties */
30
31   public String JavaDoc getUsername() { return username; }
32   public void setUsername(String JavaDoc username) { this.username = username; }
33
34   public String JavaDoc getPassword() { return password; }
35   public void setPassword(String JavaDoc password) { this.password = password; }
36
37   public String JavaDoc getEmail() { return email; }
38   public void setEmail(String JavaDoc email) { this.email = email; }
39
40   public String JavaDoc getFirstName() { return firstName; }
41   public void setFirstName(String JavaDoc firstName) { this.firstName = firstName; }
42
43   public String JavaDoc getLastName() { return lastName; }
44   public void setLastName(String JavaDoc lastName) { this.lastName = lastName; }
45
46   public String JavaDoc getStatus() { return status; }
47   public void setStatus(String JavaDoc status) { this.status = status; }
48
49   public String JavaDoc getAddress1() { return address1; }
50   public void setAddress1(String JavaDoc address1) { this.address1 = address1; }
51
52   public String JavaDoc getAddress2() { return address2; }
53   public void setAddress2(String JavaDoc address2) { this.address2 = address2; }
54
55   public String JavaDoc getCity() { return city; }
56   public void setCity(String JavaDoc city) { this.city = city; }
57
58   public String JavaDoc getState() { return state; }
59   public void setState(String JavaDoc state) { this.state = state; }
60
61   public String JavaDoc getZip() { return zip; }
62   public void setZip(String JavaDoc zip) { this.zip = zip; }
63
64   public String JavaDoc getCountry() { return country; }
65   public void setCountry(String JavaDoc country) { this.country = country; }
66
67   public String JavaDoc getPhone() { return phone; }
68   public void setPhone(String JavaDoc phone) { this.phone = phone; }
69
70   public String JavaDoc getFavouriteCategoryId() { return favouriteCategoryId; }
71   public void setFavouriteCategoryId(String JavaDoc favouriteCategoryId) { this.favouriteCategoryId = favouriteCategoryId; }
72
73   public String JavaDoc getLanguagePreference() { return languagePreference; }
74   public void setLanguagePreference(String JavaDoc languagePreference) { this.languagePreference = languagePreference; }
75
76   public boolean isListOption() { return listOption; }
77   public void setListOption(boolean listOption) { this.listOption = listOption; }
78     public int getListOptionAsInt() { return listOption ? 1 : 0; }
79
80   public boolean isBannerOption() { return bannerOption; }
81   public void setBannerOption(boolean bannerOption) { this.bannerOption = bannerOption; }
82     public int getBannerOptionAsInt() { return bannerOption ? 1 : 0; }
83
84   public String JavaDoc getBannerName() { return bannerName; }
85   public void setBannerName(String JavaDoc bannerName) { this.bannerName = bannerName; }
86
87 }
88
Popular Tags