class DataObjectModel use-widget-pool:
   define variable dbQueryHandle as handle.
   define variable bufferStat as handle.
   
   METHOD PUBLIC VOID SetData ( ):
      create query dbQueryHandle.
      create buffer bufferStat for table "stat2".
      dbQueryHandle:add-buffer(bufferStat).
      
      dbQueryHandle:query-prepare("for each stat2 where stat2.f1 = 4").
      DbQueryHandle:query-open().
      DbQueryHandle:get-first(no-lock).
   END METHOD.

end class.
