Try OpenEdge Now
skip to main content
Programming Interfaces
Database Administration Entity Collection Interface Reference : IDataAdminCollection interface : IDataAdminCollection methods
 

IDataAdminCollection methods

Defines the methods listed in the following table.
Table 124. Multi-tenant Maintenance IDataAdminCollection interface methods
Method syntax
Description
IIterator Iterator ( filter AS CHARACTER )
Returns a filtered and/or sorted iterator (IIterator) object that provides the selected entities from the collection, where filter is a query expression on the properties of the entities in the collection. Property expressions and their constituent elements (including operators) must be separated by space, and values must be quoted.
For more information on filtering and sorting entities from a collection, see Filteringand sorting. For more information on the returned IIterator object, see IIteratorinterface.
VOID Export ( )
Exports the entity collection data to a JSON file named for the sub-interface entity collection, for instance, areaset.json or tenantset.json for an IAreaSet or ITenantSet object, respectively. 1
VOID Export ( cFilename AS CHARACTER )
Export entity data in the collection to the file specified by cFilename.2
VOID ExportLastSaved ( cFilename AS CHARACTER )
Export entity data in the collection to the file specified by cFilename.3
Use only after calling Import( ) and the related Create*( ) or Update*( ) service method.
VOID ExportLastSavedTree (
  cFilename AS CHARACTER )
Export entity data in the collection with all child collections to the file specified by cFilename.4
Use only after calling Import( ) and the related Create*( ) or Update*( ) service method.
VOID ExportTree ( cFilename AS CHARACTER )
Export entity data in the collection with all child collections to the file specified by cFilename.5
VOID ExportTree (
  cFilename AS CHARACTER ,
  pcCollections AS CHARACTER )
Export entity data in the collection with specified child collections to the file specified by cFilename.6
Child collections are specified in pcCollections as a comma-separated list of entity names, for instance, "Domains,TenantGroups", depending on the collection.
VOID Import ( cFilename AS CHARACTER )
Import entity data to the collection from the file specified by cFilename. (The file must exist.)7
VOID ImportTree ( cFilename AS CHARACTER )
Import entity data to the collection, including child collections, from file specified by cFilename. (The top-level entity must exist.)8

1 Currently supports JSON (.json) files only.

2 Currently supports JSON (.json) files only.

3 Currently supports JSON (.json) files only.

4 Currently supports JSON (.json) files only.

5 Currently supports JSON (.json) files only.

6 Currently supports JSON (.json) files only.

7 Currently supports JSON (.json) files only.

8 Currently supports JSON (.json) files only.

See also:
*IDataAdminCollectioninterface
*IDataAdminElementinterface