Package org.eobjects.metamodel.insert

Examples of org.eobjects.metamodel.insert.RowInsertionBuilder


      logger.info("Flushing {} rows in write buffer", _buffer.size());
      _dataContext.executeUpdate(new UpdateScript() {
        @Override
        public void run(UpdateCallback callback) {
          for (Object[] rowData = _buffer.poll(); rowData != null; rowData = _buffer.poll()) {
            RowInsertionBuilder insertBuilder = callback.insertInto(getTable());
            for (int i = 0; i < _columns.length; i++) {
              InputColumn<?> column = _columns[i];
              Object value = rowData[i];
              String columnName = getTargetColumnName(column);
              insertBuilder = insertBuilder.value(columnName, value);
            }
            insertBuilder.execute();
          }
        }
      });
    }
  }
View Full Code Here

TOP

Related Classes of org.eobjects.metamodel.insert.RowInsertionBuilder

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.