Package org.uengine.kernel

Examples of org.uengine.kernel.TransactionListener


      pd.setName(name);
      pd.getImplementationObject().setKeyField("DEFID");

      pd.select();
      if(!pd.next()) throw new UEngineException("No Such Process Definition named '" + name +"'.");
      tc.addTransactionListener(new TransactionListener(){

        public void beforeCommit(TransactionContext tx) throws Exception {
          pd.getImplementationObject().setTableName("bpm_procdef");
          pd.getImplementationObject().createUpdateSql();
          pd.update();
View Full Code Here


      pd.setObjType(objType);
      pd.getImplementationObject().setKeyField("DEFID");

      pd.select();
      if(!pd.next()) throw new UEngineException("No Such Process Definition named '" + name +"'.");
      tc.addTransactionListener(new TransactionListener(){

        public void beforeCommit(TransactionContext tx) throws Exception {
          pd.getImplementationObject().setTableName("bpm_procdef");
          pd.getImplementationObject().createUpdateSql();
          pd.update();
View Full Code Here

      pd.setAlias(alias);
      pd.getImplementationObject().setKeyField("DEFID");

      pd.select();
      if(!pd.next()) throw new UEngineException("No Such Process Definition aliased '" + alias +"'.");
      tc.addTransactionListener(new TransactionListener(){

        public void beforeCommit(TransactionContext tx) throws Exception {
          pd.getImplementationObject().setTableName("bpm_procdef");
          pd.getImplementationObject().createUpdateSql();
          pd.update();
View Full Code Here

     
      ArrayList proxyList = new DAO2ArrayListAdapter(pd);
     
      pd.getImplementationObject().setTableName("BPM_PROCDEFVER");
      pd.getImplementationObject().setKeyField("DEFVERID");
      tc.addTransactionListener(new TransactionListener(){

        public void beforeCommit(TransactionContext tx) throws Exception {
          pd.getImplementationObject().createUpdateSql();
          pd.update();
        }
View Full Code Here

    if(valueMap==null) valueMap = new HashMap();
    if(value==null) valueMap.remove(fieldName);
    valueMap.put(fieldName, value);
   
    if(!instance.getProcessTransactionContext().getTransactionListeners().contains(this))
      instance.getProcessTransactionContext().addTransactionListener(new TransactionListener(){

        public void beforeCommit(TransactionContext tx) throws Exception {
          saveValueMap();
        }
View Full Code Here

     
      String sharedContextKey = tableName + "@" + keyFieldValue;
      sharedContextKey = sharedContextKey.toUpperCase();
     
      setSharedContext(sharedContextKey, dao);
      addTransactionListener(new TransactionListener(){

        public void beforeCommit(TransactionContext tx) throws Exception {
          if(isNew)
            dao.getImplementationObject().createInsertSql();
          else
View Full Code Here

   
    ForLoop beforeCommitLoop = new ForLoop(){

      public void logic(Object target) {
       
        TransactionListener tl = (TransactionListener)target;
        try {
          tl.beforeCommit(tx);
        } catch (Exception e) {
          throw new RuntimeException(e);
        }       
      }     
    };
View Full Code Here

    ForLoop afterCommitLoop = new ForLoop(){

      public void logic(Object target) {

        TransactionListener tl = (TransactionListener)target;
        try {
          tl.afterCommit(tx);
        } catch (Exception e) {
          throw new RuntimeException(e);
        }       
      }     
    };
View Full Code Here

    ForLoop afterRollBackLoop = new ForLoop(){

      public void logic(Object target) {

        TransactionListener tl = (TransactionListener)target;
        try {
          tl.afterRollback(tx);
        } catch (Exception e) {
          throw new RuntimeException(e);
        }       
      }     
    };
View Full Code Here

    ForLoop beforeRollBackLoop = new ForLoop(){

      public void logic(Object target) {

        TransactionListener tl = (TransactionListener)target;
        try {
          tl.beforeRollback(tx);
        } catch (Exception e) {
          throw new RuntimeException(e);
        }       
      }     
    };
View Full Code Here

TOP

Related Classes of org.uengine.kernel.TransactionListener

Copyright © 2018 www.massapicom. 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.