摘要 |
<p>An object-oriented query language apparatus and method provides data abstraction, seamlessness with respect to the host programming language, set support orthogonal to persistence and strong typing. Such apparatus for processing queries includes a preprocessor (144,148) to parse, optimize, and translate object query language statements into efficient host language statements, connected to a compiler (152) that compiles such host language statements into executable code (154). Therefore, by inputting a program containing statements using a host language's type system as well as employing the host language's expressions, object composition, and inheritance in the formulation of queries, and by combining the Select-From-Where style of Standard Query Language as a basic structure for query statements with the set-valued function of the host language as targets for those queries, an associative query capability is added to a host programming language, thereby improving its versatility and functionality. <IMAGE></p> |