]> err.no Git - sope/blob - sope-gdl1/GDLAccess/EODatabaseFaultResolver.h
renamed PostgreSQL72 to PostgreSQL, install in Library/GDLAdaptors-1.1
[sope] / sope-gdl1 / GDLAccess / EODatabaseFaultResolver.h
1 /* 
2    EODatabaseFaultResolver.h
3
4    Copyright (C) 1996 Free Software Foundation, Inc.
5
6    Author: Mircea Oancea <mircea@jupiter.elcom.pub.ro>
7    Date: 1996
8
9    Author: Helge Hess <helge.hess@mdlink.de>
10    Date: 1999
11    
12    This file is part of the GNUstep Database Library.
13
14    This library is free software; you can redistribute it and/or
15    modify it under the terms of the GNU Library General Public
16    License as published by the Free Software Foundation; either
17    version 2 of the License, or (at your option) any later version.
18
19    This library is distributed in the hope that it will be useful,
20    but WITHOUT ANY WARRANTY; without even the implied warranty of
21    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
22    Library General Public License for more details.
23
24    You should have received a copy of the GNU Library General Public
25    License along with this library; see the file COPYING.LIB.
26    If not, write to the Free Software Foundation,
27    59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
28 */
29
30 #ifndef __EODatabaseFaultResolver_h__
31 #define __EODatabaseFaultResolver_h__
32
33 #import <GDLAccess/EOFault.h>
34
35 @class EODatabaseChannel;
36 @class EOSQLQualifier;
37 @class EOEntity;
38
39 @interface EODatabaseFaultResolver : EOFaultHandler
40 {
41 @public
42   EODatabaseChannel *channel;
43 }
44
45 - (id)initWithDatabaseChannel:(EODatabaseChannel*)aChannel
46   zone:(NSZone*)zone  
47   targetClass:(Class)targetClass;
48
49 - (Class)targetClass;
50 - (NSDictionary *)primaryKey;
51 - (EOEntity *)entity;
52 - (EOSQLQualifier *)qualifier;
53 - (NSArray *)fetchOrder;
54 - (EODatabaseChannel *)databaseChannel;
55
56 @end /* EODatabaseFaultResolver */
57
58 @interface EOArrayFault : EODatabaseFaultResolver
59 {
60   EOSQLQualifier *qualifier;
61   NSArray        *fetchOrder;
62 }
63
64 - (id)initWithQualifier:(EOSQLQualifier *)qualifier
65   fetchOrder:(NSArray *)fetchOrder 
66   databaseChannel:(EODatabaseChannel *)channel 
67   zone:(NSZone *)zone  
68   targetClass:(Class)targetClass;
69
70 - (EOEntity *)entity;
71 - (EOSQLQualifier *)qualifier;
72 - (NSArray *)fetchOrder;
73
74 @end
75
76 @interface EOObjectFault : EODatabaseFaultResolver
77 {
78   EOEntity     *entity;
79   NSDictionary *primaryKey;
80 }
81
82 - (id)initWithPrimaryKey:(NSDictionary *)key
83   entity:(EOEntity *)entity 
84   databaseChannel:(EODatabaseChannel *)channel 
85   zone:(NSZone *)zone  
86   targetClass:(Class)targetClass ;
87
88 - (NSDictionary*)primaryKey;
89 - (EOEntity*)entity;
90
91 @end
92
93 #endif          /* __EODatabaseFaultResolver_h__ */