Package com.google.gdata.data.spreadsheet

Examples of com.google.gdata.data.spreadsheet.Field


    // Add a "valueType" row (the cells are filled with "*" to be replaced)
    int numberOfRows = tableEntry.getData().getNumberOfRows();
    if (numberOfRows == 0) {
      RecordEntry newEntry = new RecordEntry();
      newEntry.addField(new Field(null, Entity.KEY_RESERVED_PROPERTY, VALUE_TYPE));
      for (int i = 0; i < properties.size(); i++) {
        GbProperty gbProperty = properties.get(i);
        String columnName = gbProperty.getName();
        newEntry.addField(new Field(null, columnName, VALUE_TYPE_NOT_SET));
      }
      URL recordFeedUrl = factory.getRecordFeedUrl(ssKey, tableId);
      ss.insert(recordFeedUrl, newEntry);
      logger.info("Inserted TypeValue row in :" + kind);
    }
View Full Code Here


        if (duplicateCheckList.contains(key)) {
          logger.info(key + " is duplicate");
          continue;
        }

        newEntry.addField(new Field(null, Entity.KEY_RESERVED_PROPERTY, key));
        for (GbProperty gbProperty : gbEntity.getProperties()) {
          final String value = gbProperty.asSpreadsheetValue();
          if (value == null) {
            continue;
          }
          final String columnName = gbProperty.getName();
          if (valueTypeRowMap.containsKey(columnName) == false) {
            continue; // when the colum name is undefined.
          }
          newEntry.addField(new Field(null, columnName, "'" + value));

          // Update valueType Cell
          if (valueTypeNotSet) {
            Field valueTypeCell = valueTypeRowMap.get(columnName);
            // Avoid when statistics is not updated.
            if (valueTypeCell != null) {
              valueTypeCell.setValue(gbProperty.asSpreadsheetValueType());
            }
          }
        }
        RecordEntry inserted = ss.insert(recordFeedUrl, newEntry);
        newRecordList.add(inserted);
View Full Code Here

TOP

Related Classes of com.google.gdata.data.spreadsheet.Field

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.