cancel
Showing results for 
Search instead for 
Did you mean: 

Problem while Integrating Xcode with oData

Former Member
0 Kudos

Hi,

     I am creating an iPad Application, which uses the NW Gateway Webservices.I am following these document

"SAP NetWeaver Gateway 2.0 Developer Tool for Xcode " I have followed the steps mentioned in document.

Now i am on the way to write the code.

I am facing an exception at the point where i am creating service

ZPLANNINGBOOK_0003Service *service = [[ZPLANNINGBOOK_0003Service alloc]init];

Please find below the code snippet & Console output.

Also please share the project links where i can find the oData+Xcode using SAP Proxy Tool.

--------------------------------------------

ProxyDemandPlanningViewController.m

-------------------------------------------

- (void)viewDidLoad

{

    [super viewDidLoad];

   

    NSLog(@"111");

   

//    NSData *serviceDocResponse = [NSData alloc];

//   NSData *serviceMetadataResponse = [NSData alloc];

   

   

    SDMConnectivityHelper *connectivityHelper = [[SDMConnectivityHelper alloc]initWithUsername:@"USERNAME" andPassword:@"password"];

   

    NSError *error = nil;

    NSLog(@"after connect");

    ZPLANNINGBOOK_0003Service *service = [[ZPLANNINGBOOK_0003Service alloc]init];

   

//    ZPLANNINGBOOK_0003Service *service = [[ZPLANNINGBOOK_0003Service alloc] initWithServiceDocument:serviceDocResponse andMetadata:serviceMetadataResponse];

//   

   

    NSLog(@"222");

    id<SDMRequesting> request = [connectivityHelper executeBasicSyncRequestWithQuery:service.t_columnsCollectionQuery];

   

    NSLog(@"after ns executebasic connect");

    NSData *itemsResponseData = request.responseData;

   

    NSMutableArray *Columns = [service getT_columnsCollectionWithData:itemsResponseData error:&error];

   

    for(int i = 0 ; i < Columns.count ; i++)

    {

        [Columns objectAtIndex:i];

        NSLog(@"Count ==== %@ ",[Columns objectAtIndex:i]);

    }

   

// Do any additional setup after loading the view, typically from a nib.

}

-------------------------------

Console Output

-------------------------------

2012-08-30 13:53:47.678 ProxyDemandPlanning[7523:15203] 111

2012-08-30 13:53:47.700 ProxyDemandPlanning[7523:15203] after connect

Current language:  auto; currently objective-c

2012-08-30 13:54:52.685 ProxyDemandPlanning[7523:15203] +[NSString isNullOrEmpty:]: unrecognized selector sent to class 0x103bfd8

2012-08-30 13:54:52.686 ProxyDemandPlanning[7523:15203] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSString isNullOrEmpty:]: unrecognized selector sent to class 0x103bfd8'

*** First throw call stack:

(0x15b0052 0x198cd0a 0x15b1add 0x1516f00 0x1516ce2 0x487b0 0x4641b 0x46a48 0x46fa3 0x38d27 0xebd892 0x1c13b37 0x1c19dab 0xebc02d 0x3888c 0x38f50 0xc973 0xc7f4 0x2890 0x5b364e 0x513a73 0x513ce2 0x513ea8 0x51ad9a 0x23fe 0x4eb9d6 0x4ec8a6 0x4fb743 0x4fc1f8 0x4efaa9 0x1e3efa9 0x15841c5 0x14e9022 0x14e790a 0x14e6db4 0x14e6ccb 0x4ec2a7 0x4eda9b 0x2128 0x2085 0x1)

terminate called throwing an exception(gdb)

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

   Can you tell us what code is present in  ZPLANNINGBOOK_0003Service ? And are you returning the response back when you made a GET request ?

Thanks,

Srikanth M

Former Member
0 Kudos

Hi Srikanth,

Thanks for your reply...

ZPLANNINGBOOK_0003Service is the service which is auto generated by SAP NW Proxy Tool.

I am getting exception on

ZPLANNINGBOOK_0003Service *service = [[ZPLANNINGBOOK_0003Service alloc]init];

So i am not able to move ahead after these line & finally not able to get the Response.

Please find below the code for ZPLANNINGBOOK_0003Service.m file

===============================================

/*

Auto-Generated by the SAP NetWeaver Gateway developer tool for Xcode, Version 2.5.300.0

 

File: ZPLANNINGBOOK_0003Service.h

Abstract: The generated proxy classes for the ZPLANNINGBOOK_0003 Service. Service Version: 1. 

*/

#import "ZPLANNINGBOOK_0003Service.h"

#import "BaseODataObject.h"

#import "Logger.h"

#import "SDMODataEntitySchema.h"

#import "SDMODataCollection.h"

#import "SDMODataFunctionImport.h"

#import "TypeConverter.h"

#define ZPLANNINGBOOK_0003_SERVICE_DOCUMENT @"ZPLANNINGBOOK_0003ServiceDocument"

#define ZPLANNINGBOOK_0003_SERVICE_METADATA @"ZPLANNINGBOOK_0003ServiceMetadata"

#pragma mark - Complex Types

#pragma mark - Entity Types

#pragma mark - zgwplanning_book_demo3

@implementation zgwplanning_book_demo3

@synthesize im_groupby = m_im_groupby;

@synthesize im_dview = m_im_dview;

@synthesize coltxt = m_coltxt;

@synthesize im_version = m_im_version;

@synthesize tstto = m_tstto;

@synthesize tstfr = m_tstfr;

@synthesize im_location = m_im_location;

@synthesize im_product = m_im_product;

@synthesize im_pbook = m_im_pbook;

@synthesize colno = m_colno;

@synthesize t_keyfig_val_rQuery = m_t_keyfig_val_rQuery;

@synthesize t_keyfig_val_r = m_t_keyfig_val_r;

@synthesize t_rows_rQuery = m_t_rows_rQuery;

@synthesize t_rows_r = m_t_rows_r;

@synthesize t_columns_rQuery = m_t_columns_rQuery;

@synthesize t_columns_r = m_t_columns_r;

static NSMutableDictionary *zgwplanning_book_demo3Labels = nil;

