Skip to Content
avatar image
Former Member

Deprecated MI APIs

Hi all,

Can anyone tell me if is there any SmartSync Examples like "MDK_smartsync_inventoryAWT.jar" that do not use deprecated API's like the ones below? (use the instead) ( instead)


Thx for the attention,


Ricardo Bernardino.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jun 11, 2008 at 11:31 AM

    never mind, just found it!

    for those interested here is acode snippet:

    //Create the query: search for top row C field of testIndex + it's corresponding child row

    SmartSyncJQueryFactory queryFactory = smartsyncRuntime.getJQueryFactory();

    JQueryAttribute attributeTopKey = queryFactory.createAttribute(topKeyFieldDesc002);

    JQueryAttribute attributeChildKey = queryFactory.createAttribute(c10KeyFieldDesc002);

    JQueryAttribute attributeTopC = queryFactory.createAttribute(topCFieldDesc002);

    JQueryCondition linkCondition = queryFactory.createLinkCondition(topRowDesc002, c10RowDesc002);

    JQueryCondition simpleCondition = queryFactory.createCondition

    (attributeTopC, RelationalOperatorType.EQUALS, testFieldValue+testIndex);

    JQueryCondition compositeCondition = queryFactory.createCondition

    (new JQueryCondition[]{linkCondition, simpleCondition},


    JQuery query = queryFactory.createQuery

    (new JQueryAttribute[]{attributeTopKey, attributeChildKey, attributeTopC},


    //Start the query


    JQueryResult queryResult = dataFacade.executeQuery(query);//this will not create objects


    for(MeIterator queryIt = queryResult.iterator(); queryIt.hasNext(); ){

    //This will create objects: lazy loading

    JQueryResultRow resultRow = (JQueryResultRow);

    String selectedTopKeyValue = (String) resultRow.get(attributeTopKey);

    String selectedChildKeyValue = (String) resultRow.get(attributeChildKey);

    String selectedTopCValue = (String) resultRow.get(attributeTopC);







    Add comment
    10|10000 characters needed characters exceeded