DEFINE PRIVATE PROTECTED STATIC DATA-SOURCE data-source-nameFOR QUERY query-namesource-buffer-phrase , source-buffer-phrasedata-source-name FORPRIVATE PROTECTED STATIC DATA-SOURCE
Note: The specified options are applicable only when defining a data member for a class in a class definition (.cls) file. Note also that you cannot shadow (override) the definition of a given data-source data member in a class hierarchy.For more information on accessing data-sources of different access modes and scopes, see the reference entry for Class-based data member access.For more information on where and how to define data members in a class, see the CLASS statement reference entry.DATA-SOURCE data-source-name FORquery-nameQUERYsource-buffer-phrase , source-buffer-phrase
buffer-name KEYS ( field1 , fieldn ROWID )For examples of data-source definitions and usage, see OpenEdge Development: ProDataSets.For examples of instance and static data-source data member definitions, see the descriptions of r-CustObj.cls, r-CustObjStatic.cls, and r-CustObjAbstract.cls in the CLASS statement reference entry.A data-source can be compile-time defined (often referred to as a static data-source object), where the data-source is defined and created at compile time using this statement, or it can be run-time defined (often referred to as a dynamic data-source object), where the data-source is defined and created at run time using the CREATE DATA-SOURCE statement and data-source object handle operations. A compile-time defined data-source can also be defined as a static data member of a class. In this case, it is a static data-source object that is also a class static data member.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |