Examples of schemaTable()


Examples of adipe.translate.ra.Schema.schemaTable()

                // also add labels with column names
                // TODO refactor this and move to QuietSpreadsheetLayout
                Result result = inputTable.execute();
                ColumnLabels labels = result.getLabels();
                String tableName = tableNamesIter.next();
                ColumnNamesImpl cn = databaseSchema.schemaTable(tableName);
                ColumnIndexesImpl ci = cn.asColumnIndexesLookup();
                Iterator<SimpleColumn> scs = ci.iterator();
                for (Column c : result.getResultRelation()) {
                    SimpleColumn sc = scs.next();
                    labels.put(c, tableName+"."+sc.name());
View Full Code Here

Examples of adipe.translate.ra.Schema.schemaTable()

        Schema s = Schemas.fromDDL(ddlStatement);

        assertThat(s.tableNames())
            .containsOnly(tableName);

        assertThat(s.schemaTable(tableName).namedColumns())
            .usingElementComparator(COMPARE_BY_NAME_AND_TYPE)
            .containsExactly(expectedColumns);
    }

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.