1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- #import <Foundation/Foundation.h>
- #import <objc/runtime.h>
- @class LKDBProperty;
- @class LKModelInfos;
- @class LKDBHelper;
- #pragma mark- 表结构
- @interface NSObject(LKTabelStructure)
- +(NSString*)getTableName;
- +(void)columeAttributeWithProperty:(LKDBProperty*)property;
- +(NSString*)getPrimaryKey;
- +(NSArray*) getPrimaryKeyUnionArray;
- @property int rowid;
- +(NSString*)getDBImagePathWithName:(NSString*)filename;
- +(NSString*)getDBDataPathWithName:(NSString*)filename;
- @end
- #pragma mark- 表数据操作
- @interface NSObject(LKTableData)
- -(id)userGetValueForModel:(LKDBProperty*)property;
- -(void)userSetValueForModel:(LKDBProperty*)property value:(id)value;
- -(id)modelGetValue:(LKDBProperty*)property;
- -(void)modelSetValue:(LKDBProperty*)property value:(id)value;
- -(id)getPrimaryValue;
- @end
- @interface NSObject (LKModel)
- +(LKDBHelper*)getUsingLKDBHelper;
- +(LKModelInfos*)getModelInfos;
- +(BOOL)isContainParent;
- -(NSString*)printAllPropertys;
- @end
|