forked from netkiller/netkiller.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUsers.java
More file actions
executable file
·123 lines (118 loc) · 3.15 KB
/
Users.java
File metadata and controls
executable file
·123 lines (118 loc) · 3.15 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
package netkiller.ebusiness;
import java.sql.*;
import java.util.*;
import netkiller.database.*;
import netkiller.security.*;
public class Users{
private String id = null;
private String userid = null;
private String passwd = null;
private String status = null;
private String email = null;
private String question = null;
private String answer = null;
private String authcode = null;
private String begin_date = null;
private String end_date = null;
public Users(){
}
public void setId(String value){
this.id = value;
}
public String getId(){
return this.id;
}
public void setUserid(String value){
this.userid = value;
}
public String getUserid(){
return this.userid;
}
public void setPasswd(String value){
this.passwd = value;
}
public String getPasswd(){
return this.passwd;
}
public void setStatus(String value){
this.status = value;
}
public String getStatus(){
return this.status;
}
public void setEmail(String value){
this.email = value;
}
public String getEmail(){
return this.email;
}
public void setQuestion(String value){
this.question = value;
}
public String getQuestion(){
return this.question;
}
public void setAnswer(String value){
this.answer = value;
}
public String getAnswer(){
return this.answer;
}
public void setAuthcode(String value){
this.authcode = value;
}
public String getAuthcode(){
return this.authcode;
}
public void setBegin_date(String value){
this.begin_date = value;
}
public String getBegin_date(){
return this.begin_date;
}
public void setEnd_date(String value){
this.end_date = value;
}
public String getEnd_date(){
return this.end_date;
}
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 createUsers() {
String sql = "sql insert into users(end_date,begin_date,authcode,answer,question,email,status,passwd,userid,id,) values(?,?,?,?,?,?,?,?,?,?,)";
boolean isSuccess = false;
try{
isSuccess = true;
}
catch(Exception e){
e.printStackTrace();
}
return isSuccess;
}
public boolean removeUsers() {
String sql = "delete from users where id = ? ";
// TODO: Add your code here
}
public boolean updateUsers() {
// TODO: Add your code here
}
public static void main(String[] args) {
Users test = new Users();
}
}