Examples of UpdateInfo


Examples of org.teiid.query.validator.UpdateValidator.UpdateInfo

     
      UpdateValidator uv = new UpdateValidator(md, UpdateType.INHERENT, UpdateType.INHERENT, UpdateType.INHERENT);
      GroupSymbol gs = new GroupSymbol(vGroup);
      ResolverUtil.resolveGroup(gs, md);
      uv.validate(command, ResolverUtil.resolveElementsInGroup(gs, md));
      UpdateInfo info = uv.getUpdateInfo();
      assertEquals(uv.getReport().getFailureMessage(), failInsert, info.isInsertValidationError());
      assertEquals(uv.getReport().getFailureMessage(), failUpdate, info.isUpdateValidationError());
      assertEquals(uv.getReport().getFailureMessage(), failDelete, info.isDeleteValidationError());
      return uv;
    } catch (TeiidException e) {
      throw new RuntimeException(e);
    }
  }
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.