2 EODatabaseFaultResolver.h
4 Copyright (C) 1996 Free Software Foundation, Inc.
6 Author: Mircea Oancea <mircea@jupiter.elcom.pub.ro>
9 Author: Helge Hess <helge.hess@mdlink.de>
12 This file is part of the GNUstep Database Library.
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.
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.
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.
30 #ifndef __EODatabaseFaultResolver_h__
31 #define __EODatabaseFaultResolver_h__
33 #import <GDLAccess/EOFault.h>
35 @class EODatabaseChannel;
36 @class EOSQLQualifier;
39 @interface EODatabaseFaultResolver : EOFaultHandler
42 EODatabaseChannel *channel;
45 - (id)initWithDatabaseChannel:(EODatabaseChannel*)aChannel
47 targetClass:(Class)targetClass;
50 - (NSDictionary *)primaryKey;
52 - (EOSQLQualifier *)qualifier;
53 - (NSArray *)fetchOrder;
54 - (EODatabaseChannel *)databaseChannel;
56 @end /* EODatabaseFaultResolver */
58 @interface EOArrayFault : EODatabaseFaultResolver
60 EOSQLQualifier *qualifier;
64 - (id)initWithQualifier:(EOSQLQualifier *)qualifier
65 fetchOrder:(NSArray *)fetchOrder
66 databaseChannel:(EODatabaseChannel *)channel
68 targetClass:(Class)targetClass;
71 - (EOSQLQualifier *)qualifier;
72 - (NSArray *)fetchOrder;
76 @interface EOObjectFault : EODatabaseFaultResolver
79 NSDictionary *primaryKey;
82 - (id)initWithPrimaryKey:(NSDictionary *)key
83 entity:(EOEntity *)entity
84 databaseChannel:(EODatabaseChannel *)channel
86 targetClass:(Class)targetClass ;
88 - (NSDictionary*)primaryKey;
93 #endif /* __EODatabaseFaultResolver_h__ */