# GNUstep Database Library Introduction 0.1

## Table of Contents

- 1 Introduction
- 2 Concepts
- 3 Key Value Coding
- 4 Setting values through KVC
- 5 Accessing values through KVC
- 6 Key Paths
- 7 Type promotion
- 8 Class specific implementation
- 9 Classes
- 10 Model classes
- 11 Database specific classes
- 12 Data oriented classes
- 13 EOModel class
  - 13.1 overview
- 14 EOEntity class
  - 14.1 overview
  - 14.2 Class properties
  - 14.3 Class name
  - 14.4 Primary Key Attributes
  - 14.5 External name
- 15 EOAttribute class
  - 15.1 overview
  - 15.2 Name
  - 15.3 Column name
  - 15.4 Adaptor value type
  - 15.5 External type
  - 15.6 Value type
  - 15.7 Value class name
  - 15.8 Value factory method name
  - 15.9 Value factory argument type
- 16 EORelationship class
  - 16.1 overview
- 17 EOModelGroup class
  - 17.1 overview
- 18 EOAdaptor class
  - 18.1 overview
- 19 EOAdaptorContext class
- 20 EOAdaptorChannel class
- 21 EODataSource class
  - 21.1 overview
  - 21.2 Fetch objects
  - 21.3 Creating objects
  - 21.4 Inserting objects
  - 21.5 Deleting objects
  - 21.6 Qualified DataSources
  - 21.7 EODatabaseDataSource class
- 22 EOEditingContext class
  - 22.1 overview
- 23 EOGenericRecord class
  - 23.1 overview
- 24 Model Creation
  - 24.1 Example model file
  - 24.2 Creating with DBModeler
- 25 Creating a project.
  - 25.1 Creating a makefile
  - 25.2 Adding Resource Files
  - 25.3 A complete GNUmakefile
- 26 Database creation
  - 26.1 Creating the database with DBModeler
- 27 Database connection
- 28 Working with data
- 29 Adding some data.
- 30 Working with relationships
- 31 EOInterface
- 32 Introduction
- 33 EODisplayGroup class
- 34 EOAssociation class
- Index

# GNUstep Database Library

©

Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.

Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided also that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.

Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions.

## 1 Introduction

This document is intended to get people started developing with GDL2. A knowledge of objective-c and relational database concepts is assumed.

While not intended as a thorough reference or a replacement for the API docs and surely omits details for the sake of simplicity it attempts to provide a starting point for people unfamiliar with GDL2 or EOF to get started developing their first application.

If you are reading this document from the GDL2 Sources, most example sources are provided in the ../../Examples/ directory.