TAILIEUCHUNG - Enterprise Java and UML 2nd Edition PHẦN 1

OMG PRESS CT Arrington, Syed Rayhan ™ TimeEntryEntityBean is the local interface for the TimeEntry entity bean. It defines the locally accessible methods for the TimeEntry entity bean. This is shown in Figure 01. TimeEntryLocal + getHours() : int + getDate() : Date + getChargeCode() : ChargeCodeLocal + getTimecard() : TimecardLocal + setHours(hours : int) + setDate(day : Date) + setChargeCode(code : ChargeCodeLocal) Figure 01 Local interface of the TimeEntry entity bean. package ; import .*; import .*; /** * The TimeEntryInt is the interface that ties the Bean with the Remote 1 2 TimeEntryEntityBean * interface to provide compile time type checking. */ public interface TimeEntryInt {. | OMG PRESS Enterprise Java and UML 2nd Edition CT Arrington Syed Rayhan TimeEntryEntityBean is the local interface for the TimeEntry entity bean. It defines the locally accessible methods for the TimeEntry entity bean. This is shown in Figure 01. EntityLocal TimeEntryLocal getHours int getDate Date getChargeCode ChargeCodeLocal getTimecard TimecardLocal setHours hours int setDate day Date setChargeCode code ChargeCodeLocal Figure 01 Local interface of the TimeEntry entity bean. package import . import . The TimeEntryInt is the interface that ties the Bean with the Remote 1 2 TimeEntryEntityBean interface to provide compile time type checking. public interface TimeEntryInt Answers a ChargeCode for this TimeEntry. public ChargeCodeLocal getChargeCode Answers the hour charged in this TimeEntry. public int getHours Answers the day the time is entered for. public Date getDate Answers the timecard it belongs to. public TimecardLocal getTimecard sets a ChargeCode for this TimeEntry. public void setChargeCode ChargeCodeLocal ccode sets the hour charged in this TimeEntry. public void setHours int hours sets the day the time is entered for. public void setDate Date date is the local EJB interface that inherits from TimeEntryInt and hence the body is empty. This is in line with what we have set as our implementation strategy for all of our EJBs. package import . import . The TimeEntry bean holds a single time entry. TimeEntryLocal is the local interface through which local clients access the underlying entity bean. public interface TimeEntryLocal extends EJBLocalObject TimeEntryInt

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.