Examples of KeyGeneratorDAO


Examples of org.uengine.persistence.dao.KeyGeneratorDAO

  public Object transform(ProcessInstance instance, Map parameterMap, Map options) {
    Object result = null;
    try {
      DAOFactory df = DAOFactory.getInstance(instance.getProcessTransactionContext());

      KeyGeneratorDAO kgd = df.createKeyGenerator(getSequence(), new HashMap());
      kgd.select();
      kgd.next();
      result = kgd.getKeyNumber();
     
    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
View Full Code Here

Examples of org.uengine.persistence.dao.KeyGeneratorDAO

     
      conn = instance.getProcessTransactionContext().getConnection();

      DAOFactory daoFactory = DAOFactory.getInstance(instance.getProcessTransactionContext());
      Timestamp now = new Timestamp(daoFactory.getNow().getTimeInMillis());
      KeyGeneratorDAO kgd = daoFactory.createKeyGenerator("DOC_COMMENTS", new HashMap());
      kgd.select();
      kgd.next();
      Number seqresult = kgd.getKeyNumber();
     
      sql = (
          "INSERT INTO doc_comments ("
          + "id, instance_id, contents, opt_type, empno, empname, emptitle, "
          + "tracingtag, created_date, created_by, updated_date, updated_by, apprtitle"
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.