//
//  CEResultSet.h
//  CEDatabase
//
//  Copyright 2006 Cutedge. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@interface CEResultSet : NSObject 
{
	int				_columnCount;
}
 
- (void)dealloc;

- (BOOL)next;


- (NSString *)fieldTypeAtIndex:(int)index;
- (NSString *)fieldNameAtIndex:(int)index;

- (id)fieldAtIndex:(int)index;


- (NSString *)stringAtIndex:(int)index;
- (int)intAtIndex:(int)index;

- (NSArray *)fieldTypes;
- (NSArray *)fieldNames;


- (NSMutableDictionary *)resultRowAsDictionary;
- (NSMutableArray *)resultRowAsArray;
- (NSMutableArray *)resultAsArrayOfDict;

- (int)columnCount;
- (void)setColumnCount:(int)columnCount;

@end



@interface NSData (CEDatabase)
- (NSString*)hexadecimalRepresentation;
- (id)initWithHexadecimalRepresentation:(NSString*)string;
- (NSComparisonResult)compare:(NSData *)data;
@end
