Use operations other than create, update, or delete.
In this example, a customized operator is used to perform a sum
operation.
- Suppose you have an MBO that has an operator that generates a
customized sum. Begin by creating an object instance and assigning values to its
attributes, specifying the "Add" operation:
SMP101AddOperation op = new SMP101AddOperation(); //Convention is <MBO Name>+<Operation Name>+"Operation"
op.setOperand1(12);
op.setOperand2(23);
op.setOperator("Add");
op.save();
- Call the MBO instance's submitPending method and synchronize with the generated database:
op.submitPending();
SMP101DB.synchronize();