Package org.uengine.kernel

Examples of org.uengine.kernel.TransactionListener


        con.setAutoCommit(false);
         
        setSharedContext(sharedContextName, con);
 
        addTransactionListener(
          new TransactionListener(){
 
            public void beforeCommit(TransactionContext tx) throws Exception {
              Connection con = (Connection)tx.getSharedContext(sharedContextName);
              try{
                con.commit();
View Full Code Here


   
    if(!dao.getImplementationObject().isAutoSQLGeneration()){ //'isAutoSQLGeneration()' was simply used for flagging whether a transaction listener has been attached.
      final IDAO finalDAO = dao;
      dao.set(getCorrelationFieldName(), ((EJBProcessInstance)instance).getProcessInstanceDAO().get(getCorrelatedFieldName()));
     
      instance.getProcessTransactionContext().addTransactionListener(new TransactionListener(){

        public void beforeCommit(TransactionContext tx) throws Exception {
          finalDAO.getImplementationObject().setTableName(getTableName());
          finalDAO.getImplementationObject().setSqlStmt(null);
          finalDAO.getImplementationObject().setAutoSQLGeneration(true);
View Full Code Here

        if (instance != null) {
         
          if (item.getInstanceIsDeleted() == 0) {
            if (item.getStartDate().getTime() <= now.getTimeInMillis()) {
             
              instance.getProcessTransactionContext().addTransactionListener(new TransactionListener() {
               
                public void beforeRollback(TransactionContext tx) throws Exception {
                }
               
                public void beforeCommit(TransactionContext tx) throws Exception
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.