This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: adds this new kind of concept of a Java Bean. Both procedure programs and Java beans are implemented using the Java language. (In the EJB world, application programs are called "session" beans and the data beans are called "entity" beans.) Attributes of Java application code vs. Java Bean Code Java Beans • Java Bean class has a NOUN name (Truck, PurchaseOrder, Customer. ..) • Data fields need to be SAVED externally when not in use in memory. • Code is mainly "getter and setter" methods to retrieve and update the data • Has a toString() method to "introduce itself" - show all data. • has no main() method Procedure Programs in Java • Class name is a VERB (Billing, PersonnelUpdate, TruckScheduling) • Data fields are used only during processing and are not saved. • may have a main() method • Implements "business processes" like Cobol programs do.(Schedule Trucks) • Uses Java Beans...
View Full Document
- Spring '09
- Object-Oriented Programming, Java Bean, procedure programs