# US 2008/0270348 A1 · Automatic event registration during query execution

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2008/0270348 A1
- Document ID: US20080270348A1
- Status: Published application
- Kind: A1
- Application number: 11/799,330
- Filed: 2007-04-30
- Published: 2008-10-30
- Earliest claimed: 2007-04-30
- Assignees: Sap SE
- Inventors: Gerd Forstmann
- Web page: https://patentgrep.com/patent/US20080270348A1

## CPC

- G06F 16/2455: Query execution
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In one aspect, a computer-implemented method may provide evaluation of a query based on query-specific event handlers. The method may include receiving a query. Moreover, one or more objects and aspects of the objects may be determined based on the received query. The objects and aspects may be registered with event handlers to monitor the objects and aspects. The received query may be evaluated, when at least one of the event handlers indicates a change to at least one of the objects and the aspects. Other event handlers may be registered, when at least one of the event handlers indicates the change. Related systems, apparatus, methods, and/or articles are also described.

## Claims

### Claim 1

A computer-readable medium containing instructions to configure a processor to perform a method, the method comprising:
receiving a query;
determining, based on the received query, one or more objects and one or more aspects of the objects;
registering the one or more objects and the one or more aspects of the objects with one or more event handlers to monitor at least one of the objects and the aspects;
evaluating the received query, when at least one of the event handlers indicates a change to at least one of the objects and the aspects; and
registering other event handlers, when at least one of the event handlers indicates the change.

### Claim 2 (depends on 1)

The computer-readable medium of claim 1 wherein receiving further comprises:
receiving the query as a message and implementing the query using SQL (Structured Query Language) or XQuery.

### Claim 3 (depends on 1)

The computer-readable medium of claim 1 wherein determining the one or more objects and the one or more aspects further comprises:
implementing the one or more objects as business objects; and
identifying, by parsing the query, one or more of the following: a business object, an association among business objects, and an attribute of the business object.

### Claim 4 (depends on 1)

The computer-readable medium of claim 1 wherein registering the one or more event handlers further comprises:
registering the one or more event handlers at a server receiving the query, the server including objects implemented as business objects.

### Claim 5 (depends on 1)

The computer-readable medium of claim 1 wherein registering the one or more event handlers further comprises:
registering a corresponding event handler as a callback interface at a repository including the objects.

### Claim 6 (depends on 1)

The computer-readable medium of claim 1 wherein evaluating the received query further comprises:
indicating the change by calling a user interface to enable the user interface to resend the query.

### Claim 7 (depends on 1)

The computer-readable medium of claim 1 wherein registering other event handlers further comprises:
discarding the one or more event handlers, when at least one of the event handlers indicates the change.

### Claim 8 (depends on 1)

The computer-readable medium of claim 1 further comprising:
providing a result of the received query based on the evaluation.

### Claim 9

A computer-implemented method comprising:
receiving a query;
determining, based on the received query, one or more objects and one or more aspects of the objects;
registering the one or more objects and the one or more aspects of the objects with one or more event handlers to monitor at least one of the objects and the aspects;
evaluating the received query, when at least one of the event handlers indicates a change to at least one of the objects and the aspects; and
registering other event handlers, when at least one of the event handlers indicates the change.

### Claim 10 (depends on 9)

The computer-implemented method of claim 9 wherein receiving further comprises:
receiving the query as a message and implementing the query using SQL (Structured Query Language) or XQuery.

### Claim 11 (depends on 9)

The computer-implemented method of claim 9 wherein determining the one or more objects and the one or more aspects further comprises:
implementing the one or more objects as business objects; and
identifying, by parsing the query, one or more of the following: a business object, an association among business objects, and an attribute of the business object.

### Claim 12 (depends on 9)

The computer-implemented method of claim 9 wherein registering the one or more event handlers further comprises:
registering the one or more event handlers at a server receiving the query, the server including objects implemented as business objects.

### Claim 13 (depends on 9)

The computer-implemented method of claim 9 wherein registering the one or more event handlers further comprises:
registering a corresponding event handler as a callback interface at a repository including the objects.

### Claim 14 (depends on 9)

The computer-implemented method of claim 9 wherein evaluating the received query further comprises:
indicating the change by calling a user interface to enable the user interface to resend the query.

### Claim 15 (depends on 9)

The computer-implemented method of claim 9 wherein registering other event handlers further comprises:
discarding the one or more event handlers, when at least one of the event handlers indicates the change.

### Claim 16 (depends on 9)

The computer-implemented method of claim 9 further comprising:
providing a result of the received query based on the evaluation.

### Claim 17

A system comprising:
a processor; and
a memory, wherein the processor and the memory are configured to perform a method comprising:
receiving a query;
determining, based on the received query, one or more objects and one or more aspects of the objects;
registering the one or more objects and the one or more aspects of the objects with one or more event handlers to monitor at least one of the objects and the aspects;
evaluating the received query, when at least one of the event handlers indicates a change to at least one of the objects and the aspects; and
registering other event handlers, when at least one of the event handlers indicates the change.

### Claim 18 (depends on 17)

The system of claim 17 wherein receiving further comprises:
receiving the query as a message and implementing the query using SQL (Structured Query Language) or XQuery.

### Claim 19 (depends on 17)

The system of claim 17 wherein determining the one or more objects and the one or more aspects further comprises:
implementing the one or more objects as business objects; and
identifying, by parsing the query, one or more of the following: a business object, an association among business objects, and an attribute of the business object.

### Claim 20 (depends on 17)

The system of claim 17 wherein registering the one or more event handlers further comprises:
registering the one or more event handlers at a server receiving the query, the server including objects implemented as business objects.
