質問編集履歴

2

何もしてない

2015/11/27 01:35

投稿

edoooooo
edoooooo

スコア476

test CHANGED
File without changes
test CHANGED
File without changes

1

コードの追加

2015/11/27 01:35

投稿

edoooooo
edoooooo

スコア476

test CHANGED
File without changes
test CHANGED
@@ -117,3 +117,69 @@
117
117
  をすると、しっかりと、minato君のmailadoressなどが表示されます。
118
118
 
119
119
  何が原因となっているのでしょうか?どうぞよろしくお願いします。
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+ package model;
128
+
129
+
130
+
131
+ public class Login {
132
+
133
+ private String userId;
134
+
135
+ private String pass;
136
+
137
+ public Login(String userId,String pass){
138
+
139
+ this.userId=userId;
140
+
141
+ this.pass=pass;
142
+
143
+
144
+
145
+ }
146
+
147
+ public String getUserId(){return userId;}
148
+
149
+ public String getPass(){return pass;}
150
+
151
+
152
+
153
+
154
+
155
+ }
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+ package model;
164
+
165
+
166
+
167
+ import dao.AccountDAO;
168
+
169
+
170
+
171
+ public class LoginLogic{
172
+
173
+ public boolean execute(Login login){
174
+
175
+ AccountDAO dao=new AccountDAO();
176
+
177
+ Account account=dao.findByLogin(login);
178
+
179
+ return account !=null;
180
+
181
+
182
+
183
+ }
184
+
185
+ }