Advertisement
psi_mmobile

Untitled

Nov 20th, 2020
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. protected void doDML(int operation, TransactionEvent e) {
  2. if (operation == DML_UPDATE || operation == 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(operation, e);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement