Package org.teiid.dqp.internal.process.multisource

Examples of org.teiid.dqp.internal.process.multisource.MultiSourceMetadataWrapper


       
        // Check for multi-source models and further wrap the metadata interface
        Set<String> multiSourceModelList = workContext.getVDB().getMultiSourceModelNames();
        if(multiSourceModelList != null && multiSourceModelList.size() > 0) {
          this.multiSourceModels = multiSourceModelList;
            this.metadata = new MultiSourceMetadataWrapper(this.metadata, this.multiSourceModels);
        }
       
        TempMetadataAdapter tma = new TempMetadataAdapter(metadata, this.tempTableStore.getMetadataStore());
        tma.setSession(true);
        this.metadata = tma;
View Full Code Here


        this.metadata = workContext.getVDB().getAttachment(QueryMetadataInterface.class);
       
        // If multi-source, use the multi-source wrapper as well
        Set<String> multiModels = workContext.getVDB().getMultiSourceModelNames();
        if(multiModels != null && multiModels.size() > 0) {
            this.metadata = new MultiSourceMetadataWrapper(this.metadata, multiModels);
        }

        RequestWorkItem workItem = null;
        try {
          workItem = requestManager.getRequestWorkItem(requestID);
View Full Code Here

    }
   
    @Test public void testDisallowUpdateOnMultisourceElement() throws Exception
      Set<String> models = new HashSet<String>();
      models.add("pm1");
        ValidatorReport report = helpValidateInModeler("pm1.vsp36", "UPDATE PM1.G1 set SOURCE_NAME='blah'", new MultiSourceMetadataWrapper(FakeMetadataFactory.example1(), models))//$NON-NLS-1$
        assertEquals(report.toString(), 1, report.getItems().size());
    }
View Full Code Here

    }
   
    @Test public void testDisallowProjectIntoMultiSource() throws Exception
      Set<String> models = new HashSet<String>();
      models.add("pm1");
        helpValidate("insert into pm1.g1 select * from pm1.g1", new String[] {"pm1.g1"}, new MultiSourceMetadataWrapper(FakeMetadataFactory.example1(), models))//$NON-NLS-1$
    }
View Full Code Here

    }
   
    @Test public void testMultiSourceProcValue() throws Exception
      Set<String> models = new HashSet<String>();
      models.add("MultiModel");
        helpValidate("exec MultiModel.proc('a', (select 1))", new String[] {"MultiModel.proc.source_name"}, new MultiSourceMetadataWrapper(FakeMetadataFactory.exampleMultiBinding(), models))//$NON-NLS-1$
    }
View Full Code Here

TOP

Related Classes of org.teiid.dqp.internal.process.multisource.MultiSourceMetadataWrapper

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.