FFDataBaseModel+Custom.h 994 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //
  2. // FFDataBaseModel+Custom.h
  3. // FFDB
  4. //
  5. // Created by Fidetro on 2017/7/16.
  6. // Copyright © 2017年 Fidetro. All rights reserved.
  7. //
  8. // https://github.com/Fidetro/FFDB
  9. #import "FFDataBaseModel.h"
  10. @interface FFDataBaseModel (Custom)
  11. /**
  12. If you want this property does not exist in the table colums,you need overwirte in subclass ,like:
  13. + (NSArray *)memoryPropertys
  14. {
  15. return @[@"memoryProperty"];
  16. }
  17. */
  18. + (NSArray *)memoryPropertys;
  19. /**
  20. If you want custom columnType you need overwirte in subclass ,like:
  21. + (NSDictionary *)columnsType
  22. {
  23. return @{@"property":@"columnType"};
  24. }
  25. */
  26. + (NSDictionary *)columnsType;
  27. /**
  28. If you want custom column you need overwirte in subclass ,like:
  29. + (NSDictionary *)customColumns
  30. {
  31. return @{@"d":@"dog"};
  32. }
  33. */
  34. + (NSDictionary *)customColumns;
  35. /**
  36. table columns only readonly can't overwrite
  37. @return columns
  38. */
  39. + (NSArray *)columnsOfSelf;
  40. /**
  41. get class table name
  42. @return table name
  43. */
  44. + (NSString *)tableName;
  45. @end