Package org.apache.metamodel

Examples of org.apache.metamodel.MockDataContext


    private Column col2;

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        dc = new MockDataContext("sch", "tab1", "foo");
        MutableSchema schema = (MutableSchema) dc.getDefaultSchema();
        table1 = schema.getTables()[0];
        schema.addTable(new MutableTable("tab2").setSchema(schema));
        table2 = schema.getTableByName("tab2");
        col1 = table1.getColumns()[0];
View Full Code Here


    private MockDataContext dc;

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        dc = new MockDataContext("sch", "tbl", "foo");

        // set 'baz' column to an integer column (to influence query generation)
        MutableColumn col = (MutableColumn) dc.getColumnByQualifiedLabel("tbl.baz");
        col.setType(ColumnType.INTEGER);
    };
View Full Code Here

TOP

Related Classes of org.apache.metamodel.MockDataContext

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.