OracleEOAdaptor Framework
Objective–C API Reference
Apple Computer, Inc. Adobe, Acrobat, and PostScript are Some states do not allow the exclusion or © 1999 Apple Computer, Inc. trademarks of Adobe Systems limitation of implied warranties or All rights reserved. Incorporated or its subsidiaries and liability for incidental or consequential may be registered in certain damages, so the above limitation or No part of this publication may be jurisdictions. exclusion may not apply to you. This reproduced, stored in a retrieval warranty gives you specific legal rights, system, or transmitted, in any form or Helvetica and Palatino are registered and you may also have other rights which by any means, mechanical, electronic, trademarks of Linotype-Hell AG vary from state to state. photocopying, recording, or and/or its subsidiaries. otherwise, without prior written ITC Zapf Dingbats is a registered permission of Apple Computer, Inc., trademark of International Typeface except to make a backup copy of any Corporation. documentation provided on ORACLE is a registered trademark of CD-ROM. Oracle Corporation, Inc. The Apple logo is a trademark of SYBASE is a registered trademark of Apple Computer, Inc. Sybase, Inc. Use of the “keyboard” Apple logo UNIX is a registered trademark in the (Option-Shift-K) for commercial United States and other countries, purposes without the prior written licensed exclusively through X/Open consent of Apple may constitute Company Limited. trademark infringement and unfair competition in violation of federal Windows NT is a trademark of and state laws. Microsoft Corporation. No licenses, express or implied, are All other trademarks mentioned granted with respect to any of the belong to their respective owners. technology described in this book. Simultaneously published in the Apple retains all intellectual property United States and Canada. rights associated with the technology Even though Apple has reviewed this described in this book. This book is manual, APPLE MAKES NO intended to assist application WARRANTY OR REPRESENTATION, developers to develop applications EITHER EXPRESS OR IMPLIED, WITH only for Apple-labeled or RESPECT TO THIS MANUAL, ITS Apple-licensed computers. QUALITY, ACCURACY, Every effort has been made to ensure MERCHANTABILITY, OR FITNESS that the information in this manual is FOR A PARTICULAR PURPOSE. AS A accurate. Apple is not responsible for RESULT, THIS MANUAL IS SOLD “AS typographical errors. IS,” AND YOU, THE PURCHASER, ARE Apple Computer, Inc. ASSUMING THE ENTIRE RISK AS TO 1 Infinite Loop ITS QUALITY AND ACCURACY. Cupertino, CA 95014 IN NO EVENT WILL APPLE BE LIABLE 408-996-1010 FOR DIRECT, INDIRECT, SPECIAL, Apple, the Apple logo, Macintosh, INCIDENTAL, OR CONSEQUENTIAL and WebObjects are trademarks of DAMAGES RESULTING FROM ANY Apple Computer, Inc., registered in DEFECT OR INACCURACY IN THIS the United States and other countries. MANUAL, even if advised of the Enterprise Objects is a trademark of possibility of such damages. Apple Computer, Inc. THE WARRANTY AND REMEDIES SET NeXT, the NeXT logo, OPENSTEP, FORTH ABOVE ARE EXCLUSIVE AND Enterprise Objects Framework, IN LIEU OF ALL OTHERS, ORAL OR Objective–C, and WEBSCRIPT are WRITTEN, EXPRESS OR IMPLIED. No trademarks of NeXT Software, Inc. Apple dealer, agent, or employee is authorized to make any modification, extension, or addition to this warranty.
FRAMEWORK
OracleEOAdaptor Framework
Framework: System/Library/Frameworks/OracleEOAdaptor.framework
Header File Directories: System/Library/Frameworks/OracleEOAdaptor.framework/ Headers
Introduction The OracleEOAdaptor framework is a set of classes that allow your programs to connect to an Oracle server. These classes provide Oracle-specific method implementations for the EOAccess framework’s EOAdaptor, EOAdaptorChannel, EOAdaptorContext, and EOSQLExpression abstract classes.
The following table lists the classes in the OracleEOAdaptor Framework and provides a brief description of each class.
Class Description
OracleAdaptor Represents a single connection to a Oracle database server, and is responsible for keeping login and model information, performing Oracle-specific formatting of SQL expressions, and reporting errors. OracleChannel Represents an independent communication channel to the database server its OracleAdaptor is connected to. OracleContext Represents a single transaction scope on the database server to which its adaptor object is connected. OracleSQLExpression Defines how to build SQL statements for OracleChannels.
3
FRAMEWORK OracleEOAdaptor Framework
The Connection Dictionary The connection dictionary contains items needed to connect to an Oracle server, such as the server name and database (it's common to omit the user name and password from the connection dictionary, and prompt users to enter those values in a login panel). The keys of this dictionary identify the information the server expects, and the values of those keys are the values that the adaptor uses when trying to connect to the server.
The Oracle adaptor defines string constants for use as connection dictionary keys: