Advertisement
psi_mmobile

Untitled

Aug 12th, 2020
1,560
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.68 KB | None | 0 0
  1.     protected void doDML(int i, TransactionEvent transactionEvent) {
  2.         if (i == DML_UPDATE || i == DML_INSERT) {
  3.             //            Timestamp tstmp = new Timestamp(System.currentTimeMillis());
  4.             Calendar cal = Calendar.getInstance();
  5.             cal.setTime(new Date(System.currentTimeMillis()));
  6.             cal.set(Calendar.MILLISECOND, 0);
  7.             Timestamp tstmp = new Timestamp(cal.getTimeInMillis());
  8.             this.setAttribute("LmDate", tstmp);
  9.             String userName = (String)ADFContext.getCurrent().getSessionScope().get("userName");
  10.             this.setAttribute("LmName", userName);
  11.         }
  12.         super.doDML(i, transactionEvent);
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement