beautypg.com

Development tasks and tools, Designing enterprise objects for java client – Apple WebObjects 5 User Manual

Page 83

background image

C H A P T E R 6

WebObjects Desktop Applications

Development Tasks and Tools

83

Apple Computer, Inc. January 2002

Development Tasks and Tools

The most basic tasks of creating a Java Client application are as follows:

Create a project using Project Builder.

Create a model using EOModeler.

Write source code for enterprise object classes.

Create your application’s user interface with Interface Builder (non-direct
approach).

Customize your application’s user interface (Direct to Java Client approach)

Write source code for any application-level logic.

The tasks have much in common with those for developing HTML-based
WebObjects applications. The major differences are the way you design your
enterprise object classes and the way you create your application’s user interface.

Designing Enterprise Objects for Java Client

Java Client allows you to specify two enterprise object classes for each entity: one
for the server and one for the client. The client and server classes can have different
sets of properties and business logic. This means that programming a Java Client
WebObjects application requires a specific design technique that isn’t necessary in
HTML-based development: object partitioning. Simply put, you have to determine
whether you need different enterprise object classes for the client and the server and
also what data and business logic to put in each class.

Usually, client objects have the more restricted set of data and behaviors, but it is
really up to you to decide based on the requirements of the application and your
business. As noted earlier, the primary criteria for partitioning are performance and
security.