Package org.eobjects.metamodel.create

Examples of org.eobjects.metamodel.create.TableCreationBuilder


        final Schema schema = dataContext.getDefaultSchema();
        dataContext.executeUpdate(new UpdateScript() {
          @Override
          public void run(UpdateCallback callback) {
            TableCreationBuilder tableBuilder = callback.createTable(schema, "table");
            for (String header : headers) {
              tableBuilder.withColumn(header);
            }
            tableBuilder.execute();
          }
        });

        Table table = dataContext.getDefaultSchema().getTables()[0];
View Full Code Here


    if (table == null) {
      final MutableRef<Table> tableRef = new MutableRef<Table>();
      dataContext.executeUpdate(new UpdateScript() {
        @Override
        public void run(UpdateCallback callback) {
          TableCreationBuilder tableBuilder = callback.createTable(schema, sheetName);
          for (InputColumn<?> inputColumn : columns) {
            tableBuilder.withColumn(inputColumn.getName());
          }
          tableRef.set(tableBuilder.execute());
        }
      });
      table = tableRef.get();
    }
    return table;
View Full Code Here

TOP

Related Classes of org.eobjects.metamodel.create.TableCreationBuilder

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.