static SDMODataEntitySchema *zgwplanning_book_demo3EntitySchema = nil;

- (id)init

{

    self = [super init];

    if (self) {

        m_SDMEntry = [BaseEntityType createEmptySDMODataEntryWithSchema:zgwplanning_book_demo3EntitySchema error:nil];

        if (!m_SDMEntry) {

            return nil;

        }       

        m_properties = nil;

        m_baseUrl = nil;

    }

    return self;

}

- (NSMutableDictionary *)getSDMEntriesForNavigationProperties

{

    NSMutableDictionary *dictionary = [NSMutableDictionary dictionary];

    if ([self.t_keyfig_val_r count] > 0) {

        [dictionary setObject:[self createSDMEntriesForNavigationPropertyEntries:self.t_keyfig_val_r] forKey:@"t_keyfig_val_r"];

    }

    if ([self.t_rows_r count] > 0) {

        [dictionary setObject:[self createSDMEntriesForNavigationPropertyEntries:self.t_rows_r] forKey:@"t_rows_r"];

    }

    if ([self.t_columns_r count] > 0) {

        [dictionary setObject:[self createSDMEntriesForNavigationPropertyEntries:self.t_columns_r] forKey:@"t_columns_r"];

    }

    return dictionary;

}

- (SDMODataEntry *)buildSDMEntryFromPropertiesAndReturnError:(NSError **)error

{

    if (m_SDMEntry) {

        NSError *innerError = nil;

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.im_groupby forSDMPropertyWithName:@"im_groupby" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.im_dview forSDMPropertyWithName:@"im_dview" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.coltxt forSDMPropertyWithName:@"coltxt" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.im_version forSDMPropertyWithName:@"im_version" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.tstto forSDMPropertyWithName:@"tstto" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.tstfr forSDMPropertyWithName:@"tstfr" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.im_location forSDMPropertyWithName:@"im_location" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.im_product forSDMPropertyWithName:@"im_product" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.im_pbook forSDMPropertyWithName:@"im_pbook" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.colno forSDMPropertyWithName:@"colno" error:&innerError];

        [self addRelativeLinksToSDMEntryFromDictionary:[self getSDMEntriesForNavigationProperties]];

        if (innerError) {

            if (error) {

                *error = innerError;

            }

            return nil;

        }

          }

    return m_SDMEntry;

}

+ (void)loadEntitySchema:(SDMODataServiceDocument *)aService

{

    SDMODataCollection *collectionSchema = [aService.schema getCollectionByName:@"zgwplanning_book_demo3Collection" workspaceOfCollection:nil];

    zgwplanning_book_demo3EntitySchema = collectionSchema.entitySchema;

}

+ (void)loadLabels:(SDMODataServiceDocument *)aService

{

  NSMutableDictionary *properties = [BaseODataObject getSchemaPropertiesFromCollection:@"zgwplanning_book_demo3Collection" andService:aService];

              if (properties) {   

              zgwplanning_book_demo3Labels = [NSMutableDictionary dictionary];

                        for (SDMODataPropertyInfo *property in [properties allValues]) {

                            [zgwplanning_book_demo3Labels setValue:property.label forKey:property.name];

                        }

              }

              else {

        LOGERROR(@"Failed to load SAP labels from service metadata");

              }

}

+ (NSString *)getLabelForProperty:(NSString *)aPropertyName

{

    return [BaseODataObject getLabelFromDictionary:zgwplanning_book_demo3Labels forProperty:aPropertyName];

}

- (void)loadProperties

{

    [super loadProperties];

m_im_groupby = [self getStringValueForSDMPropertyWithName:@"im_groupby"];

m_im_dview = [self getStringValueForSDMPropertyWithName:@"im_dview"];

m_coltxt = [self getStringValueForSDMPropertyWithName:@"coltxt"];

m_im_version = [self getStringValueForSDMPropertyWithName:@"im_version"];

m_tstto = [self getStringValueForSDMPropertyWithName:@"tstto"];

m_tstfr = [self getStringValueForSDMPropertyWithName:@"tstfr"];

m_im_location = [self getStringValueForSDMPropertyWithName:@"im_location"];

m_im_product = [self getStringValueForSDMPropertyWithName:@"im_product"];

m_im_pbook = [self getStringValueForSDMPropertyWithName:@"im_pbook"];

m_colno = [self getStringValueForSDMPropertyWithName:@"colno"];

}

- (void)loadNavigationPropertyQueries

{

    [super loadNavigationPropertyQueries];

    m_t_keyfig_val_rQuery = [self getRelatedLinkForNavigationName:@"t_keyfig_val_r"];

    m_t_rows_rQuery = [self getRelatedLinkForNavigationName:@"t_rows_r"];

    m_t_columns_rQuery = [self getRelatedLinkForNavigationName:@"t_columns_r"];

}

- (void)loadNavigationPropertyData

{

    [super loadNavigationPropertyData];

   

    NSMutableArray *entries = nil;

    entries = [self getInlinedRelatedEntriesForNavigationName:@"t_keyfig_val_r"];

    m_t_keyfig_val_r = [t_keyfig_val createT_keyfig_valEntriesForSDMEntries:entries];

    entries = [self getInlinedRelatedEntriesForNavigationName:@"t_rows_r"];

    m_t_rows_r = [t_rows createT_rowsEntriesForSDMEntries:entries];

    entries = [self getInlinedRelatedEntriesForNavigationName:@"t_columns_r"];

    m_t_columns_r = [t_columns createT_columnsEntriesForSDMEntries:entries];

}

+ (NSMutableArray *)createZgwplanning_book_demo3EntriesForSDMEntries:(NSMutableArray *)sdmEntries

{

    NSMutableArray *entries = [NSMutableArray array];

    for (SDMODataEntry *entry in sdmEntries) {

        zgwplanning_book_demo3 *zgwplanning_book_demo3Object = [[zgwplanning_book_demo3 alloc] initWithSDMEntry:entry];

        [entries addObject:zgwplanning_book_demo3Object];

    }

    return entries;

}

+ (NSMutableArray *)parseZgwplanning_book_demo3EntriesWithData:(NSData *)aData error:(NSError **)error

