]> err.no Git - sope/blob - sope-gdl1/GDLAccess/EOAttributeOrdering.m
renamed PostgreSQL72 to PostgreSQL, install in Library/GDLAdaptors-1.1
[sope] / sope-gdl1 / GDLAccess / EOAttributeOrdering.m
1 /* 
2    EOAttributeOrdering.m
3
4    Copyright (C) 1996 Free Software Foundation, Inc.
5
6    Author: Ovidiu Predescu <ovidiu@bx.logicnet.ro>
7    Date: 1996
8
9    This file is part of the GNUstep Database Library.
10
11    This library is free software; you can redistribute it and/or
12    modify it under the terms of the GNU Library General Public
13    License as published by the Free Software Foundation; either
14    version 2 of the License, or (at your option) any later version.
15
16    This library is distributed in the hope that it will be useful,
17    but WITHOUT ANY WARRANTY; without even the implied warranty of
18    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19    Library General Public License for more details.
20
21    You should have received a copy of the GNU Library General Public
22    License along with this library; see the file COPYING.LIB.
23    If not, write to the Free Software Foundation,
24    59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 */
26
27 #import <GDLAccess/EOAttribute.h>
28 #import <GDLAccess/EOAttributeOrdering.h>
29 #import "common.h"
30
31 @implementation EOAttributeOrdering
32
33 + (id)attributeOrderingWithAttribute:(EOAttribute*)_attribute
34   ordering:(EOOrdering)_ordering
35 {
36   return AUTORELEASE([[EOAttributeOrdering alloc]
37                            initWithAttribute:_attribute ordering:_ordering]);
38 }
39
40 - (id)initWithAttribute:(EOAttribute*)_attribute ordering:(EOOrdering)_ordering {
41   ASSIGN(self->attribute, _attribute);
42   self->ordering = _ordering;
43   return self;
44 }
45
46 - (EOAttribute *)attribute {
47   return self->attribute;
48 }
49 - (EOOrdering)ordering {
50   return self->ordering;
51 }
52
53 @end /* EOAttributeOrdering */