# US 2019/0377561 A1 · Transforming non-apex code to apex code

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

- Number: US 2019/0377561 A1
- Document ID: US20190377561A1
- Status: Published application
- Kind: A1
- Application number: 16/547,486
- Filed: 2019-08-21
- Published: 2019-12-12
- Earliest claimed: 2018-05-04
- Assignees: salesforce.com, inc.
- Applicants: salesforce.com, inc.
- Inventors: Qinghua Yang
- Web page: https://patentgrep.com/patent/US20190377561A1

## CPC

- G06F 8/51: Source to source
- G06F 8/315: {Object-oriented languages}
- G06F 8/40: Transformation of program code
- G06F 8/425: {Lexical analysis}
- G06F 8/436: {Semantic checking}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Source code of a first high-level language is received and analyzed. The source code of the first high-level language is transformed into source code of a second high-level language. The source code of the second high-level language is customized to a specific organization among a plurality of organizations that are hosted in a multitenant platform. At least a portion of the source code of the second high-level language is caused to be compiled into low-level code for execution in the multitenant platform.

## Claims

### Claim 1

A computer-implemented method, comprising:
identifying, in source code of a first high-level programming language to be transformed into source code of a second high-level programming language, a first source code portion that uses a particular standard data object name to reference and access a particular standard data object;
transforming the first source code portion to a second source code portion in the source code of the second high-level programming language;
compiling the second source code portion into a low-level code portion, which when executed, cause performance of:
identifying a specific organization from among a plurality of organizations that are hosted in a multitenant platform; and
referencing and accessing an organization-specific instance of the particular standard data object among a plurality of organization-specific instances of the particular standard data object, wherein the plurality of organization-specific instances of the particular standard data object is provided by the multitenant platform to the plurality of organizations that are hosted in the multitenant platform, wherein the particular organization-specific instance of the particular standard data object is provided by the multitenant platform to the specific organization.

### Claim 2 (depends on 1)

The computer-implemented method as recited in claim 1, wherein the first source code portion of the first high-level programming language is free of access control source code statements with respect to the particular standard data object, and wherein the second source code portion of the second high-level programming language is generated to include access control source code statements that control user access to the particular organization-specific instance of the particular standard data object.

### Claim 3 (depends on 1)

The computer-implemented method as recited in claim 1, wherein the first source code portion of the first high-level programming language comprises a wildcard reference to all data fields in the particular standard data object, wherein the second source code portion of the second high-level programming language determines a subset of data fields, accessible to a user at runtime, in the particular organization-specific instance of the particular standard data object.

### Claim 4 (depends on 3)

The computer-implemented method as recited in claim 3, wherein the subset of data fields includes at least one of: a standard data field as provided by the multitenant platform, or a custom data field defined by the particular organization in the plurality of organizations.

### Claim 5 (depends on 1)

The computer-implemented method as recited in claim 1, wherein the first source code portion of the first high-level programming language comprises a database statement for executing a database operation with respect to the particular standard data object.

### Claim 6 (depends on 1)

The computer-implemented method as recited in claim 1, wherein the second source code portion of the second high-level programming language is generated to include source code statements to deploy a customer object in the particular organization, and wherein the customer object is accessible to users in the particular organization but not other users in other organizations in the plurality of organizations.

### Claim 7 (depends on 1)

The computer-implemented method as recited in claim 1, further comprising: generating bytecodes that enable high performance execution of operations and logics specified in the source code of the first high-level programming language.

### Claim 8

One or more non-transitory computer readable media storing a program of instructions that is executable by a device to perform:
identifying, in source code of a first high-level programming language to be transformed into source code of a second high-level programming language, a first source code portion that uses a particular standard data object name to reference and access a particular standard data object;
transforming the first source code portion to a second source code portion in the source code of the second high-level programming language;
compiling the second source code portion into a low-level code portion, which when executed, cause performance of:
identifying a specific organization from among a plurality of organizations that are hosted in a multitenant platform; and
referencing and accessing an organization-specific instance of the particular standard data object among a plurality of organization-specific instances of the particular standard data object, wherein the plurality of organization-specific instances of the particular standard data object is provided by the multitenant platform to the plurality of organizations that are hosted in the multitenant platform, wherein the particular organization-specific instance of the particular standard data object is provided by the multitenant platform to the specific organization.

