Saturday, May 11, 2013

Adf 11G : How to Edit a row programatically from AMImpl?


Adf 11G : How to Edit a row programatically from AMImpl?


public void editStudent(Integer roll){
        Key key = StudentImpl.createPrimaryKey(roll.toString());
         StudentImpl studentRow =
            (StudentImpl)StudentImpl.getDefinitionObject().findByPrimaryKey(getDBTransaction(), key);
         
            studentRow.setEmail("nj@google.com");
            this.getDBTransaction().commit();
        }