/FieldMapDataObject.m

http://github.com/bububa/MongoHub-Mac · Objective C · 35 lines · 19 code · 9 blank · 7 comment · 1 complexity · 20e3fa1b762689e18d57d21b32fb448a MD5 · raw file

  1. //
  2. // fieldMapDataObject.m
  3. // MongoHub
  4. //
  5. // Created by Syd on 10-6-22.
  6. // Copyright 2010 ThePeppersStudio.COM. All rights reserved.
  7. //
  8. #import "FieldMapDataObject.h"
  9. @implementation FieldMapDataObject
  10. @synthesize sqlKey;
  11. @synthesize mongoKey;
  12. - (id)initWithSqlKey:(NSString *)pStr1 andMongoKey:(NSString *)pStr2 {
  13. if (! (self = [super init])) {
  14. NSLog(@"MyDataObject **** ERROR : [super init] failed ***");
  15. return self;
  16. } // end if
  17. self.sqlKey = pStr1;
  18. self.mongoKey = pStr2;
  19. return self;
  20. }
  21. - (void) dealloc {
  22. [sqlKey release];
  23. [mongoKey release];
  24. [super dealloc];
  25. }
  26. @end