home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / EODEV.Z / FlatFileContext.h < prev    next >
Encoding:
Text File  |  1996-08-23  |  1.2 KB  |  46 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 FlatFileAdaptor;
  12. @class FlatFileChannel;
  13.  
  14. #define ColumnNameKey @"name"
  15. #define ColumnTypeKey @"type"
  16.  
  17. @interface FlatFileContext:EOAdaptorContext
  18. {
  19.     NSMutableDictionary *tableNameToInfoMap;
  20.     NSMutableSet *dirtyTables;
  21.     BOOL didAutoBegin;
  22. }
  23.  
  24. - initWithFlatFileAdaptor:(FlatFileAdaptor *)adaptor;
  25. - (void)dealloc;
  26. - (EOAdaptorChannel *)createAdaptorChannel;
  27. - (void)beginTransaction;
  28. - (void)commitTransaction;
  29. - (void)rollbackTransaction;
  30. - (BOOL)canNestTransactions;
  31.  
  32. - (NSString *)path;
  33. - (NSString *)rowSeparator;
  34. - (NSString *)columnSeparator;
  35. - (BOOL)useColumnHeaders;
  36.  
  37. - (NSMutableData *)dataForTable:(NSString *)tableName;
  38. - (NSArray *)columnInfosForTable:(NSString *)tableName;
  39. - (NSDictionary *)columnIndexMapForTable:(NSString *)tableName;
  40. - (void)channel:(FlatFileChannel *)channel didDirtyTable:(NSString *)tableName;
  41.  
  42. - (BOOL)autoBeginTransaction;
  43. - (BOOL)autoCommitTransaction;
  44.  
  45. @end
  46.