Progress
ADM 2 Reference


SmartDataObject

The SmartDataObject is a data pump. It creates and manages a data stream based on the terms of a query that you define within it. You can often avoid complicated JOINs by linking SmartDataObjects together, each managing a single table. If your application will run in a distributed environment, you can update multiple SmartDataObjects on an AppServer by linking them inside a SmartBusinessObject.

The class name of the SmartDataObject is Data, and it inherits from class Query. Both are Progress classes, and the file %DLC%/src/adm2/data.p is Data’s super procedure. The syntax for loading that file is:

SYNTAX
RUN start-super-proc("adm2/data.p":U). 

Other files related to data.p are:

Class Files
Custom Files
Definition
data.cld
Super
datacustom.p
Method
data.i
Method
datacustom.i
Property
dataprop.i
Property
datapropcustom.i
Prototype
dataprto.i
Prototype
dataprtocustom.i
Template
data.w
dyndata.w
Exclude
dataexclcustom.i
Overflow Files
dataext.p
dataextcols.p
Instance
datadefscustom.i
Additional Method Files
cltorsvr.i
robjflds.i

Query Class

The super-procedure file for class Query is query.p. The syntax for loading that file is:

SYNTAX
RUN start-super-proc("adm2/query.p":U). 

Other files related to query.p are:

Class Files
Custom Files
Definition
query.cld
Super
querycustom.p
Method
query.i
Method
querycustom.i
Property
qryprop.i
Property
qrypropcustom.i
Prototype
qryprto.i
Prototype
qryprtocustom.i
Template
Exclude
queryexclcustom.i
Overflow Files
queryext.p
Instance
querydefscustom.i
Additional Method Files
delrecst.i
tblprep.i

NOTE: If the macro {&APP-SERVER-VARS} is defined, the Query class will inherit from the AppServer class, represented by the super procedure appserver.p. To force the macro to be defined, set the AppServer-Aware check box in the Procedure Settings dialog box for your object. If there is no such check box, or it is disabled, then you cannot force the definition in that instance.

For the list of files defining the AppServer class, see the "AppServer Class" section.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095