#import "BLSyncUser.h"

@implementation BLSyncUser

-(BOOL)insert:(UserJson *)json
{
    return [super insert:json];
}

-(BOOL)delete:(NSString *)whereClause
{
    return [super delete:whereClause];
}

-(BOOL)deleteByID:(NSString *)ID
{
    return [self delete:[@"ID=" stringByAppendingString:ID]];
}

-(BOOL)update:(UserJson *)json
{
    return [super update:json];
}

-(NSInteger)getCount:(NSString *)whereClause
{
    return [super getCount:whereClause];
}

-(NSArray *)select:(NSString *)whereClause
{
    return [super select:whereClause];
}

-(NSArray *)select:(NSString *)whereClause index:(NSString *)index step:(NSString *)step
{
    return  [super select:whereClause index:index step:step];
}

-(UserJson *)getJson:(NSString *)ID
{
    UserJson *json = nil;
    
    NSArray *result = [self select:[@"ID=" stringByAppendingString:ID]];
    if(result)
    {
        json = [UserJson getJson:[result objectAtIndex:0]];
    }
    
    return json;
}

@end
