4 Copyright (C) 1999-2005 MDlink online service center GmbH and Helge Hess
6 Author: Helge Hess (helge@mdlink.de)
8 This file is part of the MySQL4 Adaptor Library
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.
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.
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.
26 #ifndef ___MySQL4_Values_H___
27 #define ___MySQL4_Values_H___
29 #import <Foundation/NSObject.h>
30 #import <Foundation/NSString.h>
31 #import <Foundation/NSData.h>
32 #import <Foundation/NSDate.h>
33 #import <GDLAccess/EONull.h>
34 #import "MySQL4Exception.h"
39 @interface MySQL4DataTypeMappingException : MySQL4Exception
41 - (id)initWithObject:(id)_obj
42 forAttribute:(EOAttribute *)_attr
43 andMySQL4Type:(NSString *)_dt
44 inChannel:(MySQL4Channel *)_channel;
48 @protocol MySQL4Values
50 - (NSString *)stringValueForMySQL4Type:(NSString *)_type
51 attribute:(EOAttribute *)_attribute;
55 @interface NSObject(MySQL4Values)
57 - (id)initWithMySQL4Type:(int)_type value:(const void *)_v length:(int)_len;
61 @interface NSString(MySQL4Values) < MySQL4Values >
64 @interface NSNumber(MySQL4Values) < MySQL4Values >
67 @interface NSData(MySQL4Values) < MySQL4Values >
70 @interface NSCalendarDate(MySQL4Values) < MySQL4Values >
73 @interface EONull(MySQL4Values)
75 - (NSString *)stringValueForMySQL4Type:(NSString *)_type
76 attribute:(EOAttribute *)_attribute;
80 #endif /* ___MySQL4_Values_H___ */