These scenarios illustrate how to use cache policies and mobile business object (MBO) operations to combine and merge in-memory MBO attributes and enterprise information system (EIS) results and apply them to the Unwired Server cache (CDB).
Department dept = new Department(); dept.dept_id = 1000; // assign the primary key attribute with a value dept.dept_name = "QA1000"; dept.dept_head_id = 501; dept.save(); dept.submitpending(); //note the surrogatekey. TestDB.synchronize();
Department dept = new Department(); //dept.dept_id = 1000; // Do not assign the primary key attribute dept.dept_name = "QA1000"; dept.dept_head_id = 501; dept.create(1001); dept.submitpending(); //note the surrogatekey. TestDB.synchronize();