Surrogate-based and extends-based context look-up
AssigneeLawson Software, Inc.
InventorsMichael Alexander Herrmann, Leon Curtis Johnson, Richard D. Patton
Life of this patent
Estimating the term…
Abstract
Methods, apparatus and systems for processing of code that includes key fields having surrogate and extends relationships are described. In some embodiments, a method includes receiving a pattern language code having definitions of a number of classes, wherein a definition of a first class of the number of classes comprises a reference to a field. The method also includes compiling the pattern language code to generate an object code, wherein the compiling comprises validating that the field is defined with a context of the first class. The context includes a second class of the number of classes that has a surrogate relationship with the first class.
Claims17
A computer-implemented method comprising:
- receiving a pattern language code having definitions of a number of classes, wherein a definition of a first class of the number of classes comprises a reference to a first key field, wherein a definition of a second class comprises a reference to a second key field, wherein the first key field references a first external object and the second key field references a second external object, wherein the first external object and the second external object are different external objects, and wherein the first external object is in an ontological relationship with the second external object in order to establish a surrogate relationship;
- and
- compiling, using one or more processors, the pattern language code to generate object code, wherein the compiling comprises validating the surrogate relationship between the first and second classes;
- wherein the surrogate relationship defines a relationship where the second class can functionally replace the first class in the compiled object code.
A computer-implemented method comprising:
- receiving pattern code including definitions of a plurality of business classes, wherein a definition of each of the plurality of business classes includes a reference to a key field, wherein each key field of each of the plurality of business classes references an external object of a plurality of external objects, wherein a definition of a first business class of the plurality of business classes includes a reference to a first key field, wherein the first key field references a first external object, wherein the first external object is in an ontological relationship with each of the other external objects and, wherein the ontological relationships include a surrogate relationship between the first external object and one of the other external objects and an extends relationship between the first external object and one of the other external objects;
- and
- compiling, using one or more processors, the code to generate an executable, wherein the compiling includes validating the surrogate and extends relationships between the first business class and the plurality of business classes;
- wherein the surrogate relationship defines a relationship where one of plurality of business classes can functionally replace the first business class in the compiled object code;
- wherein the extends relationship defines a relationship where one of the plurality of business classes extends the first business class in the compiled object code.
A computer-implemented method comprising:
- receiving a pattern language code having definitions of a number of classes,
- wherein a definition of a first class of the number of classes includes references to a first key and a second key field,
- wherein a definition of a second class of the number of classes includes references to a third and a fourth key field,
- wherein a definition of a third class includes references to a fifth and a sixth key field,
- wherein a definition of a fourth class includes references to a Seventh and an eighth key field,
- wherein the first, fifth, and seventh key fields all reference an external object A,
- wherein the second, fourth, and sixth key fields all reference an external object B,
- wherein the third key field references an external object C,
- wherein the eighth key field references an external object D,
- wherein the first and the seventh key fields establish an extends relationship between the first and fourth classes, and
- wherein the second and fourth key fields establish an extends relationship between the first and second classes;
- and
- compiling the pattern language code to generate an executable, wherein the compiling includes validating the extends relationships between the first and second classes and the first and fourth classes, and replacing the first class with one of the second or fourth classes while compiling;
- wherein the extends relationship defines a relationship where the second and fourth classes extend the functionality of the first class in the compiled code, and wherein the first class includes characteristics not included in the second and fourth classes and the second and fourth classes include characteristic not included in the first class.
A system comprising:
- a computer including one or more processors and memory device coupled to the one or more processors, the computer further including,
- a code generator configured to generate a pattern language code having definitions of a number of classes, wherein a definition of a first class of the number of classes comprises a reference to a first key field, wherein a definition of a second class comprises a reference to a second key field, wherein the first key field references a first external object and the second key field references a second external object, wherein the first external object and the second external object are different external objects, and wherein the first external object is in an ontological relationship with the second external object in order to establish a surrogate relationship;
- and
- a compiler configured to compile the pattern language code into an executable, wherein the compiler is configured to validate the surrogate relationship between the first and second classes while compiling;
- wherein the surrogate relationship defines a relationship where the second class can functionally replace the first class in the compiled object code.
A system comprising:
- a computer including one or more processors and a memory device coupled to the one or more processors, the computer further including,
- a code generator configured to generate a pattern language code having definitions of a number of classes, wherein a definition of a first class of the number of classes comprises a reference to a first key field, wherein a definition of a second class comprises a reference to a second key field, wherein the first key field and the second key field references a first external object, and wherein the first and third key fields establish an extends relationship between the first and third classes;
- and
- a compiler configured to compile the pattern language code into an executable, wherein the compiler is configured to validate the extends relationship between the first and second classes while compiling;
- wherein the extends relationship defines a relationship where the third class extends the functionality of the first class in the compiled object code, wherein the first class includes characteristics not included in the second class, and wherein the second class includes characteristics not included in the first class.
Dependencies are inferred from the claim text.