Main Menu
Lecture 1
Lecture 2
Lecture 3
Lecture 4
Lecture 6
Lecture 7
 

 

 

Enterprise Objects

Conceptually

Represent your business

Reflect data in persistent stores

Define behaviours and business processes separate from data storage mechanism

Programatically

Defined by Java class files

Class must implement methods defined in the EOEntrepriseObject Interface

Integrate with the functionality of EOF by inheritance

EOGenericRecord

Default class used by EOF

Generic container for data and references to related objects

No entity-specific behaviour

Creates a dictionary of key, value, attribute with data from the database

Provides all getter and setter methods

Superclass for custom EOs

Implements the EOObjects interface - can override

Custom Behaviour in EOs

Subclass EOGenericRecord

Use the EOGenericRecord's built-in dictionary to store attributes and relationships

Common custom behaviours

Validation of data

Calculate derived attributes

Coordinate with other objects

Debugging support - toString()

Any other behaviour supported by Java