commentcontrollerbean.java~6~
来自「一个java」· JAVA~6~ 代码 · 共 55 行
JAVA~6~
55 行
package bookstore.ejb;import bookstore.util.*;import java.sql.*;import javax.sql.*;import java.util.*;import javax.ejb.*;public class CommentControllerBean implements SessionBean{ SessionContext sessionContext; private String customerID; private CustomerHome customerHome; private Customer customer; private Connection con; /*************************** removal methods*****************************/public String createCustomer(CustomerDetails customerValue) throws Exception { // makes a new customer and enters it into db, // returns customerId System.out.println("CustomerControllerBean createCustomer"); try { customer = customerHome.create(customerValue); } catch (Exception ex) { throw new EJBException ("createCustomer: " + ex.getMessage()); } return customerID; }// createCustomer public void ejbCreate() throws CreateException { /**@todo Complete this method*/ } public void ejbRemove() { /**@todo Complete this method*/ } public void ejbActivate() { /**@todo Complete this method*/ } public void ejbPassivate() { /**@todo Complete this method*/ } public void setSessionContext(SessionContext sessionContext) { this.sessionContext = sessionContext; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?