# US 2009/0276405 A1 · System, method and computer program product for generating a set of instructions to an on-demand database service

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

- Number: US 2009/0276405 A1
- Document ID: US20090276405A1
- Status: Published application
- Kind: A1
- Application number: 12/434,490
- Filed: 2009-05-01
- Published: 2009-11-05
- Earliest claimed: 2008-05-01
- Assignees: salesforce.com, inc.
- Inventors: Craig Weissman; Andrew Waite
- Web page: https://patentgrep.com/patent/US20090276405A1

## CPC

- G06F 9/45508: {Runtime interpretation or emulation, e g. emulator loops, bytecode interpretation}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In accordance with embodiments, there are provided mechanisms and methods for generating a set of instructions to an on-demand database service. These mechanisms and methods for generating a set of instructions to an on-demand database service can enable embodiments to generate instructions capable of operating on objects, without having any knowledge of the objects on which the instructions are going to operate, until runtime. The ability of embodiments to provide this instruction generation may allow generic instructions to be generated, independent of the objects on which they will operate.

## Claims

### Claim 1

A method, comprising:
receiving at a platform supporting applications built by third parties, at least one programming language instruction associated with at least one custom object;
determining a shape for the at least one custom object based upon a runtime instance of the at least one custom object; and
generating, based on the at least one programming language instruction, a set of instructions to an on-demand database service, the set of instructions configured to operate upon the runtime instance of the at least one custom object based upon the shape.

### Claim 2 (depends on 1)

The method of claim 1, further comprising applying the set of instructions to the on-demand database service.

### Claim 3 (depends on 2)

The method of claim 2, wherein applying the set of instructions to the on-demand database service affects a result in accordance with the at least one programming language instruction.

### Claim 4 (depends on 1)

The method of claim 1, further comprising presenting a user of the on-demand database service with a list of entity types.

### Claim 5 (depends on 4)

The method of claim 4, wherein the list further includes a plurality of fields.

### Claim 6 (depends on 5)

The method of claim 5, further comprising receiving a selection of one or more of the plurality of fields or the entity types.

### Claim 7 (depends on 6)

The method of claim 6, further comprising generating the set of instructions based on the selection.

### Claim 8 (depends on 7)

The method of claim 7, wherein the set of instructions includes a query.

### Claim 9 (depends on 7)

The method of claim 7, further comprising executing the set of instructions.

### Claim 10 (depends on 9)

The method of claim 9, further comprising displaying results of the execution of the set of instructions.

### Claim 11 (depends on 1)

The method of claim 1, wherein the shape is determined utilizing one or more tokens.

### Claim 12 (depends on 11)

The method of claim 11, wherein the at least one custom objects are capable of accessing the one or more tokens.

### Claim 13 (depends on 11)

The method of claim 11, wherein the one or more tokens represent at least one entity type.

### Claim 14 (depends on 11)

The method of claim 11, wherein the one or more tokens represent at least one field.

### Claim 15 (depends on 11)

The method of claim 11, wherein the one or more tokens are utilized to separate a discovery phase from an information acquisition phase, the discovery phase and the acquisition phase being associated with the generating.

### Claim 16 (depends on 11)

The method of claim 11, wherein data manipulation language (DML) updates associated with the on-demand database service are based on the one or more tokens.

### Claim 17 (depends on 1)

The method of claim 1, wherein the receiving, determining, and generating are performed for a plurality of organizations simultaneously.

### Claim 18 (depends on 1)

The method of claim 1, wherein the on-demand database service includes a multi-tenant on-demand database service.

### Claim 19

A machine-readable medium carrying one or more sequences of instructions which, when executed by one or more processors, cause the one or more processors to carry out the steps of:
receiving at a platform supporting applications built by third parties, at least one programming language instruction associated with at least one custom object;
determining a shape for the at least one custom object based upon a runtime instance of the at least one custom object; and
generating, based on the at least one programming language instruction, a set of instructions to an on-demand database service, the set of instructions configured to operate upon the runtime instance of the at least one custom object based upon the shape.

### Claim 20

An apparatus, comprising:
a processor; and
one or more stored sequences of instructions which, when executed by the processor, cause the processor to carry out the steps of:
receiving at a platform supporting applications built by third parties, at least one programming language instruction associated with at least one custom object;
determining a shape for the at least one custom object based upon a runtime instance of the at least one custom object; and
generating, based on the at least one programming language instruction, a set of instructions to an on-demand database service, the set of instructions configured to operate upon the runtime instance of the at least one custom object based upon the shape.

### Claim 21

A method for transmitting code for use in a multi-tenant database system on a transmission medium, the method comprising:
transmitting code for receiving at a platform supporting applications built by third parties, at least one programming language instruction associated with at least one custom object;
transmitting code for determining a shape for the at least one custom object based upon a runtime instance of the at least one custom object; and
transmitting code for generating, based on the at least one programming language instruction, a set of instructions to an on-demand database service, the set of instructions configured to operate upon the runtime instance of the at least one custom object based upon the shape.