### Claim 9 (depends on 8)

The one or more non-transitory computer readable media as recited in claim 8, wherein the first source code portion of the first high-level programming language is free of access control source code statements with respect to the particular standard data object, and wherein the second source code portion of the second high-level programming language is generated to include access control source code statements that control user access to the particular organization-specific instance of the particular standard data object.

### Claim 10 (depends on 8)

The one or more non-transitory computer readable media as recited in claim 8, wherein the first source code portion of the first high-level programming language comprises a wildcard reference to all data fields in the particular standard data object, wherein the second source code portion of the second high-level programming language determines a subset of data fields, accessible to a user at runtime, in the particular organization-specific instance of the particular standard data object.

### Claim 11 (depends on 10)

The one or more non-transitory computer readable media as recited in claim 10, wherein the subset of data fields includes at least one of: a standard data field as provided by the multitenant platform, or a custom data field defined by the particular organization in the plurality of organizations.

### Claim 12 (depends on 8)

The one or more non-transitory computer readable media as recited in claim 8, wherein the first source code portion of the first high-level programming language comprises a database statement for executing a database operation with respect to the particular standard data object.

### Claim 13 (depends on 8)

The one or more non-transitory computer readable media as recited in claim 8, wherein the second source code portion of the second high-level programming language is generated to include source code statements to deploy a customer object in the particular organization, and wherein the customer object is accessible to users in the particular organization but not other users in other organizations in the plurality of organizations.

### Claim 14 (depends on 8)

The one or more non-transitory computer readable media as recited in claim 8, wherein the program of instructions is executable by the device to further perform: generating bytecodes that enable high performance execution of operations and logics specified in the source code of the first high-level programming language.

### Claim 15

A system, comprising:
one or more computing processors; and
one or more non-transitory computer readable media storing a program of instructions that is executable by the one or more computing processors to perform:
identifying, in source code of a first high-level programming language to be transformed into source code of a second high-level programming language, a first source code portion that uses a particular standard data object name to reference and access a particular standard data object;
transforming the first source code portion to a second source code portion in the source code of the second high-level programming language;
compiling the second source code portion into a low-level code portion, which when executed, cause performance of:
identifying a specific organization from among a plurality of organizations that are hosted in a multitenant platform; and
referencing and accessing an organization-specific instance of the particular standard data object among a plurality of organization-specific instances of the particular standard data object, wherein the plurality of organization-specific instances of the particular standard data object is provided by the multitenant platform to the plurality of organizations that are hosted in the multitenant platform, wherein the particular organization-specific instance of the particular standard data object is provided by the multitenant platform to the specific organization.

### Claim 16 (depends on 15)

The system as recited in claim 15, wherein the first source code portion of the first high-level programming language is free of access control source code statements with respect to the particular standard data object, and wherein the second source code portion of the second high-level programming language is generated to include access control source code statements that control user access to the particular organization-specific instance of the particular standard data object.

### Claim 17 (depends on 15)

The system as recited in claim 15, wherein the first source code portion of the first high-level programming language comprises a wildcard reference to all data fields in the particular standard data object, wherein the second source code portion of the second high-level programming language determines a subset of data fields, accessible to a user at runtime, in the particular organization-specific instance of the particular standard data object.

### Claim 18 (depends on 17)

The system as recited in claim 17, wherein the subset of data fields includes at least one of: a standard data field as provided by the multitenant platform, or a custom data field defined by the particular organization in the plurality of organizations.

### Claim 19 (depends on 15)

The system as recited in claim 15, wherein the first source code portion of the first high-level programming language comprises a database statement for executing a database operation with respect to the particular standard data object.

### Claim 20 (depends on 15)

The system as recited in claim 15, wherein the second source code portion of the second high-level programming language is generated to include source code statements to deploy a customer object in the particular organization, and wherein the customer object is accessible to users in the particular organization but not other users in other organizations in the plurality of organizations.
