forked from netkiller/netkiller.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCompany.java
More file actions
executable file
·165 lines (160 loc) · 4.26 KB
/
Company.java
File metadata and controls
executable file
·165 lines (160 loc) · 4.26 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
159
160
161
162
163
164
165
package netkiller.ebusiness;
import java.sql.*;
import java.util.*;
import netkiller.database.*;
import netkiller.security.*;
public class Company{
private String uid = null;
private String cname = null;
private String ename = null;
private String position = null;
private String industry = null;
private String buy = null;
private String sale = null;
private String kind = null;
private String homepage = null;
private String telephone = null;
private String fax = null;
private String province = null;
private String city = null;
private String address = null;
private String postalcode = null;
private String state = null;
public Company(){
}
public void setUid(String value){
this.uid = value;
}
public String getUid(){
return this.uid;
}
public void setCname(String value){
this.cname = value;
}
public String getCname(){
return this.cname;
}
public void setEname(String value){
this.ename = value;
}
public String getEname(){
return this.ename;
}
public void setPosition(String value){
this.position = value;
}
public String getPosition(){
return this.position;
}
public void setIndustry(String value){
this.industry = value;
}
public String getIndustry(){
return this.industry;
}
public void setBuy(String value){
this.buy = value;
}
public String getBuy(){
return this.buy;
}
public void setSale(String value){
this.sale = value;
}
public String getSale(){
return this.sale;
}
public void setKind(String value){
this.kind = value;
}
public String getKind(){
return this.kind;
}
public void setHomepage(String value){
this.homepage = value;
}
public String getHomepage(){
return this.homepage;
}
public void setTelephone(String value){
this.telephone = value;
}
public String getTelephone(){
return this.telephone;
}
public void setFax(String value){
this.fax = value;
}
public String getFax(){
return this.fax;
}
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 setState(String value){
this.state = value;
}
public String getState(){
return this.state;
}
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 createCompany() {
String sql = "sql insert into company(state,postalcode,address,city,province,fax,telephone,homepage,kind,sale,buy,industry,position,ename,cname,uid,) values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,)";
boolean isSuccess = false;
try{
isSuccess = true;
}
catch(Exception e){
e.printStackTrace();
}
return isSuccess;
}
public boolean removeCompany() {
String sql = "delete from company where id = ? ";
// TODO: Add your code here
}
public boolean updateCompany() {
// TODO: Add your code here
}
public static void main(String[] args) {
Company test = new Company();
}
}