Package org.teiid.query.unittest

Examples of org.teiid.query.unittest.FakeMetadataStore


        List pm1g1e = FakeMetadataFactory.createElements(pm1g1,
                                    new String[] { "e1", "e2" }, //$NON-NLS-1$ //$NON-NLS-2$
                                    new String[] { DataTypeManager.DefaultDataTypes.BIG_INTEGER, DataTypeManager.DefaultDataTypes.FLOAT});
                               
        FakeMetadataStore store = new FakeMetadataStore();
        store.addObject(pm1);
        store.addObject(pm1g1);    
        store.addObjects(pm1g1e);
       
        FakeMetadataFacade metadata = new FakeMetadataFacade(store);
       
        HardcodedDataManager dataManager = new HardcodedDataManager();
        dataManager.addData("INSERT INTO pm1.g1 (pm1.g1.e1, pm1.g1.e2) VALUES (?, ?)"//$NON-NLS-1$
View Full Code Here


        caps.setFunctionSupport(SourceSystemFunctions.CONVERT, true);
        List pm1g1e = FakeMetadataFactory.createElements(pm1g1,
                                    new String[] { "e1", "e2" }, //$NON-NLS-1$ //$NON-NLS-2$
                                    new String[] { DataTypeManager.DefaultDataTypes.BIG_INTEGER, DataTypeManager.DefaultDataTypes.FLOAT});
                               
        FakeMetadataStore store = new FakeMetadataStore();
        store.addObject(pm1);
        store.addObject(pm1g1);    
        store.addObjects(pm1g1e);
       
        FakeMetadataFacade metadata = new FakeMetadataFacade(store);
       
        HardcodedDataManager dataManager = new HardcodedDataManager();
        dataManager.addData("INSERT INTO pm1.g1 (pm1.g1.e1, pm1.g1.e2) VALUES (1, 1.0)"//$NON-NLS-1$
View Full Code Here

TOP

Related Classes of org.teiid.query.unittest.FakeMetadataStore

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.