{

    NSMutableArray *sdmEntries = [BaseEntityType getSDMEntriesForEntitySchema:zgwplanning_book_demo3EntitySchema andData:aData error:error];

    if (!sdmEntries) {

    return nil;

    }

return [zgwplanning_book_demo3 createZgwplanning_book_demo3EntriesForSDMEntries:sdmEntries];

}

+ (NSMutableArray *)parseExpandedZgwplanning_book_demo3EntriesWithData:(NSData *)aData andServiceDocument:(SDMODataServiceDocument *)aServiceDocument error:(NSError **)error

{

    NSMutableArray *sdmEntries = [BaseEntityType getExpandedSDMEntriesForEntitySchema:zgwplanning_book_demo3EntitySchema andData:aData andServiceDocument:aServiceDocument error:error];

    if (!sdmEntries) {

    return nil;

    }

return [zgwplanning_book_demo3 createZgwplanning_book_demo3EntriesForSDMEntries:sdmEntries];

}

+ (zgwplanning_book_demo3 *)parseZgwplanning_book_demo3EntryWithData:(NSData *)aData error:(NSError **)error

{

    NSMutableArray *zgwplanning_book_demo3Entries = [zgwplanning_book_demo3 parseZgwplanning_book_demo3EntriesWithData:aData error:error];

    if (!zgwplanning_book_demo3Entries) {

    return nil;

    }

    return (zgwplanning_book_demo3 *)[zgwplanning_book_demo3 getFirstObjectFromArray:zgwplanning_book_demo3Entries];

}

+ (zgwplanning_book_demo3 *)parseExpandedZgwplanning_book_demo3EntryWithData:(NSData *)aData andServiceDocument:(SDMODataServiceDocument *)aServiceDocument error:(NSError **)error

{

NSMutableArray *sdmEntries = [BaseEntityType getExpandedSDMEntriesForEntitySchema:zgwplanning_book_demo3EntitySchema andData:aData andServiceDocument:aServiceDocument error:error];

    NSMutableArray *zgwplanning_book_demo3Entries = [zgwplanning_book_demo3 createZgwplanning_book_demo3EntriesForSDMEntries:sdmEntries];

return (zgwplanning_book_demo3 *)[zgwplanning_book_demo3 getFirstObjectFromArray:zgwplanning_book_demo3Entries];

}

#pragma mark Entity Navigation Property loading methods

- (BOOL)loadT_keyfig_val_rWithData:(NSData *)aData error:(NSError **)error

{

    self.t_keyfig_val_r = [t_keyfig_val parseT_keyfig_valEntriesWithData:aData error:error];

    if (!self.t_keyfig_val_r) {

    return NO;

    }

    return YES;

}

- (BOOL)loadT_rows_rWithData:(NSData *)aData error:(NSError **)error

{

    self.t_rows_r = [t_rows parseT_rowsEntriesWithData:aData error:error];

    if (!self.t_rows_r) {

    return NO;

    }

    return YES;

}

- (BOOL)loadT_columns_rWithData:(NSData *)aData error:(NSError **)error

{

    self.t_columns_r = [t_columns parseT_columnsEntriesWithData:aData error:error];

    if (!self.t_columns_r) {

    return NO;

    }

    return YES;

}

@end

#pragma mark - t_columns

@implementation t_columns

@synthesize im_product = m_im_product;

@synthesize tstfr = m_tstfr;

@synthesize colno = m_colno;

@synthesize im_pbook = m_im_pbook;

@synthesize im_version = m_im_version;

@synthesize im_dview = m_im_dview;

@synthesize im_location = m_im_location;

@synthesize coltxt = m_coltxt;

@synthesize im_groupby = m_im_groupby;

@synthesize tstto = m_tstto;

static NSMutableDictionary *t_columnsLabels = nil;

static SDMODataEntitySchema *t_columnsEntitySchema = nil;

- (id)init

{

    self = [super init];

    if (self) {

        m_SDMEntry = [BaseEntityType createEmptySDMODataEntryWithSchema:t_columnsEntitySchema error:nil];

        if (!m_SDMEntry) {

            return nil;

        }       

        m_properties = nil;

        m_baseUrl = nil;

    }

    return self;

}

- (SDMODataEntry *)buildSDMEntryFromPropertiesAndReturnError:(NSError **)error

{

    if (m_SDMEntry) {

        NSError *innerError = nil;

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.im_product forSDMPropertyWithName:@"im_product" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.tstfr forSDMPropertyWithName:@"tstfr" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.colno forSDMPropertyWithName:@"colno" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.im_pbook forSDMPropertyWithName:@"im_pbook" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.im_version forSDMPropertyWithName:@"im_version" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.im_dview forSDMPropertyWithName:@"im_dview" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.im_location forSDMPropertyWithName:@"im_location" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.coltxt forSDMPropertyWithName:@"coltxt" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.im_groupby forSDMPropertyWithName:@"im_groupby" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.tstto forSDMPropertyWithName:@"tstto" error:&innerError];

        if (innerError) {

            if (error) {

                *error = innerError;

            }

            return nil;

        }

          }

    return m_SDMEntry;

}

+ (void)loadEntitySchema:(SDMODataServiceDocument *)aService

{

    SDMODataCollection *collectionSchema = [aService.schema getCollectionByName:@"t_columnsCollection" workspaceOfCollection:nil];

    t_columnsEntitySchema = collectionSchema.entitySchema;

}

+ (void)loadLabels:(SDMODataServiceDocument *)aService

{

  NSMutableDictionary *properties = [BaseODataObject getSchemaPropertiesFromCollection:@"t_columnsCollection" andService:aService];

              if (properties) {   

              t_columnsLabels = [NSMutableDictionary dictionary];

                        for (SDMODataPropertyInfo *property in [properties allValues]) {

                            [t_columnsLabels setValue:property.label forKey:property.name];

                        }

              }

              else {

        LOGERROR(@"Failed to load SAP labels from service metadata");

              }

}

+ (NSString *)getLabelForProperty:(NSString *)aPropertyName

{

    return [BaseODataObject getLabelFromDictionary:t_columnsLabels forProperty:aPropertyName];

}

- (void)loadProperties

