home *** CD-ROM | disk | FTP | other *** search
- #import <eoaccess/eoaccess.h>
-
- @protocol DepartmentEOProtocol
- - (oneway void)printDepartmentReport: sender;
- @end
-
- @interface Department:NSObject <DepartmentEOProtocol>
- {
- NSString * DepartmentName;
- int DeptId;
- int LocationId;
- id toFacility;
- NSString * FacilityLocation;
- NSArray * toEmployee;
-
- int averageSalary;
- /* Average salary earned by employees in the department.
- * This attribute is not defined in the Department
- * table.
- */
-
- }
-
-
- /* ACCESSOR METHODS */
-
- - (void)setDepartmentName:(NSString *)newName;
- - (NSString *)DepartmentName;
- - (void)setDeptId:(int)newId;
- - (int)DeptId;
- - (void)setLocationId:(int)value;
- - (int)LocationId;
- - (void)setToFacility:value;
- - toFacility;
- - (void)setFacilityLocation:(NSString *)value;
- - (NSString *)FacilityLocation;
- - (void)setToEmployee:(NSArray *)value;
- - (NSArray *)toEmployee;
- - (void) setAverageSalary:(int)aSalary;
- - (int)averageSalary;
-
- @end
-