home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / EODEV.Z / FlatFileAdaptor.h < prev    next >
Encoding:
Text File  |  1996-08-23  |  1.5 KB  |  47 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. #define FlatFilePathKey            @"path"
  12. #define FlatFileFilesKey           @"files"
  13. #define FlatFileRowSeparatorKey    @"rowSeparator"
  14. #define FlatFileColumnSeparatorKey @"columnSeparator"
  15. #define FlatFileUseHeadersKey      @"useHeaders"
  16.  
  17. #define FlatFileCalendarFormat @"%Y-%m-%d %H:%M:%S %z"
  18.  
  19. @interface FlatFileAdaptor:EOAdaptor
  20. {
  21. }
  22.  
  23. + (NSString *)defaultRowSeparator;
  24. + (NSString *)defaultColumnSeparator;
  25. + (NSDictionary *)defaultConnectionDictionary;
  26. + (NSString *)columnHeaderSeparator;
  27.  
  28. - initWithName:(NSString *)name;
  29. - (Class)expressionClass;
  30. - (EOAdaptorContext *)createAdaptorContext;
  31. - (BOOL)isValidQualifierType:(NSString *)typeName model:(EOModel *)model;
  32. - (void)assertConnectionDictionaryIsValid;
  33.  
  34. @end
  35.  
  36. @interface FlatFileAdaptor (ExternalTypeMapping)
  37.  
  38. + (NSString *)defaultExternalType;
  39. + (NSDictionary *)externalToInternalTypeMap;
  40. + (NSString *)internalTypeForExternalType:(NSString *)extType model:(EOModel *)model;
  41. + (NSArray *)externalTypesWithModel:(EOModel *)model;
  42. + (void)assignExternalInfoForAttribute:(EOAttribute *)attribute;
  43. + (void)assignExternalInfoForEntity:(EOEntity *)entity;
  44. + (void)assignExternalInfoForEntireModel:(EOModel *)model;
  45.  
  46. @end
  47.