{

    [super loadProperties];

m_im_product = [self getStringValueForSDMPropertyWithName:@"im_product"];

m_tstfr = [self getStringValueForSDMPropertyWithName:@"tstfr"];

m_colno = [self getStringValueForSDMPropertyWithName:@"colno"];

m_im_pbook = [self getStringValueForSDMPropertyWithName:@"im_pbook"];

m_im_version = [self getStringValueForSDMPropertyWithName:@"im_version"];

m_im_dview = [self getStringValueForSDMPropertyWithName:@"im_dview"];

m_im_location = [self getStringValueForSDMPropertyWithName:@"im_location"];

m_coltxt = [self getStringValueForSDMPropertyWithName:@"coltxt"];

m_im_groupby = [self getStringValueForSDMPropertyWithName:@"im_groupby"];

m_tstto = [self getStringValueForSDMPropertyWithName:@"tstto"];

}

+ (NSMutableArray *)createT_columnsEntriesForSDMEntries:(NSMutableArray *)sdmEntries

{

    NSMutableArray *entries = [NSMutableArray array];

    for (SDMODataEntry *entry in sdmEntries) {

        t_columns *t_columnsObject = [[t_columns alloc] initWithSDMEntry:entry];

        [entries addObject:t_columnsObject];

    }

    return entries;

}

+ (NSMutableArray *)parseT_columnsEntriesWithData:(NSData *)aData error:(NSError **)error

{

    NSMutableArray *sdmEntries = [BaseEntityType getSDMEntriesForEntitySchema:t_columnsEntitySchema andData:aData error:error];

    if (!sdmEntries) {

    return nil;

    }

return [t_columns createT_columnsEntriesForSDMEntries:sdmEntries];

}

+ (NSMutableArray *)parseExpandedT_columnsEntriesWithData:(NSData *)aData andServiceDocument:(SDMODataServiceDocument *)aServiceDocument error:(NSError **)error

{

    NSMutableArray *sdmEntries = [BaseEntityType getExpandedSDMEntriesForEntitySchema:t_columnsEntitySchema andData:aData andServiceDocument:aServiceDocument error:error];

    if (!sdmEntries) {

    return nil;

    }

return [t_columns createT_columnsEntriesForSDMEntries:sdmEntries];

}

+ (t_columns *)parseT_columnsEntryWithData:(NSData *)aData error:(NSError **)error

{

    NSMutableArray *t_columnsEntries = [t_columns parseT_columnsEntriesWithData:aData error:error];

    if (!t_columnsEntries) {

    return nil;

    }

    return (t_columns *)[t_columns getFirstObjectFromArray:t_columnsEntries];

}

+ (t_columns *)parseExpandedT_columnsEntryWithData:(NSData *)aData andServiceDocument:(SDMODataServiceDocument *)aServiceDocument error:(NSError **)error

{

NSMutableArray *sdmEntries = [BaseEntityType getExpandedSDMEntriesForEntitySchema:t_columnsEntitySchema andData:aData andServiceDocument:aServiceDocument error:error];

    NSMutableArray *t_columnsEntries = [t_columns createT_columnsEntriesForSDMEntries:sdmEntries];

          return (t_columns *)[t_columns getFirstObjectFromArray:t_columnsEntries];

}

@end

#pragma mark - t_rows

@implementation t_rows

@synthesize im_location = m_im_location;

@synthesize im_dview = m_im_dview;

@synthesize key_fig_text = m_key_fig_text;

@synthesize key_fig_id = m_key_fig_id;

@synthesize im_version = m_im_version;

@synthesize char_comb = m_char_comb;

@synthesize key_fig = m_key_fig;

@synthesize im_groupby = m_im_groupby;

@synthesize im_pbook = m_im_pbook;

@synthesize im_product = m_im_product;

static NSMutableDictionary *t_rowsLabels = nil;

static SDMODataEntitySchema *t_rowsEntitySchema = nil;

- (id)init

{

    self = [super init];

    if (self) {

        m_SDMEntry = [BaseEntityType createEmptySDMODataEntryWithSchema:t_rowsEntitySchema error:nil];

        if (!m_SDMEntry) {

            return nil;

        }       

        m_properties = nil;

        m_baseUrl = nil;

    }

    return self;

}

- (SDMODataEntry *)buildSDMEntryFromPropertiesAndReturnError:(NSError **)error

{

    if (m_SDMEntry) {

        NSError *innerError = nil;

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.im_location forSDMPropertyWithName:@"im_location" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.im_dview forSDMPropertyWithName:@"im_dview" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.key_fig_text forSDMPropertyWithName:@"key_fig_text" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.key_fig_id forSDMPropertyWithName:@"key_fig_id" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.im_version forSDMPropertyWithName:@"im_version" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.char_comb forSDMPropertyWithName:@"char_comb" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.key_fig forSDMPropertyWithName:@"key_fig" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.im_groupby forSDMPropertyWithName:@"im_groupby" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.im_pbook forSDMPropertyWithName:@"im_pbook" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.im_product forSDMPropertyWithName:@"im_product" error:&innerError];

        if (innerError) {

            if (error) {

                *error = innerError;

            }

            return nil;

        }

          }

    return m_SDMEntry;

}

+ (void)loadEntitySchema:(SDMODataServiceDocument *)aService

{

    SDMODataCollection *collectionSchema = [aService.schema getCollectionByName:@"t_rowsCollection" workspaceOfCollection:nil];

    t_rowsEntitySchema = collectionSchema.entitySchema;

}

+ (void)loadLabels:(SDMODataServiceDocument *)aService

{

  NSMutableDictionary *properties = [BaseODataObject getSchemaPropertiesFromCollection:@"t_rowsCollection" andService:aService];

              if (properties) {   

              t_rowsLabels = [NSMutableDictionary dictionary];

                        for (SDMODataPropertyInfo *property in [properties allValues]) {

                            [t_rowsLabels setValue:property.label forKey:property.name];

                        }

              }

              else {

        LOGERROR(@"Failed to load SAP labels from service metadata");

              }

}

+ (NSString *)getLabelForProperty:(NSString *)aPropertyName

{

    return [BaseODataObject getLabelFromDictionary:t_rowsLabels forProperty:aPropertyName];

}

- (void)loadProperties

