DATA MODELS CONTAINING HOST LANGUAGE EMBEDDED CONSTRAINTS
First Claim
1. A computer-implemented method comprising:
- receiving, on a computer, a first event handler containing code configured to validate an object defined in a database, wherein an application configured to manage the database and the first event handler are in a host language;
identifying, by the computer and according to the first event handler, a built-in event associated with the object; and
registering, by the computer, the first event handler to the built-in event,wherein the application automatically calls the first event handler when the built-in event is triggered.
2 Assignments
0 Petitions
Accused Products
Abstract
Techniques are described for expressing a constraint in a host language. A constraint can be defined in the host language as an event handler. The event handler can be registered to a built-in event associated with an object of the database that the constraint is intended to validate. When the object triggers the built-in event, the event handler is called to execute the constraint. Exemplary built-in events include onSave (trigger the event when the object is saved), onValidate (trigger the event when an explicit call to validate the object is detected), onInsert (trigger the event when the object is inserted), onUpdate (trigger the event when the object is updated), and onCheckBeforeSave (trigger the event when the object is checked prior to saving).
19 Citations
20 Claims
-
1. A computer-implemented method comprising:
-
receiving, on a computer, a first event handler containing code configured to validate an object defined in a database, wherein an application configured to manage the database and the first event handler are in a host language; identifying, by the computer and according to the first event handler, a built-in event associated with the object; and registering, by the computer, the first event handler to the built-in event, wherein the application automatically calls the first event handler when the built-in event is triggered. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A non-transitory computer readable storage medium storing one or more programs, the one or more programs comprising instructions for:
-
receiving, on a computer, a first event handler containing code configured to validate an object defined in a database, wherein an application configured to manage the database and the first event handler are in a host language; identifying, by the computer and according to the first event handler, a built-in event associated with the object; and registering, by the computer, the first event handler to the built-in event, wherein the application automatically calls the first event handler when the built-in event is triggered. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A computer system comprising:
-
a processor; and a non-transitory computer readable medium having stored thereon one or more programs, which when executed by the processor, causes the processor to; receive a first event handler containing code configured to validate an object defined in a database, wherein an application configured to manage the database and the first event handler are in a host language; identify according to the first event handler, a built-in event associated with the object; and register the first event handler to the built-in event, wherein the application automatically calls the first event handler when the built-in event is triggered. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification