Package com.alibaba.wasp.plan

Examples of com.alibaba.wasp.plan.DMLTransactionPlan


      }
    }
    String parentTable = checkTablesAndGetParent(checkTables, context);
    List<TransactionAction> transactions = new ArrayList<TransactionAction>();
    transactions.add(createTransactionAction(parentTable, dmlActions));
    DMLTransactionPlan transactionPlan = new DMLTransactionPlan(transactions);
    return transactionPlan;
  }
View Full Code Here


      WaspParser druidParser = new WaspParser(ddlParser, dqlParser, dmlParser);

      DruidParserTestUtil.loadTable(context, druidParser.getDruidDDLParser(),
          fmetaServices);

      DMLTransactionPlan transactionPlan = getTransactionPlan(druidParser);
      List<TransactionAction> actions = transactionPlan.getActions();
      Assert.assertEquals(actions.size(), 1);

      List<DMLAction> dmlActions = actions.get(0).getDmlActions();
      Assert.assertEquals(dmlActions.size(), 2);
View Full Code Here

    }

    ParseContext context = new ParseContext();
    context.setTsr(reader);

    DMLTransactionPlan transactionPlan = WaspParser.generateTransactionPlan(
        context, dmlPlans);
    return transactionPlan;
  }
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.plan.DMLTransactionPlan

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.