{

    [super loadProperties];

m_im_location = [self getStringValueForSDMPropertyWithName:@"im_location"];

m_im_dview = [self getStringValueForSDMPropertyWithName:@"im_dview"];

m_key_fig_text = [self getStringValueForSDMPropertyWithName:@"key_fig_text"];

m_key_fig_id = [self getStringValueForSDMPropertyWithName:@"key_fig_id"];

m_im_version = [self getStringValueForSDMPropertyWithName:@"im_version"];

m_char_comb = [self getStringValueForSDMPropertyWithName:@"char_comb"];

m_key_fig = [self getStringValueForSDMPropertyWithName:@"key_fig"];

m_im_groupby = [self getStringValueForSDMPropertyWithName:@"im_groupby"];

m_im_pbook = [self getStringValueForSDMPropertyWithName:@"im_pbook"];

m_im_product = [self getStringValueForSDMPropertyWithName:@"im_product"];

}

+ (NSMutableArray *)createT_rowsEntriesForSDMEntries:(NSMutableArray *)sdmEntries

{

    NSMutableArray *entries = [NSMutableArray array];

    for (SDMODataEntry *entry in sdmEntries) {

        t_rows *t_rowsObject = [[t_rows alloc] initWithSDMEntry:entry];

        [entries addObject:t_rowsObject];

    }

    return entries;

}

+ (NSMutableArray *)parseT_rowsEntriesWithData:(NSData *)aData error:(NSError **)error

{

    NSMutableArray *sdmEntries = [BaseEntityType getSDMEntriesForEntitySchema:t_rowsEntitySchema andData:aData error:error];

    if (!sdmEntries) {

    return nil;

    }

return [t_rows createT_rowsEntriesForSDMEntries:sdmEntries];

}

+ (NSMutableArray *)parseExpandedT_rowsEntriesWithData:(NSData *)aData andServiceDocument:(SDMODataServiceDocument *)aServiceDocument error:(NSError **)error

{

    NSMutableArray *sdmEntries = [BaseEntityType getExpandedSDMEntriesForEntitySchema:t_rowsEntitySchema andData:aData andServiceDocument:aServiceDocument error:error];

    if (!sdmEntries) {

    return nil;

    }

return [t_rows createT_rowsEntriesForSDMEntries:sdmEntries];

}

+ (t_rows *)parseT_rowsEntryWithData:(NSData *)aData error:(NSError **)error

{

    NSMutableArray *t_rowsEntries = [t_rows parseT_rowsEntriesWithData:aData error:error];

    if (!t_rowsEntries) {

    return nil;

    }

    return (t_rows *)[t_rows getFirstObjectFromArray:t_rowsEntries];

}

+ (t_rows *)parseExpandedT_rowsEntryWithData:(NSData *)aData andServiceDocument:(SDMODataServiceDocument *)aServiceDocument error:(NSError **)error

{

NSMutableArray *sdmEntries = [BaseEntityType getExpandedSDMEntriesForEntitySchema:t_rowsEntitySchema andData:aData andServiceDocument:aServiceDocument error:error];

    NSMutableArray *t_rowsEntries = [t_rows createT_rowsEntriesForSDMEntries:sdmEntries];

          return (t_rows *)[t_rows getFirstObjectFromArray:t_rowsEntries];

}

@end

#pragma mark - t_keyfig_val

@implementation t_keyfig_val

@synthesize im_pbook = m_im_pbook;

@synthesize key_fig_id = m_key_fig_id;

@synthesize im_product = m_im_product;

@synthesize char_comb = m_char_comb;

@synthesize value = m_value;

@synthesize colno = m_colno;

@synthesize im_groupby = m_im_groupby;

@synthesize edit_value = m_edit_value;

@synthesize im_location = m_im_location;

@synthesize im_version = m_im_version;

@synthesize im_dview = m_im_dview;

static NSMutableDictionary *t_keyfig_valLabels = nil;

static SDMODataEntitySchema *t_keyfig_valEntitySchema = nil;

- (id)init

{

    self = [super init];

    if (self) {

        m_SDMEntry = [BaseEntityType createEmptySDMODataEntryWithSchema:t_keyfig_valEntitySchema error:nil];

        if (!m_SDMEntry) {

            return nil;

        }       

        m_properties = nil;

        m_baseUrl = nil;

    }

    return self;

}

- (SDMODataEntry *)buildSDMEntryFromPropertiesAndReturnError:(NSError **)error

{

    if (m_SDMEntry) {

        NSError *innerError = nil;

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.im_pbook forSDMPropertyWithName:@"im_pbook" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.key_fig_id forSDMPropertyWithName:@"key_fig_id" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.im_product forSDMPropertyWithName:@"im_product" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.char_comb forSDMPropertyWithName:@"char_comb" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.value forSDMPropertyWithName:@"value" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.colno forSDMPropertyWithName:@"colno" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.im_groupby forSDMPropertyWithName:@"im_groupby" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.edit_value forSDMPropertyWithName:@"edit_value" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.im_location forSDMPropertyWithName:@"im_location" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.im_version forSDMPropertyWithName:@"im_version" error:&innerError];

              [BaseODataObject setStringValueForSDMEntry:m_SDMEntry withValue:self.im_dview forSDMPropertyWithName:@"im_dview" error:&innerError];

        if (innerError) {

            if (error) {

                *error = innerError;

            }

            return nil;

        }

          }

    return m_SDMEntry;

}

+ (void)loadEntitySchema:(SDMODataServiceDocument *)aService

{

    SDMODataCollection *collectionSchema = [aService.schema getCollectionByName:@"t_keyfig_valCollection" workspaceOfCollection:nil];

    t_keyfig_valEntitySchema = collectionSchema.entitySchema;

}

+ (void)loadLabels:(SDMODataServiceDocument *)aService

{

  NSMutableDictionary *properties = [BaseODataObject getSchemaPropertiesFromCollection:@"t_keyfig_valCollection" andService:aService];

              if (properties) {   

              t_keyfig_valLabels = [NSMutableDictionary dictionary];

                        for (SDMODataPropertyInfo *property in [properties allValues]) {

                            [t_keyfig_valLabels setValue:property.label forKey:property.name];

                        }

              }

              else {

        LOGERROR(@"Failed to load SAP labels from service metadata");

              }

}

