Method for specifying and parsing expressions
AssigneeMicrosoft Corporation
InventorsAnthony R. Trappen, Steven P. Anonsen
Life of this patent
Estimating the term…
Abstract
A method of processing an expression includes encoding an expression in source code of an object-relational application, the expression having at least one property of a class. The source code is then compiled to provide run time code, wherein compiling of the expression produces a form of the expression having the intent of the expression by maintaining all operators and operands of the expression.
Claims20
A computer-implemented method of processing expressions within an object-relational database system, comprising:
- providing an object model including a plurality of classes configured to facilitate object-oriented access to data contained in a relational database, wherein one of the classes has a property;
- encoding an expression in source code of an object-relational application, the expression having an indication of the property;
- compiling the source code to provide run time code, wherein compiling of the expression produces a form of the expression having the intent of the expression by maintaining all operators and operands of the expression;
- and
- generating at least one expression formulated in a relational database language based on the run time code.
A computer-implemented method of generating an expression formulated in a relational database language, the method comprising:
- providing an object model having at least one object-oriented component;
- utilizing a compiler during compile time to parse an expression and provide a corresponding collection of code, the expression including an indication of the at least one object-oriented component of the object model;
- utilizing the corresponding collection of code at runtime to generate a parse tree that corresponds to the expression, said parse tree including an indication of the component of the object model;
- and
- generating the expression formulated in a relational database language based on the parse.
A computer-implemented method of processing a query within an object-relational database system, the method comprising:
- providing an object model including a plurality of classes configured to facilitate object-oriented access to data contained in a relational database, wherein one of the classes has a property;
- building a parse tree representation of a query, the query having an indication of the property;
- and
- formulating an expression in a relational database language based on the parse tree representation, wherein the expression corresponds to the parse tree representation and is suitable for execution by a database server.
Dependencies are inferred from the claim text.