Find the modified attributes

   protected void doDML(int i, TransactionEvent transactionEvent) {
        byte state = this.getEntityState();
        if (state == this.STATUS_MODIFIED) {
            System.out.println(this.getEmployeeId().toString() +
                               " Has been Modified ");
            //Object[] modifiedAttributes =this.getAttributeNames();
            if (this.isAttributeChanged("FirstName")) {
                System.out.println(" FirstName Modified");
            }
            if (this.isAttributeChanged("LastName")) {
                System.out.println(" FirstName Modified");
            }


        }
        super.doDML(i, transactionEvent);
    }

Comments

Popular posts from this blog

Another user has changed the row with primary key oracle.jbo.Key[12 ].

Working With File Throgh WebUtill

Reading From File