Package com.alibaba.wasp

Examples of com.alibaba.wasp.TransactionParseException


    for (DMLAction dmlAction : dmlActions) {
      if(entityGroupLocation == null) {
        entityGroupLocation = dmlAction.getEntityGroupLocation();
      } else {
        if(entityGroupLocation.compareTo(dmlAction.getEntityGroupLocation()) != 0) {
          throw new TransactionParseException("child table row must be the same entityGoup with parent row. it means value of egk row must be same");
        }
      }
    }
    transactionAction.setEntityGroupLocation(entityGroupLocation);
    return transactionAction;
View Full Code Here


    String parentTable = null;
    for (String checkTable : checkTables) {
      FTable table = reader.getSchema(checkTable);
      if(table.getTableType() == FTable.TableType.ROOT) {
        if(parentTable != null && !parentTable.equals(table.getTableName())) {
          throw new TransactionParseException("in a transaction can be no more than one parent table");
        } else {
          parentTable = table.getTableName();
        }
      } else {
        if(parentTable != null && (!parentTable.equals(table.getParentName()))) {
          throw new TransactionParseException("in a transaction can be no more than one parent table. and others must be the parent's child");
        } else {
          parentTable = table.getParentName();
        }
      }
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.TransactionParseException

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.