Patent ID: 7480661

Claim:
A system for providing services for queries against a database, comprising: a first component, stored on a computer readable storage medium, coupleable to the database and exposing an interface having methods which, when invoked, receive a request from a client and perform object-based operations on a query object, the query object defining a query executable against the database and the object-based operations including a store operation to persist the query object for later use, the first component being further configured to return the query object, for user modification, in response to receiving a request to return a stored query object and a reference to the query object; wherein the first component is configured to persist the query object and include in the query object system-substitutable variables as query restrictions, the system-substitutable variables being defined by the system and are comprised of executable code, executed when the query defined by the query object is executed against the database; and wherein the first component is configured to receive user-selection of properties of entities stored in the database to be queried, and to present for user selection only properties of the entities to be queried that are queryable by the user.