PreviousNextIndex

DEFINE DATASET statement

Defines a ProDataSet object that is created at compile time, and allows you to identify the temp-table buffers it incorporates and define the data relations between those buffers. This statement defines the ProDataSet for use in one or more external procedures, or within a single class or class hierarchy.

Syntax

DEFINE { [ [ NEW ] SHARED ] | [ PRIVATE | PROTECTED ] [ STATIC ] } 
  DATASET dataset-name  
  [ NAMESPACE-URI namespace ] [ NAMESPACE-PREFIX prefix ] 
  [ XML-NODE-NAME node-name ] [ SERIALIZE-NAME serialize-name ]  
  [ REFERENCE-ONLY ] FOR buffer-name [ , buffer-name ] ... 
  DATA-RELATION [ data-rel-name ] FOR data-rel-spec 
  [ DATA-RELATION [ data-rel-name ] data-rel-spec ] ... 

NEW SHARED DATASET dataset-name
SHARED DATASET dataset-name
[ PRIVATE | PROTECTED ] [ STATIC ] DATASET dataset-name
DATASET dataset-name
NAMESPACE-URI namespace
NAMESPACE-PREFIX prefix
XML-NODE-NAME node-name
SERIALIZE-NAME serialize-name
REFERENCE-ONLY
FOR buffer-name [ , buffer-name ] ...
DATA-RELATION [ data-rel-name ] FOR data-rel-spec
parent-buffer-name
child-buffer-name
field-mapping-phrase
REPOSITION
NESTED
FOREIGN-KEY-HIDDEN
NOT-ACTIVE
RECURSIVE
Examples

For examples of ProDataSet definitions and usage, see OpenEdge Development: ProDataSets.

For examples of instance and static ProDataSet data member definitions, see the descriptions of r-CustObj.cls, r-CustObjStatic.cls, and r-CustObjAbstract.cls in the CLASS statement reference entry.

Notes
See also

Buffer object handle, Class-based data member access, CREATE DATASET statement, Data-relation object handle, DEFINE QUERY statement, DEFINE TEMP-TABLE statement, GET-TOP-BUFFER( ) method, NUM-REFERENCES attribute, OPEN QUERY statement, ProDataSet object handle, RECURSIVE attribute


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex