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

  1. // EOStoredProcedure.h
  2. // Copyright (c) 1995, NeXT Software, Inc. All rights reserved.
  3.  
  4. #import <Foundation/Foundation.h>
  5. #import <EOAccess/EOPropertyListEncoding.h>
  6.  
  7. @class EOModel;
  8. @class EOAttribute;
  9.  
  10. @interface EOStoredProcedure : NSObject <EOPropertyListEncoding>
  11. {
  12.     NSString *_name;
  13.     NSString *_externalName;
  14.     EOModel *_model;
  15.     NSArray *_arguments;
  16.     NSDictionary *_userInfo;
  17. }
  18. - (EOStoredProcedure *)initWithName:(NSString *)name;
  19.     // Create a stored procedure with the given name
  20.  
  21. - (NSString *)name;
  22.     // return the name of the stored procedure
  23. - (NSString *)externalName;
  24.     // return the external name of the stored procedure
  25. - (EOModel *)model;
  26.     // return the model that contains this stored procedure
  27. - (NSArray *)arguments;
  28.     // return the array of EOAttributes that describe the names
  29.     // and types of the stored procedure arguments.
  30. - (NSDictionary *)userInfo;
  31.     // user custom dictionary
  32.  
  33. - (void)setName:(NSString *)name;
  34.     // set the name of the stored procedure
  35. - (void)setExternalName:(NSString *)name;
  36.     // set the external name of the stored procedure
  37. - (void)setArguments:(NSArray *)arguments;
  38.     // set the array of EOAttributes that describe the arguments to the
  39.     // stored procedure
  40. - (void)setUserInfo:(NSDictionary *)dictionary;
  41.     // set the user custom info
  42.  
  43. @end
  44.  
  45. @interface EOStoredProcedure(EOModelBeautifier)
  46. - (void)beautifyName;
  47.     // Make the stored procedure name and all of its argument names
  48.     // conform to the Next naming style
  49.     // NAME -> name, FIRST_NAME -> firstName
  50. @end
  51.