001 package database.customer_db;
002
003 /**
004 * <p>This class reflects the structure of the Customer
005 * table in the sample database. The table is created
006 * by createCustomerTable(), below.</p>
007 *
008 * <p>This class may be used as a return value for
009 * methods that return Customer records, but each
010 * member name of this class must match a column
011 * name in the table and be of compatible type.</p>
012 */
013 public class Customer
014 {
015 private int custid;
016 private String name;
017 private String address;
018 private String city;
019 private String state;
020 private String zip;
021 private String area_code;
022 private String phone;
023
024 public Customer() {}
025
026 public Customer(int id, String sName, String sAddress, String sCity, String sState,
027 String sZip, String sAreaCode, String sPhone)
028 {
029 custid = id;
030 name = new String(sName);
031 address = new String(sAddress);
032 city = new String(sCity);
033 state = new String(sState);
034 zip = new String(sZip);
035 area_code = new String(sAreaCode);
036 phone = new String(sPhone);
037 }
038
039 public int getCustid()
040 {
041 return this.custid;
042 }
043
044 public void setCustid(int custid)
045 {
046 this.custid = custid;
047 }
048
049 public String getName()
050 {
051 return this.name;
052 }
053
054 public void setName(String name)
055 {
056 this.name = name;
057 }
058
059 public String getAddress()
060 {
061 return this.address;
062 }
063
064 public void setAddress(String address)
065 {
066 this.address = address;
067 }
068
069 public String getCity()
070 {
071 return this.city;
072 }
073
074 public void setCity(String city)
075 {
076 this.city = city;
077 }
078
079 public String getState()
080 {
081 return this.state;
082 }
083
084 public void setState(String state)
085 {
086 this.state = state;
087 }
088
089 public String getZip()
090 {
091 return this.zip;
092 }
093
094 public void setZip(String zip)
095 {
096 this.zip = zip;
097 }
098
099 public String getArea_code()
100 {
101 return this.area_code;
102 }
103
104 public void setArea_code(String area_code)
105 {
106 this.area_code = area_code;
107 }
108
109 public String getPhone()
110 {
111 return this.phone;
112 }
113
114 public void setPhone(String phone)
115 {
116 this.phone = phone;
117 }
118 }
|