Enterprise Objects Framework - What Is An Enterprise Object (EO)?

What Is An Enterprise Object (EO)?

An Enterprise Object is analogous to what is often known in object-oriented programming as a business object — a class which models a physical or conceptual object in the business domain (e.g. a customer, an order, an item, etc.). What makes an EO different from other objects is that its instance data maps to a data store. Typically, an enterprise object contains key-value pairs that represent a row in a relational database. The key is basically the column name, and the value is what was in that row in the database. So it can be said that an EO's properties persist beyond the life of any particular running application.

More precisely, an Enterprise Object is an instance of a class that implements the com.webobjects.eocontrol.EOEnterpriseObject interface.

An Enterprise Object has a corresponding model (called an EOModel) that defines the mapping between the class's object model and the database schema. However, an enterprise object doesn't explicitly know about its model. This level of abstraction means that database vendors can be switched without it affecting the developer's code. This gives Enterprise Objects a high degree of reusability.

Read more about this topic:  Enterprise Objects Framework

Famous quotes containing the words object (eo)?, enterprise and/or object:

    The great object of Education should be commensurate with the object of life. It should be a moral one; to teach self-trust: to inspire the youthful man with an interest in himself; with a curiosity touching his own nature; to acquaint him with the resources of his mind, and to teach him that there is all his strength, and to inflame him with a piety towards the Grand Mind in which he lives. Thus would education conspire with the Divine Providence.
    Ralph Waldo Emerson (1803–1882)

    In enterprise of martial kind,
    When there was any fighting,
    He led his regiment from behind—
    He found it less exciting.
    Sir William Schwenck Gilbert (1836–1911)

    The Dada object reflected an ironic posture before the consecrated forms of art. The surrealist object differs significantly in this respect. It stands for a mysterious relationship with the outer world established by man’s sensibility in a way that involves concrete forms in projecting the artist’s inner model.
    —J.H. Matthews. “Object Lessons,” The Imagery of Surrealism, Syracuse University Press (1977)