forked from netkiller/netkiller.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPerson.java
More file actions
executable file
·158 lines (153 loc) · 4.05 KB
/
Person.java
File metadata and controls
executable file
·158 lines (153 loc) · 4.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
package netkiller.ebusiness;
import java.sql.*;
import java.util.*;
import netkiller.database.*;
import netkiller.security.*;
public class Person{
private String uid = null;
private String name = null;
private String gender = null;
private String nickname = null;
private String mobile = null;
private String tel = null;
private String fax = null;
private String email = null;
private String province = null;
private String city = null;
private String address = null;
private String postalcode = null;
private String rate = null;
private String bank = null;
private String bankaccount = null;
public Person(){
}
public void setUid(String value){
this.uid = value;
}
public String getUid(){
return this.uid;
}
public void setName(String value){
this.name = value;
}
public String getName(){
return this.name;
}
public void setGender(String value){
this.gender = value;
}
public String getGender(){
return this.gender;
}
public void setNickname(String value){
this.nickname = value;
}
public String getNickname(){
return this.nickname;
}
public void setMobile(String value){
this.mobile = value;
}
public String getMobile(){
return this.mobile;
}
public void setTel(String value){
this.tel = value;
}
public String getTel(){
return this.tel;
}
public void setFax(String value){
this.fax = value;
}
public String getFax(){
return this.fax;
}
public void setEmail(String value){
this.email = value;
}
public String getEmail(){
return this.email;
}
public void setProvince(String value){
this.province = value;
}
public String getProvince(){
return this.province;
}
public void setCity(String value){
this.city = value;
}
public String getCity(){
return this.city;
}
public void setAddress(String value){
this.address = value;
}
public String getAddress(){
return this.address;
}
public void setPostalcode(String value){
this.postalcode = value;
}
public String getPostalcode(){
return this.postalcode;
}
public void setRate(String value){
this.rate = value;
}
public String getRate(){
return this.rate;
}
public void setBank(String value){
this.bank = value;
}
public String getBank(){
return this.bank;
}
public void setBankaccount(String value){
this.bankaccount = value;
}
public String getBankaccount(){
return this.bankaccount;
}
public void setPrimaryKey(int id){
this.id = id;
}
public void findByPrimaryKey(){
String sql = null;
try{
}
catch(Exception e){
e.printStackTrace();
}
finally{
try{
}catch(Exception e){
e.printStackTrace();
)
}
public void findAll(){}
public void findByMethod(){}
public boolean createPerson() {
String sql = "sql insert into person(bankaccount,bank,rate,postalcode,address,city,province,email,fax,tel,mobile,nickname,gender,name,uid,) values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,)";
boolean isSuccess = false;
try{
isSuccess = true;
}
catch(Exception e){
e.printStackTrace();
}
return isSuccess;
}
public boolean removePerson() {
String sql = "delete from person where id = ? ";
// TODO: Add your code here
}
public boolean updatePerson() {
// TODO: Add your code here
}
public static void main(String[] args) {
Person test = new Person();
}
}