?? inserttraincommand.java~1~
字號:
package train.command;
import train.parameter.*;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2006</p>
*
* <p>Company: 沈陽化工學院計算機</p>
*
* @author 彭勝勇 胡林
* @version 1.0
*/
public class InsertUserCommand extends Command {
User user;
public boolean fail;
public InsertUserCommand(User user) {
this.user = user;
}
public void execute() {
try {
model.insertUser(user);
} catch (Exception e) {
System.out.println("Exception insertUser! " + e.getMessage());
fail = true;
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -