]> err.no Git - sope/blob - sope-gdl1/FrontBase2/FBSQLExpression.m
added missing inline pathes
[sope] / sope-gdl1 / FrontBase2 / FBSQLExpression.m
1 /* 
2    FBSQLExpression.m
3
4    Copyright (C) 1999 MDlink online service center GmbH and Helge Hess
5
6    Author: Helge Hess (helge@mdlink.de)
7
8    This file is part of the FB Adaptor Library
9
10    This library is free software; you can redistribute it and/or
11    modify it under the terms of the GNU Library General Public
12    License as published by the Free Software Foundation; either
13    version 2 of the License, or (at your option) any later version.
14
15    This library is distributed in the hope that it will be useful,
16    but WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18    Library General Public License for more details.
19
20    You should have received a copy of the GNU Library General Public
21    License along with this library; see the file COPYING.LIB.
22    If not, write to the Free Software Foundation,
23    59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 */
25 // $Id: FBSQLExpression.m 1 2004-08-20 10:38:46Z znek $
26
27 #include <Foundation/Foundation.h>
28 #include <GDLAccess/EOAccess.h>
29 #include "FBSQLExpression.h"
30
31 @implementation FBSQLExpression
32
33 + (int)version {
34   return [super version] + 0 /* v1 */;
35 }
36 + (void)initialize {
37   NSAssert([super version] == 1, @"invalid superclass version !");
38 }
39
40 + (Class)selectExpressionClass  {
41   return [FBSelectSQLExpression class];
42 }
43
44 @end
45
46 @implementation FBSelectSQLExpression
47
48 - (id)selectExpressionForAttributes:(NSArray *)attributes
49   lock:(BOOL)flag
50   qualifier:(EOSQLQualifier *)qualifier
51   fetchOrder:(NSArray *)fetchOrder
52   channel:(EOAdaptorChannel *)channel
53 {
54   self->lock = flag;
55   
56   return [super selectExpressionForAttributes:attributes
57                 lock:flag
58                 qualifier:qualifier
59                 fetchOrder:fetchOrder
60                 channel:channel];
61 }
62
63 - (NSString *)lockClause {
64 #warning no holdlock !!!
65   return @"";
66 #if 0
67   return (self->lock)
68     ? @" HOLDLOCK"
69     : @"";
70 #endif
71 }
72
73 @end
74
75 void __link_FBSQLExpression() {
76   // used to force linking of object file
77   __link_FBSQLExpression();
78 }