home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEPLOY / INFORMAD.Z / InformixContext.h < prev    next >
Text File  |  1996-09-09  |  1KB  |  53 lines

  1. // InformixContext.h 
  2. // Copyright (c) 1994, NeXT Software, Inc.  All rights reserved.
  3. //
  4.  
  5. #import <EOAccess/EOAccess.h>
  6. #import "InformixDefines.h"
  7.  
  8. @class InformixAdaptor;
  9. @class InformixChannel;
  10.  
  11. @interface InformixContext:EOAdaptorContext
  12. {
  13.     unsigned short _fetchesInProgress;
  14.     unsigned short _openCursors;
  15.     BOOL _hasTransactions;
  16.     BOOL _isANSI;
  17.     BOOL _isOnLine;
  18.     BOOL _connected;
  19.     int  _infVers;
  20.     InformixIsolationLevel _defaultIsolation;
  21.     long _last_serial;
  22.     long _connection;
  23. }
  24.  
  25. - initWithInformixAdaptor:(InformixAdaptor *)adaptor;
  26.     
  27. - (unsigned)fetchesInProgress;
  28.  
  29. - (void)connect;
  30. - (void)disconnect;
  31. - (BOOL)isConnected;
  32.  
  33. - (BOOL)informixChannelWillBeginFetching:(InformixChannel *)cursor;
  34. - (void)informixChannelDidEndFetching:(InformixChannel *)cursor;
  35. - (void)informixChannelWillOpen:(InformixChannel *)cursor;
  36. - (void)informixChannelDidClose:(InformixChannel *)cursor;
  37.     // Methods used by the adaptor to notify the context of changes.
  38.  
  39. - (long)getInformixSerialValue;
  40. - (void)setInformixSerialValue:(long)serial;
  41. - (BOOL)isOnLine;
  42.     // Is the server an Informix-OnLine server
  43. - (BOOL)hasTransactions;
  44.     // Does the server support transactions
  45. - (InformixIsolationLevel)defaultIsolation;
  46.     // Isolation setting on the server
  47. - (void)setInformixPDQPriority:(const char*)prio;
  48. - (long)connection;
  49.     // The informiox connection structure
  50.  
  51. @end
  52.  
  53.