tailieunhanh - Building Java Enterprise Applications Volume I: Architecture phần 10

Tham khảo tài liệu 'building java enterprise applications volume i: architecture phần 10', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Building Java Enterprise Applications Volume I Architecture public AccountTypeLocal findByPrimaryKey Integer accountTypelD throws FinderException EJBException public AccountTypeLocal findByType String type throws FinderException EJBException Example E-12 is the implementation class for the AccountType bean. Example E-12. The AccountTypeBean Implementation Class package import import import import import import import import public abstract class AccountTypeBean extends EntityAdapter public Integer ejbCreate String type throws CreateException Get the next primary key value try Context context new InitialContext Note that RMI-IIOP narrowing is not required SequenceLocalHome home SequenceLocalHome java comp env ejb SequenceLocalHome SequenceLocal sequence String accountTypeKey String java comp env constants AccountTypeKey Integer id accountTypeKey Set values setId id setType type return null catch NamingException e throw new CreateException Could not obtain an InitialContext. catch SequenceException e throw new CreateException Error getting primary key value public void ejbPostCreate String type Empty implementation public abstract void setId Integer id public abstract Integer getId 239 Building Java Enterprise Applications Volume I Architecture public abstract String getType public abstract void setType String type The Fund Bean Example E-13 is the remote interface for the Fund entity bean. Example E-13. The Fund Remote Interface package import import public interface Fund extends EJBObject public FundInfo .

crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.