Claims
- 1. A method for evaluating rules in a database system, the method comprising the steps of:
receiving an evaluation context that specifies what can be referenced in a corresponding rule condition; receiving a set of one or more rules, wherein each rule includes a rule condition; and evaluating one or more rules from the set of rules against information that is specified in the evaluation context to determine whether a rule condition is satisfied.
- 2. The method of claim 1, wherein the step of receiving an evaluation context includes receiving an evaluation context that specifies a list of one or more data tables that can be referenced in a corresponding rule condition.
- 3. The method of claim 1, wherein the step of receiving an evaluation context includes receiving an evaluation context that defines one or more variables that can be referenced in a corresponding rule condition.
- 4. The method of claim 1, wherein the step of receiving an evaluation context includes receiving an evaluation context that specifies a list of one or more data tables and defines one or more variables that can be referenced in a corresponding rule condition.
- 5. The method of claim 1,
wherein the step of receiving an evaluation context includes receiving an evaluation context that specifies a list of one or more data tables that can be referenced in a corresponding rule condition; and the method further comprises the steps of: controlling management of the evaluation context with a first security privilege; and controlling access to the one or more tables with a second security privilege that is different than the first security privilege.
- 6. The method of claim 1,
wherein the steps of receiving include receiving from a software application; wherein the step of evaluating is performed by a database server; and wherein the software application is different than the database server.
- 7. The method of claim 6, further comprising the step of:
receiving, from the software application, the information against which the set of rules is evaluated.
- 8. The method of claim 1,
wherein the step of receiving a set of rules includes receiving a rule that includes a first rule condition and a second rule condition that is disjunctively related to the first rule condition and wherein the first rule condition includes a third rule condition and a fourth rule condition that is conjunctively related to the third rule condition; wherein the information that the one or more rules are evaluated against includes third information that is associated with the third condition and does not include fourth information that is associated with the fourth condition; and wherein the step of evaluating includes
evaluating the third condition against the third information to determine whether the third condition is satisfied by the third information; if the third condition is not satisfied by the third information, then returning an indication that the first condition is not satisfied; and if the third condition is satisfied by the third information, then returning an indication that the first condition may be satisfied.
- 9. The method of claim 8, wherein the third condition is a simple rule condition.
- 10. The method of claim 8, wherein:
if at least one indication is returned that the first condition is satisfied or that the second condition is satisfied, then returning an indication that the rule is satisfied; if no indication is returned that the first condition is satisfied or that the second condition is satisfied and if at least one indication is returned that the first condition may be satisfied or that the second condition may be satisfied, then returning an indication that the rule may be satisfied; and if no indication is returned that the first condition is satisfied or that the second condition is satisfied and no indication is returned that the first condition may be satisfied or that the second condition may be satisfied, then returning an indication that the rule is not satisfied.
- 11. The method of claim 1, wherein the step of receiving an evaluation context includes receiving an evaluation context that is associated with a subset of the set of rules.
- 12. The method of claim 1, wherein the step of receiving an evaluation context includes receiving an evaluation context that is associated with each rule of the set of rules.
- 13. The method of claim 1, wherein the step of receiving an evaluation context and the step of receiving the set of rules are performed by a single act of receiving a message that includes both the evaluation context and the set of rules.
- 14. A computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 1.
- 15. A computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 2.
- 16. A computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 3.
- 17. A computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 4.
- 18. A computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 5.
- 19. A computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 6.
- 20. A computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 7.
- 21. A computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 8.
- 22. A computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 9.
- 23. A computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 10.
- 24. A computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 11.
- 25. A computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 12.
- 26. A computer-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 13.
- 27. An apparatus for evaluating rules in a database system, the apparatus comprising:
means for receiving an evaluation context that specifies what can be referenced in a corresponding rule condition; means for receiving a set of one or more rules, wherein each rule includes a rule condition; and means for evaluating one or more rules from the set of rules against information that is specified in the evaluation context to determine whether a rule condition is satisfied.
CROSS REFERENCE TO RELATED APPLICATIONS
[0001] This application is a continuation-in-part application and claims the benefit of domestic priority under 35 U.S.C. §120 from U.S. patent application Ser. No. 10/254,383 entitled “Managing Expressions In A Database System,” filed on Sep. 24, 2002; and claims the benefit of domestic priority under 35 U.S.C. §119(e) from U.S. Provisional Patent Application No. 60/378,018 entitled “Managing Expressions In A Database System,” filed on May 10, 2002; and is related to U.S. patent application Ser. No. 10/365,771 entitled “Managing XPath Expressions In A Database System,” filed on Feb. 12, 2003, U.S. Pat. No. 6,405,191 entitled “Content Based Publish-And-Subscribe System Integrated in a Relational Database System,” issued on Jun. 11, 2002, and U.S. Pat. No. 6,502,093, entitled “Approach for Publishing Data in a Relational Database System,” issued on Dec. 31, 2002; all of which are incorporated by reference in their entirety for all purposes as if fully set forth herein.
Provisional Applications (1)
|
Number |
Date |
Country |
|
60378018 |
May 2002 |
US |
Continuation in Parts (1)
|
Number |
Date |
Country |
Parent |
10254383 |
Sep 2002 |
US |
Child |
10418882 |
Apr 2003 |
US |