+ (NSString *)getLabelForProperty:(NSString *)aPropertyName

{

    return [BaseODataObject getLabelFromDictionary:t_keyfig_valLabels forProperty:aPropertyName];

}

- (void)loadProperties

{

    [super loadProperties];

m_im_pbook = [self getStringValueForSDMPropertyWithName:@"im_pbook"];

m_key_fig_id = [self getStringValueForSDMPropertyWithName:@"key_fig_id"];

m_im_product = [self getStringValueForSDMPropertyWithName:@"im_product"];

m_char_comb = [self getStringValueForSDMPropertyWithName:@"char_comb"];

m_value = [self getStringValueForSDMPropertyWithName:@"value"];

m_colno = [self getStringValueForSDMPropertyWithName:@"colno"];

m_im_groupby = [self getStringValueForSDMPropertyWithName:@"im_groupby"];

m_edit_value = [self getStringValueForSDMPropertyWithName:@"edit_value"];

m_im_location = [self getStringValueForSDMPropertyWithName:@"im_location"];

m_im_version = [self getStringValueForSDMPropertyWithName:@"im_version"];

m_im_dview = [self getStringValueForSDMPropertyWithName:@"im_dview"];

}

+ (NSMutableArray *)createT_keyfig_valEntriesForSDMEntries:(NSMutableArray *)sdmEntries

{

    NSMutableArray *entries = [NSMutableArray array];

    for (SDMODataEntry *entry in sdmEntries) {

        t_keyfig_val *t_keyfig_valObject = [[t_keyfig_val alloc] initWithSDMEntry:entry];

        [entries addObject:t_keyfig_valObject];

    }

    return entries;

}

+ (NSMutableArray *)parseT_keyfig_valEntriesWithData:(NSData *)aData error:(NSError **)error

{

    NSMutableArray *sdmEntries = [BaseEntityType getSDMEntriesForEntitySchema:t_keyfig_valEntitySchema andData:aData error:error];

    if (!sdmEntries) {

    return nil;

    }

return [t_keyfig_val createT_keyfig_valEntriesForSDMEntries:sdmEntries];

}

+ (NSMutableArray *)parseExpandedT_keyfig_valEntriesWithData:(NSData *)aData andServiceDocument:(SDMODataServiceDocument *)aServiceDocument error:(NSError **)error

{

    NSMutableArray *sdmEntries = [BaseEntityType getExpandedSDMEntriesForEntitySchema:t_keyfig_valEntitySchema andData:aData andServiceDocument:aServiceDocument error:error];

    if (!sdmEntries) {

    return nil;

    }

return [t_keyfig_val createT_keyfig_valEntriesForSDMEntries:sdmEntries];

}

+ (t_keyfig_val *)parseT_keyfig_valEntryWithData:(NSData *)aData error:(NSError **)error

{

    NSMutableArray *t_keyfig_valEntries = [t_keyfig_val parseT_keyfig_valEntriesWithData:aData error:error];

    if (!t_keyfig_valEntries) {

    return nil;

    }

    return (t_keyfig_val *)[t_keyfig_val getFirstObjectFromArray:t_keyfig_valEntries];

}

+ (t_keyfig_val *)parseExpandedT_keyfig_valEntryWithData:(NSData *)aData andServiceDocument:(SDMODataServiceDocument *)aServiceDocument error:(NSError **)error

{

NSMutableArray *sdmEntries = [BaseEntityType getExpandedSDMEntriesForEntitySchema:t_keyfig_valEntitySchema andData:aData andServiceDocument:aServiceDocument error:error];

    NSMutableArray *t_keyfig_valEntries = [t_keyfig_val createT_keyfig_valEntriesForSDMEntries:sdmEntries];

          return (t_keyfig_val *)[t_keyfig_val getFirstObjectFromArray:t_keyfig_valEntries];

}

@end

#pragma mark - ZPLANNINGBOOK_0003 Service Proxy

@implementation ZPLANNINGBOOK_0003Service

@synthesize zgwplanning_book_demo3CollectionQuery = m_zgwplanning_book_demo3CollectionQuery;

@synthesize t_columnsCollectionQuery = m_t_columnsCollectionQuery;

@synthesize t_rowsCollectionQuery = m_t_rowsCollectionQuery;

@synthesize t_keyfig_valCollectionQuery = m_t_keyfig_valCollectionQuery;

- (NSString *)getServiceDocumentFilename

{

return ZPLANNINGBOOK_0003_SERVICE_DOCUMENT;

}

- (NSString *)getServiceMetadataFilename

{

return ZPLANNINGBOOK_0003_SERVICE_METADATA;

}

- (void)loadEntitySetQueries

{

          [super loadEntitySetQueries];

    m_zgwplanning_book_demo3CollectionQuery = [self getQueryForRelativePath:@"zgwplanning_book_demo3Collection"];

    m_t_columnsCollectionQuery = [self getQueryForRelativePath:@"t_columnsCollection"];

    m_t_rowsCollectionQuery = [self getQueryForRelativePath:@"t_rowsCollection"];

    m_t_keyfig_valCollectionQuery = [self getQueryForRelativePath:@"t_keyfig_valCollection"];

}

- (void)loadEntitySchemaForAllEntityTypes

{

    [super loadEntitySchemaForAllEntityTypes];

    [zgwplanning_book_demo3 loadEntitySchema:m_serviceDocument];

    [t_columns loadEntitySchema:m_serviceDocument];

    [t_rows loadEntitySchema:m_serviceDocument];

    [t_keyfig_val loadEntitySchema:m_serviceDocument];

}

- (void)loadLabels

{

    [super loadLabels];

    [zgwplanning_book_demo3 loadLabels:m_serviceDocument];

    [t_columns loadLabels:m_serviceDocument];

    [t_rows loadLabels:m_serviceDocument];

    [t_keyfig_val loadLabels:m_serviceDocument];

}

#pragma mark Service Entity Set methods

- (NSMutableArray *)getZgwplanning_book_demo3CollectionWithData:(NSData *)aData error:(NSError **)error

