Tuesday, December 17, 2013

Java : OnBeforeInsert

  protected void onBeforeInsert()
  {
    super.onBeforeInsert();
    setCREATED_ON(new Date());
    setCREATED_BY(BSF.getUser().substring(BSF.getUser().indexOf("=") + 1, BSF.getUser().indexOf(",")) + "[" + BSF.getOrganization().substring(BSF.getOrganization().indexOf("=") + 1, BSF.getOrganization().indexOf(",")) + "]");
  }

  protected void onBeforeUpdate()
  {
    super.onBeforeUpdate();
    setLAST_MODIFIED_ON(new Date());
    setLAST_MODIFIED_BY(BSF.getUser().substring(BSF.getUser().indexOf("=") + 1, BSF.getUser().indexOf(",")) + "[" + BSF.getOrganization().substring(BSF.getOrganization().indexOf("=") + 1, BSF.getOrganization().indexOf(",")) + "]");
  }

3 comments:

  1. For the excellent company Begin with the internet site, the customer service over the cell phone, to the detailed care they deliver in your presence
    leather jacket

    ReplyDelete
  2. Despite working with a complex workflow, they were able to improve and understand the process very quickly.
    UX design consultant

    ReplyDelete
  3. The advanced compensated media applications are customized specifically to your business as well as designed to maximize your visibility as well as usefulness on each applicable advertising platform.
    San Francisco design firms

    ReplyDelete