Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

getEntityState()

Shahzad Ahmed KhanApr 28 2014 — edited Apr 30 2014

Hello All,

I am new in adf and using jdev 11.1.2.3.

I am trying to get Entity State by calling getEntityState(). I am sure it return the state of entity not the row in view object. Here is my code to get state

public String getRowStatus(Row row) {
    if(row==null){
        System.out.println("************** Row is null *********************** ");
        return "Unmodified";
    }
        ViewRowImpl rwImpl = (ViewRowImpl)row;
       
        String rwStatus = translateStatusToString(rwImpl.getEntity(0).getEntityState());
        return rwStatus;
    }

I am passing current row to row param.

This is returning status of current row not entity. But on some other modules it is return status of entity. I am confused which one is correct.

Any suggestion ....

Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 28 2014
Added on Apr 28 2014
8 comments
518 views