CWM) Specification
Total Page:16
File Type:pdf, Size:1020Kb
Common Warehouse Metamodel (CWM) Specification Volume 1 Version 1.0 October 2001 Copyright © 1999, Dimension EDI Copyright © 1999, Genesis Development Corporation Copyright © 1999, Hyperion Solutions Corporation Copyright © 1999, International Business Machines Corporation Copyright © 1999, NCR Corporation Copyright © 2000, Object Management Group Copyright © 1999, Oracle Corporation Copyright © 1999, UBS AG Copyright © 1999, Unisys Corporation The companies listed above have granted to the Object Management Group, Inc. (OMG) a nonexclusive, royalty-free, paid up, worldwide license to copy and distribute this document and to modify this document and distribute copies of the mod- ified version. Each of the copyright holders listed above has agreed that no person shall be deemed to have infringed the copyright in the included material of any such copyright holder by reason of having used the specification set forth herein or having conformed any computer software to the specification. PATENT The attention of adopters is directed to the possibility that compliance with or adoption of OMG specifications may require use of an invention covered by patent rights. OMG shall not be responsible for identifying patents for which a license may be required by any OMG specification, or for conducting legal inquiries into the legal validity or scope of those patents that are brought to its attention. OMG specifications are prospective and advisory only. Prospective users are responsible for protecting themselves against liability for infringement of patents. NOTICE The information contained in this document is subject to change without notice. The material in this document details an Object Management Group specification in accordance with the license and notices set forth on this page. This document does not represent a commitment to implement any portion of this specification in any company's products. WHILE THE INFORMATION IN THIS PUBLICATION IS BELIEVED TO BE ACCURATE, THE OBJECT MAN- AGEMENT GROUP AND THE COMPANIES LISTED ABOVE MAKE NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS MATERIAL INCLUDING, BUT NOT LIMITED TO ANY WARRANTY OF TITLE OR OWNERSHIP, IMPLIED WARRANTY OF MERCHANTABILITY OR WARRANTY OF FITNESS FOR PARTICULAR PURPOSE OR USE. In no event shall The Object Management Group or any of the companies listed above be liable for errors contained herein or for indirect, incidental, special, consequential, reliance or cover damages, including loss of profits, revenue, data or use, incurred by any user or any third party. The copyright holders listed above acknowledge that the Object Management Group (acting itself or through its designees) is and shall at all times be the sole entity that may authorize developers, suppliers and sellers of computer software to use certification marks, trademarks or other special designations to indicate compliance with these materials. This document contains information which is pro- tected by copyright. All Rights Reserved. No part of this work covered by copyright herein may be reproduced or used in any form or by any means--graphic, electronic, or mechanical, including photocopying, recording, taping, or information storage and retrieval systems--without permission of the copyright owner. RESTRICTED RIGHTS LEGEND. Use, duplication, or disclosure by government is subject to restrictions as set forth in subdivision (c) (1) (ii) of the Right in Technical Data and Computer Software Clause at DFARS 252.227.7013 OMG® and Object Management are registered trademarks of the Object Management Group, Inc. Object Request Broker, OMG IDL, ORB, CORBA, CORBAfacilities, CORBAservices, and COSS are trademarks of the Object Management Group, Inc. X/Open is a trademark of X/Open Company Ltd. ISSUE REPORTING All OMG specifications are subject to continuous review and improvement. As part of this process we encourage readers to report any ambiguities, inconsistencies, or inaccuracies they may find by completing the Issue Reporting Form at http://www.omg.org/library/issuerpt.htm. Contents Preface . xv 1. Design Rationale . 1-1 1.1 Design Overview . 1-1 1.2 CWM and the MOF . 1-2 1.2.1 An Overview of the MOF. 1-2 1.2.2 The Relationship between CWM and MOF . 1-5 1.3 CWM and UML . 1-5 1.3.1 An Overview of UML. 1-5 1.3.2 The Relationship between CWM and UML . 1-6 1.4 CWM and XMI . 1-7 1.4.1 An Overview of XMI . 1-7 1.4.2 The Relationship between CWM and XMI. 1-8 1.5 Major Design Goals and Rationale. 1-8 1.5.1 Reuse of UML Concepts . 1-8 1.5.2 Modularity . 1-9 1.5.3 Generic Model . 1-9 2. Usage Scenarios . 2-1 2.1 Overview . 2-1 2.2 Users of CWM . 2-1 2.3 Usage Scenarios . 2-4 2.3.1 ETL Scenario. 2-4 2.3.2 OLAP Scenario. 2-5 2.3.3 Questionnaire Scenario. 2-5 2.3.4 Warehouse Administration Scenario. 2-6 October 2001 OMG-Common Warehouse Metamodel, v1.0 i Contents 2.3.5 Tool Scenarios . 2-7 3. CWM . 3-1 3.1 Overview . 3-1 3.1.1 The Roles of UML in CWM. 3-3 3.2 Organization of the CWM . 3-3 3.2.1 Modeling Conventions . 3-5 3.3 How the CWM Metamodel is Described . 3-9 3.3.1 Classes . 3-9 3.3.2 Associations . 3-13 4. ObjectModel . 4-1 4.1 Overview . 4-1 4.2 Organization of the ObjectModel Package. 4-2 4.3 Core Metamodel. 4-3 4.3.1 Core Data Types . 4-4 4.3.2 Core Classes . 4-7 4.3.3 Core Associations. 4-25 4.3.4 OCL Representation of Core Constraints . 4-32 4.4 Behavioral Metamodel . 4-35 4.4.1 Behavioral Data Types . 4-35 4.4.2 Behavioral Classes . 4-36 4.4.3 Behavioral Associations . 4-43 4.4.4 OCL Representation of Behavioral Constraints 4-46 4.5 Relationships Metamodel . 4-48 4.5.1 Relationships Data Types . 4-49 4.5.2 Relationships Classes . 4-50 4.5.3 Relationships Associations . 4-54 4.5.4 OCL Representation of Relationships Constraints . 4-55 4.6 Instance Metamodel . 4-57 4.6.1 Instance Classes . 4-61 4.6.2 Instance Associations . 4-64 4.6.3 OCL Representation of Instance Constraints . 4-67 5. Foundation . 5-1 5.1 Overview . 5-1 5.2 Organization of the Foundation . 5-2 5.3 Business Information Metamodel. 5-3 5.3.1 BusinessInformation Classes . 5-6 5.3.2 BusinessInformation Associations . 5-17 ii OMG-Common Warehouse Metamodel, v1.0 October 2001 Contents 5.3.3 OCL Representation of BusinessInformation Constraints . 5-21 5.4 DataTypes Metamodel . 5-21 5.4.1 DataTypes Classes . 5-22 5.4.2 DataTypes Associations . 5-27 5.4.3 OCL Representation of DataTypes Constraints 5-29 5.5 Expressions Metamodel . 5-29 5.5.1 Expressions Classes . 5-31 5.5.2 Expressions Associations . 5-35 5.5.3 OCL Representation of Expressions Constraints 5-38 5.6 KeysIndexes Metamodel . 5-39 5.6.1 KeysIndexes Classes. 5-41 5.6.2 KeysIndexes Associations . 5-46 5.6.3 OCL Representation of KeysIndexes Constraints 5-49 5.7 SoftwareDeployment Metamodel. 5-49 5.7.1 SoftwareDeployment Classes . 5-54 5.7.2 SoftwareDeployment Associations. 5-62 5.7.3 OCL Representation of SoftwareDeployment Constraints . 5-67 5.8 TypeMapping Metamodel . 5-67 5.8.1 TypeMapping Classes . 5-69 5.8.2 TypeMapping Associations. 5-71 5.8.3 OCL Representation of TypeMapping Constraints . 5-72 6. Relational . 6-1 6.1 Overview . 6-1 6.2 Organization of the Relational Package . 6-2 6.2.1 Inheritance . 6-2 6.2.2 Containers. 6-3 6.2.3 Tables, Columns, and Data Types . 6-4 6.2.4 Structured Types and Object Extensions . 6-5 6.2.5 Keys . 6-9 6.2.6 Index. 6-10 6.2.7 Triggers . 6-10 6.2.8 Procedures . 6-11 6.2.9 Instances. 6-12 6.3 Relational Classes . 6-13 6.3.1 Catalog . 6-13 6.3.2 CheckConstraint . 6-14 October 2001 OMG-Common Warehouse Metamodel, v1.0 iii Contents 6.3.3 Column. 6-14 6.3.4 ColumnSet . 6-16 6.3.5 ColumnValue . 6-17 6.3.6 ForeignKey . 6-17 6.3.7 NamedColumnSet. 6-18 6.3.8 PrimaryKey. 6-19 6.3.9 Procedure . 6-19 6.3.10 QueryColumnSet . 6-19 6.3.11 Row . 6-20 6.3.12 RowSet . 6-20 6.3.13 Schema . ..