NONO一族J2EE新闻系统
采用了目前流行的J2EE技术
源代码在线查看: adminbean.java
/*
*
*
*
*/
package article;
import java.util.*;
import javax.ejb.*;
import javax.naming.*;
import util.*;
public abstract class AdminBean implements EntityBean {
public abstract String getId();
public abstract void setId(String Id);
public abstract String getPassword();
public abstract void setPassword(String Password);
// Business methods
// EntityBean methods
public String ejbCreate(String id,String password)throws CreateException {
setId(id);
setPassword(password);
return null;
}
public void ejbPostCreate (String id,String password)
throws CreateException {}
public void setEntityContext(EntityContext ctx) {
//context = ctx;
}
public void unsetEntityContext() {
// context = null;
}
public void ejbRemove() {
Debug.print("AdminBean ejbRemove");
}
public void ejbLoad() {
Debug.print("AdminBean ejbLoad");
}
public void ejbStore() {
Debug.print("AdminBean ejbStore");
}
public void ejbPassivate() { }
public void ejbActivate() { }
} // AdminBean