{

return [zgwplanning_book_demo3 parseExpandedZgwplanning_book_demo3EntriesWithData:aData andServiceDocument:self.sdmServiceDocument error:error];

}

- (ODataQuery *)getZgwplanning_book_demo3CollectionEntryQueryWithIm_groupby:(NSString *)im_groupby andIm_dview:(NSString *)im_dview andIm_version:(NSString *)im_version andIm_location:(NSString *)im_location andIm_product:(NSString *)im_product andIm_pbook:(NSString *)im_pbook

{

          im_groupby = [ODataQuery encodeURLParameter:im_groupby];

          im_dview = [ODataQuery encodeURLParameter:im_dview];

          im_version = [ODataQuery encodeURLParameter:im_version];

          im_location = [ODataQuery encodeURLParameter:im_location];

          im_product = [ODataQuery encodeURLParameter:im_product];

          im_pbook = [ODataQuery encodeURLParameter:im_pbook];

NSString *relativePath = [NSString stringWithFormat:@"zgwplanning_book_demo3Collection(im_groupby=%@,im_dview=%@,im_version=%@,im_location=%@,im_product=%@,im_pbook=%@)", im_groupby, im_dview, im_version, im_location, im_product, im_pbook];

          ODataQuery *query = [self getQueryForRelativePath:relativePath];

          return query;

}

- (ODataQuery *)getZgwplanning_book_demo3CollectionEntryQueryTypedWithIm_groupby:(NSString *)im_groupby andIm_dview:(NSString *)im_dview andIm_version:(NSString *)im_version andIm_location:(NSString *)im_location andIm_product:(NSString *)im_product andIm_pbook:(NSString *)im_pbook

{

id <URITypeConverting> converter = [ODataURITypeConverter uniqueInstance];

          NSString *im_groupbyUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:im_groupby]];

          NSString *im_dviewUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:im_dview]];

          NSString *im_versionUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:im_version]];

          NSString *im_locationUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:im_location]];

          NSString *im_productUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:im_product]];

          NSString *im_pbookUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:im_pbook]];

NSString *relativePath = [NSString stringWithFormat:@"zgwplanning_book_demo3Collection(im_groupby=%@,im_dview=%@,im_version=%@,im_location=%@,im_product=%@,im_pbook=%@)", im_groupbyUri, im_dviewUri, im_versionUri, im_locationUri, im_productUri, im_pbookUri];

          ODataQuery *query = [self getQueryForRelativePath:relativePath];

          return query;

}

- (zgwplanning_book_demo3 *)getZgwplanning_book_demo3CollectionEntryWithData:(NSData *)aData error:(NSError **)error

{

return [zgwplanning_book_demo3 parseExpandedZgwplanning_book_demo3EntryWithData:aData andServiceDocument:self.sdmServiceDocument error:error];

}

- (NSMutableArray *)getT_columnsCollectionWithData:(NSData *)aData error:(NSError **)error

{

return [t_columns parseExpandedT_columnsEntriesWithData:aData andServiceDocument:self.sdmServiceDocument error:error];

}

- (ODataQuery *)getT_columnsCollectionEntryQueryWithIm_product:(NSString *)im_product andColno:(NSString *)colno andIm_pbook:(NSString *)im_pbook andIm_version:(NSString *)im_version andIm_dview:(NSString *)im_dview andIm_location:(NSString *)im_location andIm_groupby:(NSString *)im_groupby

{

          im_product = [ODataQuery encodeURLParameter:im_product];

          colno = [ODataQuery encodeURLParameter:colno];

          im_pbook = [ODataQuery encodeURLParameter:im_pbook];

          im_version = [ODataQuery encodeURLParameter:im_version];

          im_dview = [ODataQuery encodeURLParameter:im_dview];

          im_location = [ODataQuery encodeURLParameter:im_location];

          im_groupby = [ODataQuery encodeURLParameter:im_groupby];

NSString *relativePath = [NSString stringWithFormat:@"t_columnsCollection(im_product=%@,colno=%@,im_pbook=%@,im_version=%@,im_dview=%@,im_location=%@,im_groupby=%@)", im_product, colno, im_pbook, im_version, im_dview, im_location, im_groupby];

          ODataQuery *query = [self getQueryForRelativePath:relativePath];

          return query;

}

- (ODataQuery *)getT_columnsCollectionEntryQueryTypedWithIm_product:(NSString *)im_product andColno:(NSString *)colno andIm_pbook:(NSString *)im_pbook andIm_version:(NSString *)im_version andIm_dview:(NSString *)im_dview andIm_location:(NSString *)im_location andIm_groupby:(NSString *)im_groupby

{

id <URITypeConverting> converter = [ODataURITypeConverter uniqueInstance];

          NSString *im_productUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:im_product]];

NSString *colnoUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:colno]];

          NSString *im_pbookUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:im_pbook]];

          NSString *im_versionUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:im_version]];

          NSString *im_dviewUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:im_dview]];

          NSString *im_locationUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:im_location]];

          NSString *im_groupbyUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:im_groupby]];

          NSString *relativePath = [NSString stringWithFormat:@"t_columnsCollection(im_product=%@,colno=%@,im_pbook=%@,im_version=%@,im_dview=%@,im_location=%@,im_groupby=%@)", im_productUri, colnoUri, im_pbookUri, im_versionUri, im_dviewUri, im_locationUri, im_groupbyUri];

          ODataQuery *query = [self getQueryForRelativePath:relativePath];

          return query;

}

- (t_columns *)getT_columnsCollectionEntryWithData:(NSData *)aData error:(NSError **)error

{

return [t_columns parseExpandedT_columnsEntryWithData:aData andServiceDocument:self.sdmServiceDocument error:error];

}

- (NSMutableArray *)getT_rowsCollectionWithData:(NSData *)aData error:(NSError **)error

{

return [t_rows parseExpandedT_rowsEntriesWithData:aData andServiceDocument:self.sdmServiceDocument error:error];

}

- (ODataQuery *)getT_rowsCollectionEntryQueryWithIm_location:(NSString *)im_location andIm_dview:(NSString *)im_dview andKey_fig_id:(NSString *)key_fig_id andIm_version:(NSString *)im_version andChar_comb:(NSString *)char_comb andIm_groupby:(NSString *)im_groupby andIm_pbook:(NSString *)im_pbook andIm_product:(NSString *)im_product

