]> err.no Git - sope/blob - sope-core/EOCoreData/NSEntityDescription+EO.h
Drop apache 1 build-dependency
[sope] / sope-core / EOCoreData / NSEntityDescription+EO.h
1 /*
2   Copyright (C) 2005-2007 SKYRIX Software AG
3   Copyright (C) 2007      Helge Hess
4
5   This file is part of SOPE.
6
7   SOPE is free software; you can redistribute it and/or modify it under
8   the terms of the GNU Lesser General Public License as published by the
9   Free Software Foundation; either version 2, or (at your option) any
10   later version.
11
12   SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
13   WARRANTY; without even the implied warranty of MERCHANTABILITY or
14   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
15   License for more details.
16
17   You should have received a copy of the GNU Lesser General Public
18   License along with SOPE; see the file COPYING.  If not, write to the
19   Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20   02111-1307, USA.
21 */
22
23 #ifndef __NSEntityDescription_EO_H__
24 #define __NSEntityDescription_EO_H__
25
26 // the next two are here to please the Leopard
27 #import <Foundation/NSEnumerator.h>
28 @class NSData;
29
30 #import <CoreData/NSEntityDescription.h>
31
32 /*
33   NSEntityDescription(EO)
34   
35   Make an NSEntityDescription behave like an EOEntity. This is mostly to make
36   the CoreData model objects work with DirectToWeb and EO at the same time.
37 */
38
39 @class NSString, NSArray;
40
41 @interface NSEntityDescription(EO)
42
43 - (id)relationshipNamed:(NSString *)_name;
44 - (id)attributeNamed:(NSString *)_name;
45 - (NSArray *)relationships;
46 - (NSArray *)attributes;
47
48 - (BOOL)isReadOnly;
49
50 - (NSArray *)classPropertyNames;
51 - (NSArray *)primaryKeyAttributeNames;
52
53 @end
54
55 #endif /* __NSEntityDescription_EO_H__ */