Synchronizing field values in an on-demand database prior to committing a change
First Claim
Patent Images
1. A method for synchronizing field values before saving a transaction to a database, the method comprising:
- accepting a change to a first field in a first transient data object, the first transient data object temporarily representing a portion of a database;
determining that a dependency of a second field in a second transient data object upon the first field in the first transient data object exists, the second transient data object temporarily representing a portion of the database;
updating the second field in the second transient data object using the change to the first field in the first transient data object and the dependency;
after updating, executing user-supplied code which references the second field to determine a value for a third field; and
committing changed values in the first, second, and third fields to the database in a save operation, whereby the user-supplied code executes on updated transient data object fields.
1 Assignment
0 Petitions
Accused Products
Abstract
Methods and systems are provided for synchronizing field values in transient data objects, such as JAVA® objects, before saving a transaction to a database. A dependency from one data object to another data object is detected, and changes which affect the second data object'"'"'s fields through the dependency are flowed through to the second data object. This is performed between each step of a multistep save process, such between triggers, validation rules, workflows, and the final committing of data to the database.
121 Citations
20 Claims
-
1. A method for synchronizing field values before saving a transaction to a database, the method comprising:
-
accepting a change to a first field in a first transient data object, the first transient data object temporarily representing a portion of a database; determining that a dependency of a second field in a second transient data object upon the first field in the first transient data object exists, the second transient data object temporarily representing a portion of the database; updating the second field in the second transient data object using the change to the first field in the first transient data object and the dependency; after updating, executing user-supplied code which references the second field to determine a value for a third field; and committing changed values in the first, second, and third fields to the database in a save operation, whereby the user-supplied code executes on updated transient data object fields. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A non-transitory machine-readable storage medium having instructions stored thereon for causing one or more machines to perform operations comprising:
-
accepting a change to a first field in a first transient data object, the first transient data object temporarily representing a portion of a database; determining that a dependency of a second field in a second transient data object upon the first field in the first transient data object exists, the second transient data object temporarily representing a portion of the database; updating the second field in the second transient data object using the change to the first field in the first transient data object and the dependency; after updating, executing user-supplied code which references the second field to determine a value for a third field; and committing changed values in the first, second, and third fields to the database in a save operation, whereby the user-supplied code executes on updated transient data object fields.
-
-
20. A computer system comprising a processor operatively connected with memory, the processor executing:
-
program code to accept a change to a first field in a first transient data object, the first transient data object temporarily representing a portion of a database; program code to determine that a dependency of a second field in a second transient data object upon the first field in the first transient data object exists, the second transient data object temporarily representing a portion of the database; program code to update the second field in the second transient data object using the change to the first field in the first transient data object and the dependency; program code to, after updating, execute user-supplied code which references the second field to determine a value for a third field; and program code to commit changed values in the first, second, and third fields to the database in a save operation, whereby the user-supplied code executes on updated transient data object fields.
-
Specification