TAILIEUCHUNG - Java Database Programming Bible- P12

Java Database Programming Bible- P12: Welcome to Java Database Programming Bible. This book is for readers who are already familiar with Java, and who want to know more about working with databases. The JDBC Application Programming Interface has made database programming an important aspect of Java development, particularly where Web applications are concerned. | Chapter 22 Container-Managed Persistence @author Andrew Yang Aversion package import . import . import . public interface YachtHome extends EJBHome public Yacht create String yachtName String builder String engineType int capacity int maxVelocity throws CreateException RemoteException public Yacht findByPrimaryKey String yachtName throws FinderException RemoteException public Collection findAllYachts throws FinderException RemoteException public Collection findYachtsCapacityMoreThan int minCapacity throws FinderException RemoteException Listing 22-2 Remote interface of YachtEJB YachtEJB Remote Interface. CMP is used. @author Andrew Yang V v @version package import . import . import common. import YachtSessionSFBean. public interface Yacht extends EJBObject publ c YachtSess Lon createYachtSession throws RemoteException publ c String getBuilder throws RemoteException publ c String getEngineType throws RemoteException publ c int getCapacity throws RemoteException publ c int getMaxVelocity throws RemoteException -551- Team-Fly Please purchase PDF Split-Merge on to remove this watermark. Chapter 22 Container-Managed Persistence . create . .. create. home interface for simplicity. The create method takes all of the five persistent fields as argument. The remote interface defines the getters for four out of the five persistent fields except the primary key field. The client can get the primary key field yachtName by calling the getPrimaryKey method of the EJBHome class or Entitycontext class. Three finder methods are defined in the home interface with different data-retrieval criteria. The findByPrimaryKey is required and returns only one reference to YachtEJB that the primary key identifies. It may return null if no match is found. The other two methods return a collection of references

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.