Typical database transaction when creating an object:5 O( P' ?5 m) Z7 o& u/ R
如何创建一个对象) j, F$ a4 x: n" F7 V
1. FL_create z) B* a6 m2 t8 }Create the object.% n, o: M {& A4 e
2. AOM_save( r* I& J4 n# x9 G' M$ e
Save the record/object.: A: z" m5 K& A
3. AOM_unlock " t# { ~5 m& g: k! i9 vUnlock the record/object.2 T- k; J# @ Y5 o! m; Q6 I
Note) _/ y* W& ?# \9 l
Other functions to create an object could be used in place of FL_create.$ k. Q9 ]4 a$ t( j; ?& L9 e/ ~
! E# ^) s5 b0 S+ ]/ b- M# Z: }9 j) O0 i! D
Typical database transaction when changing an object: * J3 g/ R/ w' y9 R& M如何编辑一个对象 + v: h& c$ M; @: O9 C1. WSOM_find — Get (find/search/others) the record/object. : a" R: p) s( {/ C2. AOM_lock — Lock the record/object.& h. ?" I. y( u% b! h6 {, ~
3. WSOM_set_name — Change attribute(s) of the record/object.$ s& B) t+ H& a8 Y) W) O0 x# E
4. AOM_save — Save the record/object.4 r$ E( x" o/ P" K( i' j, C
5. AOM_unlock — Unlock the record/object.7 \4 V9 _. G5 S! ^
% E* A4 F7 k. t* J$ F4 F, ~ x 9 e- p* W9 @: \6 D* O: C7 M