{

          im_location = [ODataQuery encodeURLParameter:im_location];

          im_dview = [ODataQuery encodeURLParameter:im_dview];

          key_fig_id = [ODataQuery encodeURLParameter:key_fig_id];

          im_version = [ODataQuery encodeURLParameter:im_version];

          char_comb = [ODataQuery encodeURLParameter:char_comb];

          im_groupby = [ODataQuery encodeURLParameter:im_groupby];

          im_pbook = [ODataQuery encodeURLParameter:im_pbook];

          im_product = [ODataQuery encodeURLParameter:im_product];

NSString *relativePath = [NSString stringWithFormat:@"t_rowsCollection(im_location=%@,im_dview=%@,key_fig_id=%@,im_version=%@,char_comb=%@,im_groupby=%@,im_pbook=%@,im_product=%@)", im_location, im_dview, key_fig_id, im_version, char_comb, im_groupby, im_pbook, im_product];

          ODataQuery *query = [self getQueryForRelativePath:relativePath];

          return query;

}

- (ODataQuery *)getT_rowsCollectionEntryQueryTypedWithIm_location:(NSString *)im_location andIm_dview:(NSString *)im_dview andKey_fig_id:(NSString *)key_fig_id andIm_version:(NSString *)im_version andChar_comb:(NSString *)char_comb andIm_groupby:(NSString *)im_groupby andIm_pbook:(NSString *)im_pbook andIm_product:(NSString *)im_product

{

id <URITypeConverting> converter = [ODataURITypeConverter uniqueInstance];

          NSString *im_locationUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:im_location]];

          NSString *im_dviewUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:im_dview]];

          NSString *key_fig_idUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:key_fig_id]];

          NSString *im_versionUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:im_version]];

          NSString *char_combUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:char_comb]];

          NSString *im_groupbyUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:im_groupby]];

          NSString *im_pbookUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:im_pbook]];

          NSString *im_productUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:im_product]];

          NSString *relativePath = [NSString stringWithFormat:@"t_rowsCollection(im_location=%@,im_dview=%@,key_fig_id=%@,im_version=%@,char_comb=%@,im_groupby=%@,im_pbook=%@,im_product=%@)", im_locationUri, im_dviewUri, key_fig_idUri, im_versionUri, char_combUri, im_groupbyUri, im_pbookUri, im_productUri];

          ODataQuery *query = [self getQueryForRelativePath:relativePath];

          return query;

}

- (t_rows *)getT_rowsCollectionEntryWithData:(NSData *)aData error:(NSError **)error

{

return [t_rows parseExpandedT_rowsEntryWithData:aData andServiceDocument:self.sdmServiceDocument error:error];

}

- (NSMutableArray *)getT_keyfig_valCollectionWithData:(NSData *)aData error:(NSError **)error

{

return [t_keyfig_val parseExpandedT_keyfig_valEntriesWithData:aData andServiceDocument:self.sdmServiceDocument error:error];

}

- (ODataQuery *)getT_keyfig_valCollectionEntryQueryWithIm_pbook:(NSString *)im_pbook andIm_product:(NSString *)im_product andChar_comb:(NSString *)char_comb andColno:(NSString *)colno andIm_groupby:(NSString *)im_groupby andIm_location:(NSString *)im_location andIm_version:(NSString *)im_version andIm_dview:(NSString *)im_dview

{

          im_pbook = [ODataQuery encodeURLParameter:im_pbook];

          im_product = [ODataQuery encodeURLParameter:im_product];

          char_comb = [ODataQuery encodeURLParameter:char_comb];

          colno = [ODataQuery encodeURLParameter:colno];

          im_groupby = [ODataQuery encodeURLParameter:im_groupby];

          im_location = [ODataQuery encodeURLParameter:im_location];

          im_version = [ODataQuery encodeURLParameter:im_version];

          im_dview = [ODataQuery encodeURLParameter:im_dview];

NSString *relativePath = [NSString stringWithFormat:@"t_keyfig_valCollection(im_pbook=%@,im_product=%@,char_comb=%@,colno=%@,im_groupby=%@,im_location=%@,im_version=%@,im_dview=%@)", im_pbook, im_product, char_comb, colno, im_groupby, im_location, im_version, im_dview];

          ODataQuery *query = [self getQueryForRelativePath:relativePath];

          return query;

}

- (ODataQuery *)getT_keyfig_valCollectionEntryQueryTypedWithIm_pbook:(NSString *)im_pbook andIm_product:(NSString *)im_product andChar_comb:(NSString *)char_comb andColno:(NSString *)colno andIm_groupby:(NSString *)im_groupby andIm_location:(NSString *)im_location andIm_version:(NSString *)im_version andIm_dview:(NSString *)im_dview

{

id <URITypeConverting> converter = [ODataURITypeConverter uniqueInstance];

          NSString *im_pbookUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:im_pbook]];

          NSString *im_productUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:im_product]];

          NSString *char_combUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:char_comb]];

NSString *colnoUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:colno]];

          NSString *im_groupbyUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:im_groupby]];

          NSString *im_locationUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:im_location]];

          NSString *im_versionUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:im_version]];

          NSString *im_dviewUri = [ODataQuery encodeURLParameter:[converter convertToEdmStringURI:im_dview]];

          NSString *relativePath = [NSString stringWithFormat:@"t_keyfig_valCollection(im_pbook=%@,im_product=%@,char_comb=%@,colno=%@,im_groupby=%@,im_location=%@,im_version=%@,im_dview=%@)", im_pbookUri, im_productUri, char_combUri, colnoUri, im_groupbyUri, im_locationUri, im_versionUri, im_dviewUri];

          ODataQuery *query = [self getQueryForRelativePath:relativePath];

          return query;

}

- (t_keyfig_val *)getT_keyfig_valCollectionEntryWithData:(NSData *)aData error:(NSError **)error

{

return [t_keyfig_val parseExpandedT_keyfig_valEntryWithData:aData andServiceDocument:self.sdmServiceDocument error:error];

}

#pragma mark Service Function Import methods

@end