12.07.2015 Views

XMI for AllFusion Component Modeler tutorial ... - SupportConnect

XMI for AllFusion Component Modeler tutorial ... - SupportConnect

XMI for AllFusion Component Modeler tutorial ... - SupportConnect

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter5Creating Business LogicEstimated Completion TimeAllow yourself approximately 15 minutes to complete this chapter.Define Business Logic <strong>for</strong> the Implementation ClassIn this section you will modify the Location<strong>Component</strong> implementation class. Youwill also write the Java logic in createLocation method to create a record <strong>for</strong> theLocation table, and getLocationList method to read a list of all Locations from thedatabase. The Advantage Joe product offers several features designed to facilitateyour coding ef<strong>for</strong>ts. You will use two of these features, Smart Expansions andSmart Macros, in this chapter.Set Import Statements1. Right-click on Location<strong>Component</strong> implementation object and selectEdit….2. Use the following code listing to verify the presence of, or to add, the importstatements to the beginning of the component implementation class whenthe Editor window opens:package com.myCarRentalShop.location;import java.io.Serializable;import com.cai.joe.component.I<strong>Component</strong>;import com.cai.joe.component.I<strong>Component</strong>Context;import com.cai.joe.component.*;import com.myCarRentalShop.location.persist.*;import java.util.Vector;import java.util.Enumeration;Creating Business Logic 5–1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!