?? administrator.java
字號:
/*
* Administrator.java
*
* Created on 2007年11月22日, 上午10:47
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package h6.data;
import java.sql.ResultSet;
import java.sql.SQLException;
import h6.action.*;
/**
*
* @author dinga
*/
public class Administrator {
/** Creates a new instance of Administrator */
private String name;
private String popedom;
private String password;
public Administrator() {
}
public void initializeReader() throws SQLException{
DataBase db = new DataBase();
String []s = {"*"};
ResultSet rs = db.search("administrator",s,"name = '" + name + "'");
if (rs.next()){
popedom = rs.getString(2);
password = rs.getString(3);
}
rs.close();
db.closeConnection();
}
public void setName(String adName){
name = adName;
}
public String getName(){
return name;
}
public String getPopedom(){
return popedom;
}
public String getPassword(){
return password;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -