Oracle Database Application Developer's Guide - Object-Relational Features, 10G Release 1 (10.1) Part No

Oracle Database Application Developer's Guide - Object-Relational Features, 10G Release 1 (10.1) Part No

Oracle® Database Application Developer’s Guide - Object-Relational Features 10g Release 1 (10.1) Part No. B10799-01 December 2003 Oracle Database Application Developer's Guide - Object-Relational Features, 10g Release 1 (10.1) Part No. B10799-01 Copyright © 1996, 2003 Oracle Corporation. All rights reserved. Contributors: Geeta Arora, Eric Belden, Chandrasekharan Iyer, Geoff Lee, Anand Manikutty, Valarie Moore, Magdi Morsi, Helen Yeh, Adiel Yoaz, Qin Yu The Programs (which include both the software and documentation) contain proprietary information of Oracle Corporation; they are provided under a license agreement containing restrictions on use and disclosure and are also protected by copyright, patent and other intellectual and industrial property laws. Reverse engineering, disassembly or decompilation of the Programs, except to the extent required to obtain interoperability with other independently created software or as specified by law, is prohibited. The information contained in this document is subject to change without notice. If you find any problems in the documentation, please report them to us in writing. Oracle Corporation does not warrant that this document is error-free. Except as may be expressly permitted in your license agreement for these Programs, no part of these Programs may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without the express written permission of Oracle Corporation. If the Programs are delivered to the U.S. Government or anyone licensing or using the programs on behalf of the U.S. Government, the following notice is applicable: Restricted Rights Notice Programs delivered subject to the DOD FAR Supplement are "commercial computer software" and use, duplication, and disclosure of the Programs, including documentation, shall be subject to the licensing restrictions set forth in the applicable Oracle license agreement. Otherwise, Programs delivered subject to the Federal Acquisition Regulations are "restricted computer software" and use, duplication, and disclosure of the Programs shall be subject to the restrictions in FAR 52.227-19, Commercial Computer Software - Restricted Rights (June, 1987). Oracle Corporation, 500 Oracle Parkway, Redwood City, CA 94065. The Programs are not intended for use in any nuclear, aviation, mass transit, medical, or other inherently dangerous applications. It shall be the licensee's responsibility to take all appropriate fail-safe, backup, redundancy, and other measures to ensure the safe use of such applications if the Programs are used for such purposes, and Oracle Corporation disclaims liability for any damages caused by such use of the Programs. Oracle is a registered trademark, and Oracle9i, Oracle Store, PL/SQL, Pro*C, Pro*C/C++, and SQL*Plus are trademarks or registered trademarks of Oracle Corporation. Other names may be trademarks of their respective owners. Contents Send Us Your Comments ................................................................................................................ xiii Preface........................................................................................................................................................... xv Audience ............................................................................................................................................... xvi Organization......................................................................................................................................... xvi Related Documentation ..................................................................................................................... xvii Conventions........................................................................................................................................ xviii Documentation Accessibility ............................................................................................................. xxi What's New in Object-Relational Features? ....................................................................... xxiii Oracle 10g Release 1 (10.1) New in Object-Relational Features.................................................. xxiv Oracle9i Release 2 (9.2) New in Object-Relational Features ........................................................ xxiv Oracle9i Release 1 (9.0.1) New in Object-Relational Features ...................................................... xxv 1 Introduction to Oracle Objects About Oracle Objects......................................................................................................................... 1-2 Advantages of Objects....................................................................................................................... 1-2 Key Features of the Object-Relational Model............................................................................... 1-3 Core Database Key Features ....................................................................................................... 1-4 Object Types........................................................................................................................... 1-4 Objects..................................................................................................................................... 1-5 Object Methods...................................................................................................................... 1-6 Type Inheritance.................................................................................................................... 1-7 Type Evolution ...................................................................................................................... 1-7 iii Object Tables .......................................................................................................................... 1-8 Row Objects and Column Objects....................................................................................... 1-9 Object Views........................................................................................................................... 1-9 References ............................................................................................................................... 1-9 Collections ............................................................................................................................ 1-12 Language Binding Features....................................................................................................... 1-13 2 Basic Components of Oracle Objects SQL Object Types and References ................................................................................................. 2-2 Null Objects and Attributes ........................................................................................................ 2-2 Character Length Semantics ....................................................................................................... 2-3 Constraints for Object Tables ...................................................................................................... 2-4 Indexes for Object Tables............................................................................................................. 2-5 Triggers for Object Tables............................................................................................................ 2-5 Rules for REF Columns and Attributes ..................................................................................... 2-6 Name Resolution .......................................................................................................................... 2-6 When Table Aliases Are Required ...................................................................................... 2-7 Restriction on Using User-Defined Types with a Remote Database..................................... 2-8 Object Methods ................................................................................................................................... 2-8 Member Methods.......................................................................................................................... 2-9 Methods for Comparing Objects .............................................................................................. 2-10 Map Methods ....................................................................................................................... 2-10 Order Methods..................................................................................................................... 2-12 Guidelines for Comparison Methods ............................................................................... 2-13 Comparison Methods in Type Hierarchies...................................................................... 2-13 Static Methods............................................................................................................................. 2-13 Constructor Methods ................................................................................................................. 2-14 External Implemented Methods ............................................................................................... 2-15 Inheritance in SQL Object Types................................................................................................... 2-15 Types and Subtypes.................................................................................................................... 2-15 FINAL and NOT FINAL Types and Methods.......................................................................

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    252 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us