Patent ID: 8341647

Claim:
A computer method for conducting a query regarding an entity bean, comprising: receiving the query regarding the entity bean, including receiving user input requesting historical data associated with the entity bean that corresponds to a time window and a statistic, wherein the statistic is at least one of an average, minimum, or maximum, and wherein the statistic is determined without creating a history entity bean; receiving a query language definition for the query; parsing the query language definition into a query plan; generating an event adapter using the query plan, wherein the event adapter is configured to enable at least two of: generating event information according to the user input while the entity bean is executing, wherein generating the event information includes generating a plurality of events in response to a plurality of states of the entity bean, wherein each of the plurality of events includes a predefined action that affects the entity bean, and wherein each event includes an identifier indicative of a functionality associated with the entity bean and a time value; storing the event information in a memory; and deleting a portion of the event information based on the user input; using a history engine to automatically determine the historical data and the statistic from the event information, including performing a statistical operation corresponding to the statistic using the event information; and outputting the historical data.