Skip to Content
author's profile photo Former Member
Former Member

Status of a row in java


I'm doing an application and I whant obtain the status of a row in the client on run time. how can do it?


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 12:01 PM

    Hello Juan,

    you want to get the status of a row?

    Well, I guess you want to read a single row? The MDK gives you a great overview about the MI Persistence API - there you fiond exactly what you are looking for.

    In general: you have a SyncBO. If you for example want to print the status of the top rows of the sync BO, the coding would be pretty much like:

    try {

    SyncBoDescriptor sb_Descriptor = SmartSyncRuntime.getInstance().getSyncBoDescriptorFacade().GetSyncBoDescriptor(<<Name_Of_SyncBO>>);

    SyncBoDataFacade sb_DataFacade = SmartSyncRuntime,getInstance().getSyncBODataFacade(VisibilityType.SEPARATED);

    SyncBoCollection sb_List = sb_DataFacade.getSyncBOs(sb_Descriptor);

    MeIterator iter = sb_List.iterator();

    while (iter.hasNext()) {

    SyncBo syncBO = (SyncBo);

    System.out.println("Status :"+syncBo.getStatus().toString());

    } //end while

    } catch (PersistenceException ex) {

    //whatever you will do here


    Well, I hope this gives you an idea how to access separate values in the code.

    If you need access to a single item of a row, you can easily access it with its RowDescriptor method for example. But as I said in the beginning of my answer, it makes sence to have a deep look into the MDK here, this will give you a great overview.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.