Apple WebObjects 5 Manuel d'utilisateur Page 32

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 108
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 31
32 WebObjects Support for Enterprise-Object Instances
Apple Computer, Inc. January 2002
CHAPTER 3
Enterprise Objects
in-memory enterprise-object instances. WebObjects has mechanisms for ensuring
the integrity of your data is maintained between your application and the
datasource without sacrificing performance or flexibility:
Validation
A good part of your application’s business logic is usually validation
(for example, verifying that customers don’t exceed their credit limits,
return dates don’t come before their corresponding check-out dates, and
so on). In your enterprise-object classes, you implement methods that
check for invalid data, and WebObjects automatically invokes them
before saving anything to the datasource.
Referential-integrity enforcement
In your model you can specify rules governing the relationships
between entities, such as whether a to-one relationship is optional or
mandatory. You can also specify delete rules—actions that must occur
when an enterprise-object instance is deleted. For example, if you have
a Department entity, you can specify that when instances of it are
deleted, all the related employees in that department are also deleted (a
cascading delete), all the employees in that department are updated to
have no department (nullify), or the department deletion is rejected if it
has any employees (deny).
Automatic primary and foreign key generation
You do not need to maintain database artifacts such as primary and
foreign key values in your application; WebObjects keeps track of them
for you. Primary and foreign keys aren’t usually meaningful parts of a
business model; rather, they’re attributes created in a relational
database to express relationships between entities. Key values can be
generated and propagated automatically.
Transaction management
Most transactions are handled for you, using the native transaction
management features of your database to group database operations
that correspond to the changes that have been made to enterprise-object
instances in memory. You don’t have to worry about beginning,
committing, or rolling back transactions unless you want to fine-tune
transaction-management behavior. WebObjects also provides a separate
in-memory transaction management feature that allows you to create
nested contexts in which a child context’s changes are folded into the
parent context only upon successful completion of an in-memory
operation.
Vue de la page 31
1 2 ... 27 28 29 30 31 32 33 34 35 36 37 ... 107 108

Commentaires sur ces manuels

Pas de commentaire

Melissa 635-073 manuali

Manuali dei proprietari e guide per l'utente per Asciugacapelli Melissa 635-073.
We fornisce 1 manuali pdf Melissa 635-073 per scaricare gratuitamente in base al tipo di documento: Manuale Utente


Melissa 635-073 Manuale Utente (1 pagine)


Marchio: Melissa | Categoria: Hairdryers | Dimensione: 0.89 MB |

 




Più prodotti e manuali per Asciugacapelli Melissa

Modelli Tipo di Documento
235-002 Manuale Utente      Melissa 235-002 User Manual, 17 pagine
635-068 Manuale Utente   Melissa 635-068 User Manual, 1 pagine
635-075 Manuale Utente   Melissa 635-075 User Manual, 1 pagine
635-103 Manuale Utente   Melissa 635-103 User Manual, 1 pagine
235-014 Manuale Utente   Melissa 235-014 User Manual, 1 pagine
635-102 Manuale Utente      Melissa 635-102 User Manual, 18 pagine
235-019 Manuale Utente        Melissa 235-019 User Manual, 52 pagine
635-066 Manuale Utente      Melissa 635-066 User Manual, 18 pagine
635-101 Manuale Utente   Melissa 635-101 User Manual, 1 pagine
635-096 Manuale Utente   Melissa 635-096 User Manual, 1 pagine
635-067 Manuale Utente      Melissa 635-067 User Manual [en] [ru] [de] [es] [fr] [it] [cs] [pl] , 18 pagine
Exido 235-028 Manuale Utente   Melissa Exido 235-028 User Manual, 1 pagine
Aircurler 635-099 Manuale Utente   Melissa Aircurler 635-099 User Manual, 1 pagine
235-009 Manuale Utente     Melissa 235-009 User Manual, 24 pagine
235-016 Manuale Utente   Melissa 235-016 User Manual, 1 pagine
635-092 Manuale Utente     Melissa 635-092 User Manual, 25 pagine
235-004 Manuale Utente      Melissa 235-004 User Manual, 17 pagine
235-015 Manuale Utente      Melissa 235-015 User Manual, 17 pagine
635-095 Manuale Utente   Melissa 635-095 User Manual, 1 pagine