Object Definition Language

From Wikipedia, the free encyclopedia
Jump to: navigation, search

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.


Class declarations[edit]

Interface < name > { elements = attributes, relationships, methods }

Element Declarations[edit]

attributes ( < type > : < name > );

relationships ( < rangetype > : < name > );


Type Date Tuple (year, day, month) Type year, day, month integer

interface Manager { keys id; attribut String name; attribut String phone; relationShip Set<Employee> employees inverse Employee::manager}

interface Employee { keys id; attribut String name; attribut Date Start_Date; relationShip Manager manager inverse Manager::employees }

See also[edit]