Collection interface naming conventions
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
In general, the name of each collection interface consists of the following components:
Syntax
|
- I
- Identifies the name of an interface.
- Entity
- The name of the entity that the interface represents, for instance,
DomainorTenant. - CollectionType
- The type of collection, which can contain multiple instances
of Entity. This can be one of the following:
Collection— Used for a few base interfaces and classes, for instance,IDataAdminCollection, which is inherited by all collection interfaces.List— Used for collections that are an ordered collection (sequence), for instance,IExtentList(currently the only list).Map— Used for collections that map entity values to keys (with no duplicate keys), for instance,IPartitionMapandISequenceValueMap. In effect, entity maps relate collections of entities in many-to-many relationships, such as a collection of multi-tenant sequences mapped to a collection of tenants through the sequence values (theISequenceValueMap).Note: AMapis not used to map scalar keys of typeINTEGERorCHARACTER. Instead, collections can haveFind( )andCanFind( )methods for scalar properties (keys).Set— Used for a collection of entities that contain no duplicate elements.