Java資料庫連線--JDBC基礎知識(操作資料庫:增刪改查)
阿新 • • 發佈:2019-01-10
1 package sql.model; 2 3 import java.util.Date; 4 5 public class Goddess { 6 private Integer id; 7 private String userName; 8 private String sex; 9 private Integer age; 10 private Date birthday; 11 private String email; 12 private String mobile; 13 private String createUser;14 private Date createDate; 15 private String updateUser; 16 private Date updateDate; 17 private Integer isDel; 18 public Integer getId(){ 19 return id; 20 } 21 public void setId(Integer id){ 22 this.id=id; 23 } 24 public String getUserName(){ 25 returnuserName; 26 } 27 public void setUserName(String userName){ 28 this.userName=userName; 29 } 30 public String getSex(){ 31 return sex; 32 } 33 public void setSex(String sex){ 34 this.sex=sex; 35 } 36 public Integer getAge(){ 37 return age;38 } 39 public void setAge(Integer age){ 40 this.age=age; 41 } 42 public Date getBirthday(){ 43 return birthday; 44 } 45 public void setBirthday(Date birthday){ 46 this.birthday=birthday; 47 } 48 public String getEmail(){ 49 return email; 50 } 51 public void setEmail(String email){ 52 this.email=email; 53 } 54 public String getMobile(){ 55 return mobile; 56 } 57 public void setMobile(String mobile){ 58 this.mobile=mobile; 59 } 60 public String getCreateUser(){ 61 return createUser; 62 } 63 public void setCreateUser(String createUser){ 64 this.createUser=createUser; 65 } 66 public Date getCreateDate(){ 67 return createDate; 68 } 69 public void setCreateDate(Date createDate){ 70 this.createDate=createDate; 71 } 72 public String getUpdateUser(){ 73 return updateUser; 74 } 75 public void setUpdateUser(String updateUser){ 76 this.updateUser=updateUser; 77 } 78 public Date getUpdateDate(){ 79 return updateDate; 80 } 81 public void setUpdateDate(Date updateDate){ 82 this.updateDate=updateDate; 83 } 84 public Integer getIsDel(){ 85 return isDel; 86 } 87 public void setIsDel(Integer isDel){ 88 this.isDel=isDel; 89 } 90 public String toString(){ 91 return "Goddess:[ user_name="+userName+",sex="+sex+",age="+age+",birthday="+birthday+",email="+email 92 +",mobile="+mobile+",create_user="+createUser+",create_date="+createDate+",update_user="+ 93 updateUser+",update_date="+updateDate+",isdel="+isDel+" ]"; 94 } 95 }