Saturday, May 11, 2013

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

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

 public void removeStudent(Integer roll){
        Key key = StudentImpl.createPrimaryKey(roll.toString());
         StudentImpl studentRow =
            (StudentImpl)StudentImpl.getDefinitionObject().findByPrimaryKey(getDBTransaction(), key);
         
            studentRow.remove();
            this.getDBTransaction().commit();
        }