Progress
AppBuilder
Developer’s Guide
Static SmartDataObjects
Static SmartDataObjects act as custom data pumps, each producing and managing a specific data stream based on the terms of a specific query. You define a base version of that query within a master version of the object at design time.
Depending on your business needs, you can also define and add custom validation routines to the master object. These validation routines can operate at various levels of granularity, from a single field to a whole transaction. Once you have the master defined, you can then use instances made from it as often as you like.
When you compile such a static SmartDataObject, the Compiler creates two different versions of the executable r-code. One represents the complete object, usable in any context. The other is a stripped-down, client-only version. Figure 4–1 illustrates this process.
Figure 4–1: Compilation of a SmartDataObject
![]()
The stripped-down version (identified by
_cl
in the filename, for example:dTest_cl.w
) will load whenever there is no local database connection. A_cl
object expects to cooperate with the complete version of the same object loaded as part of an AppServer partition.You can associate business rules or any other required logic with the object by writing the necessary code.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |