Package com.alvazan.orm.parser.antlr

Examples of com.alvazan.orm.parser.antlr.InfoForWiring


  }
 
  private SpiMetaQuery newsetupByVisitingTreeImpl(String query, String targetTable, MetaLoader mgr, String errorMsg) {
    SpiMetaQueryImpl spiMetaQuery = factory.get();

    InfoForWiring wiring = new InfoForWiring(query, targetTable);
    MetaFacade facade = new MetaFacadeImpl(mgr, metaInfo);
    ExpressionNode newTree = compiler.compileSql(query, wiring, facade);
   
    List<ViewInfo> allViews = wiring.getAllViews();
    List<ViewInfo> joinedViews = wiring.getJoinedViews();
    List<ViewInfo> notYetJoinedViews = new ArrayList<ViewInfo>();
    for(ViewInfo view : allViews) {
      if(!joinedViews.contains(view))
        notYetJoinedViews.add(view);
    }
   
    spiMetaQuery.setASTTree(newTree, joinedViews, notYetJoinedViews);
    spiMetaQuery.setQuery(query);
    spiMetaQuery.setParameterFieldMap(wiring.getParameterFieldMap());
    spiMetaQuery.setUpdateList(wiring.getUpdateList());
    spiMetaQuery.setQueryType(wiring.getQueryType());
   
    return spiMetaQuery;
  }
View Full Code Here


  @Before
  public void setup() {
    Injector injector = Guice.createInjector(new ProductionBindings(DbTypeEnum.IN_MEMORY, null));
    scanner = injector.getInstance(ScannerSql.class);
    wiring = new InfoForWiring("<thequery>", null);
    facade = new MockFacade();
  }
View Full Code Here

  }
 
  private SpiMetaQuery newsetupByVisitingTreeImpl(String query, String targetTable, MetaLoader mgr, String errorMsg) {
    SpiMetaQueryImpl spiMetaQuery = factory.get();

    InfoForWiring wiring = new InfoForWiring(query, targetTable);
    MetaFacade facade = new MetaFacadeImpl(mgr, metaInfo);
    ExpressionNode newTree = compiler.compileSql(query, wiring, facade);
   
    List<ViewInfo> allViews = wiring.getAllViews();
    List<ViewInfo> joinedViews = wiring.getJoinedViews();
    List<ViewInfo> notYetJoinedViews = new ArrayList<ViewInfo>();
    for(ViewInfo view : allViews) {
      if(!joinedViews.contains(view))
        notYetJoinedViews.add(view);
    }
   
    spiMetaQuery.setASTTree(newTree, joinedViews, notYetJoinedViews);
    spiMetaQuery.setQuery(query);
    spiMetaQuery.setParameterFieldMap(wiring.getParameterFieldMap());
   
    return spiMetaQuery;
  }
View Full Code Here

  }
 
  private SpiMetaQuery newsetupByVisitingTreeImpl(String query, String targetTable, MetaLoader mgr, String errorMsg) {
    SpiMetaQueryImpl spiMetaQuery = factory.get();

    InfoForWiring wiring = new InfoForWiring(query, targetTable);
    MetaFacade facade = new MetaFacadeImpl(mgr, metaInfo);
    ExpressionNode newTree = compiler.compileSql(query, wiring, facade);
   
    List<ViewInfo> allViews = wiring.getAllViews();
    List<ViewInfo> joinedViews = wiring.getJoinedViews();
    List<ViewInfo> notYetJoinedViews = new ArrayList<ViewInfo>();
    for(ViewInfo view : allViews) {
      if(!joinedViews.contains(view))
        notYetJoinedViews.add(view);
    }
   
    spiMetaQuery.setASTTree(newTree, joinedViews, notYetJoinedViews);
    spiMetaQuery.setQuery(query);
    spiMetaQuery.setParameterFieldMap(wiring.getParameterFieldMap());
    spiMetaQuery.setUpdateList(wiring.getUpdateList());
   
    return spiMetaQuery;
  }
View Full Code Here

TOP

Related Classes of com.alvazan.orm.parser.antlr.InfoForWiring

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.