Patent ID: 7263514

Claim:
A method for executing a query on dynamic properties of a plurality of objects in a database, the method comprising: obtaining a query; determining that a first portion of the query comprises a method for accessing a dynamic property of the plurality of objects, determining that a second portion of the query comprises a reference to a static property of the plurality of objects, and determining that a third portion of the query comprises a method for accessing an unmapped dynamic property of the plurality of objects; obtaining mapping data associated with the dynamic property of the plurality of objects, the mapping data mapping the dynamic property to a pre-determined location in the database; translating the first portion of the query comprising the method for accessing the dynamic property in accordance with the mapping data such that the first portion of the query is executable against the pre-determined location in the database without creating instances of the plurality of objects; translating the second portion of the query comprising the reference to the static property to execute against the database; executing the query including executing the translated first portion of the query without creating instances of the plurality of objects; executing the translated second portion of the query; and creating an instance of the plurality of objects and executing the method for accessing the unmapped dynamic property on the instance of the plurality of and converting a result of the executed method into a data type specified in the query; and displaying a result of the executed query to a user.