home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / EODEV.Z / FlatFileChannel.h < prev    next >
Encoding:
Text File  |  1996-08-23  |  1.6 KB  |  51 lines

  1. /*
  2.         Copyright (c) 1996, NeXT Software, Inc.
  3.         All rights reserved.
  4.  
  5.         You may freely copy, distribute and reuse the code in this example.
  6.         NeXT disclaims any warranty of any kind, expressed or implied,
  7.         as to its fitness for any particular use.
  8. */
  9. #import <EOAccess/EOAccess.h>
  10.  
  11. @class FlatFileContext;
  12.  
  13. typedef enum {String, Int, Float, Date, Data} FlatFileDataType;
  14.  
  15. @interface FlatFileChannel:EOAdaptorChannel
  16. {
  17.     EOEntity *selectedEntity;
  18.     NSMutableArray *columnAttributes;
  19.     NSArray *selectedAttributes;
  20.     NSMutableArray *columns;
  21.     NSMutableArray *resultSet;
  22.     NSEnumerator *resultEnumerator;
  23.     NSString *rowSeparator;
  24.     NSString *columnSeparator;
  25.     struct
  26.     {
  27.         unsigned isOpen:1;
  28.         unsigned isFetchInProgress:1;
  29.         unsigned _RESERVED:30;
  30.     } _flags;
  31. }
  32.  
  33. - initWithFlatFileContext:(FlatFileContext *)context;
  34. - (void)dealloc;
  35. - (void)openChannel;
  36. - (void)closeChannel;
  37. - (BOOL)isOpen;
  38. - (void)insertRow:(NSDictionary *)row forEntity:(EOEntity *)entity;
  39. - (unsigned)updateValues:(NSDictionary *)values
  40.     inRowsDescribedByQualifier:(EOQualifier *)qualifier entity:(EOEntity *)entity;
  41. - (unsigned)deleteRowsDescribedByQualifier:(EOQualifier *)qualifier entity:(EOEntity *)entity;
  42. - (void)selectAttributes:(NSArray *)attributes fetchSpecification:(EOFetchSpecification *)spec lock:(BOOL)yn entity:(EOEntity *)entity;
  43. - (void)evaluateExpression:(EOSQLExpression *)expression;
  44. - (BOOL)isFetchInProgress;
  45. - (NSArray *)describeResults;
  46. - (NSMutableDictionary *)fetchRowWithZone:(NSZone *)zone;
  47. - (void)cancelFetch;
  48. - (NSDictionary *)primaryKeyForNewRowWithEntity:(EOEntity *)entity;
  49.  
  50. @end
  51.