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

  1. /*
  2.    ODBCPrivate.h
  3.    Copyright (c) 1996, NeXT Software, Inc.
  4.    All rights reserved.
  5. */
  6.  
  7. #import <ODBCEOAdaptor/ODBCAdaptor.h>
  8. #import <ODBCEOAdaptor/ODBCContext.h>
  9. #import <ODBCEOAdaptor/ODBCChannel.h>
  10. #import <ODBCEOAdaptor/ODBCColumn.h>
  11. #import <ODBCEOAdaptor/ODBCSQLExpression.h>
  12.  
  13. // ODBC headers are not self contained: you need to include windows.h
  14. // before. Since the only type used is the window handle (HWND) we
  15. // just fake it right here. By doing so, we avoid dependencies and
  16. // Makefile problems.
  17. //
  18. #define HWND void *
  19.  
  20. #import "SQL.H"
  21. #import "SQLEXT.H"
  22.  
  23. @interface ODBCContext(_ODBCErrorNotification)
  24. - (void)odbcErrorWithChannel:(ODBCChannel *)channel string:(NSString *)location raise:(BOOL)flag;
  25. @end
  26.  
  27. @interface ODBCAdaptor(_ODBCPrivate)
  28. - (EOAttribute *)attributeWithName:(NSString *)name columnName:(NSString *)columnName externalType:(NSString *)externalType odbcType:(int)odbcType length:(int)length precision:(int)precision scale:(int)scale nullable:(BOOL)nullable;
  29. @end
  30.  
  31. @interface EOAttribute(_ODBCPrivate)
  32. - (int)odbcType;
  33. - (NSString *)odbcTypeString;
  34. @end
  35.  
  36. //
  37. // These are some useful private EOF methods.
  38. // All these methods are trivial to implement.
  39. // These are subject to change in future releases of EOF so
  40. // use them with care.
  41. //
  42. @interface EOEntity (_ODBCPrivate)
  43. - (EOAttribute *)attributeForPath:(NSString *)attributePath;
  44. - (EORelationship *)relationshipForPath:(NSString *)relationshipPath;
  45. @end
  46.  
  47. @interface NSString (_ODBCPrivate)
  48. - (NSString *)relationshipPathByDeletingLastComponent;
  49. @end
  50.  
  51. @interface EOSQLExpression (_ODBCPrivate)
  52. - (NSString *)_aliasForRelatedAttribute:(EOAttribute *)attribute relationshipPath:(NSString *)relationshipPath;
  53. @end
  54.  
  55.  
  56.