Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void doDML(int i, TransactionEvent transactionEvent) {
- if (i == DML_UPDATE || i == DML_INSERT) {
- // Timestamp tstmp = new Timestamp(System.currentTimeMillis());
- Calendar cal = Calendar.getInstance();
- cal.setTime(new Date(System.currentTimeMillis()));
- cal.set(Calendar.MILLISECOND, 0);
- Timestamp tstmp = new Timestamp(cal.getTimeInMillis());
- this.setAttribute("LmDate", tstmp);
- String userName = (String)ADFContext.getCurrent().getSessionScope().get("userName");
- this.setAttribute("LmName", userName);
- }
- super.doDML(i, transactionEvent);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement