菜鸟求问
service,业务层里面的每个接口方法都要变成abstract吗?
public interface JobSeekerManager {
public abstract boolean checkJsUsernameExists(JobSeeker js) throws Exception;
public abstract boolean checkJsEmailExists(JobSeeker js) throws Exception;
public abstract void add(JobSeeker js) throws Exception;
public List<JobSeeker> getJobSeekers()throws Exception;
public JobSeeker loadByJsId(int jsId) throws Exception;
public boolean login(String email, String password) throws Exception;
public boolean deleteJobSeeker(int jsId) throws Exception;
public boolean update(int jsId, String username, String password,
String name, String address, String email, String phone,
int expectedSalary) throws Exception;
}
这个可以不用的,这与接口的使用有关,接口里面只有静态常量和静态抽象方法,所以在接口里面定义方法的时候,可以省掉abstract static 关键字的,也就是说是
public abstract static int find()和public int find()是等同的