Object Definition Language
Object Definition Language (ODL) is the specification language defining the interface to object types conforming to the ODMG Object Model. Often abbreviated by the acronym ODL.
This language's purpose is to define the structure of an Entity-relationship diagram.
Language
Class declarations
Interface < name > { elements = attributes, relationships, methods }
Element Declarations
attributes ( < type > : < name > );
relationships ( < rangetype > : < name > );
Example
Type Date Tuple (year, day, month) Type year, day, month integer
interface Manager { keys id; attribute String name; attribute String phone; relationShip Set<Employee> employees inverse Employee::manager}
interface Employee { keys id; attribute String name; attribute Date Start_Date; relationShip Manager manager inverse Manager::employees }
See also
- Object Data Management Group (ODMG)
- Object Query Language (OQL)
This article is issued from Wikipedia - version of the 8/23/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.