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. Despite working with a complex workflow, they were able to improve and understand the process very quickly.
    UX design consultant

    ReplyDelete
  2. 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
  3. This written piece gives fastidious understanding yet.It’s amazing in support of me to truly have a web site that is valuable meant for my knowledge
    San Francisco web design company

    ReplyDelete