Examples of Record


Examples of com.ibm.as400.access.Record

   * @see net.sf.xbus.technical.LineReader#readRecord()
   */
  public String readRecord() throws XException
  {
    String result = null;
    Record record;
    try
    {
      record = mOriginFile.readNext();
    }
    catch (Exception e)
    {
      throw new XException(Constants.LOCATION_EXTERN,
          Constants.LAYER_TECHNICAL,
          Constants.PACKAGE_TECHNICAL_AS400, "0", e);
    }
    if (record != null)
    {
      byte[] inData = null;
      // save record contents to the byte array
      try
      {
        inData = record.getContents();
      }
      catch (Exception e)
      {
        throw new XException(Constants.LOCATION_EXTERN,
            Constants.LAYER_TECHNICAL,
View Full Code Here

Examples of com.impossibl.postgres.api.data.Record

        test(expectedAttrs[c], actualAttrs[c]);
      }
    }
    else if (expected instanceof Record) {

      Record expectedStruct = (Record) expected;
      Object[] expectedAttrs = expectedStruct.getValues();

      Record actualStruct = (Record) actual;
      Object[] actualAttrs = actualStruct.getValues();

      assertEquals("Record Length", expectedAttrs.length, actualAttrs.length);
      for (int c = 0; c < expectedAttrs.length; ++c) {
        test(expectedAttrs[c], actualAttrs[c]);
      }
View Full Code Here

Examples of com.impossibl.postgres.types.PrimitiveType.Record

    @Override
    public Object decode(Type type, Short typeLength, Integer typeModifier, ByteBuf buffer, Context context) throws IOException {

      CompositeType compType = (CompositeType) type;

      Record record = null;

      int length = buffer.readInt();

      if (length != -1) {

        long readStart = buffer.readerIndex();

        int itemCount = buffer.readInt();

        Object[] attributeVals = new Object[itemCount];

        for (int c = 0; c < itemCount; ++c) {

          Attribute attribute = compType.getAttribute(c + 1);

          Type attributeType = context.getRegistry().loadType(buffer.readInt());

          if (attributeType.getId() != attribute.type.getId()) {

            context.refreshType(attributeType.getId());
          }

          Object attributeVal = attributeType.getBinaryCodec().decoder.decode(attributeType, null, null, buffer, context);

          attributeVals[c] = attributeVal;
        }

        if (length != buffer.readerIndex() - readStart) {
          throw new IllegalStateException();
        }

        record = new Record(compType, attributeVals);
      }

      return record;
    }
View Full Code Here

Examples of com.iqbon.spider.domain.Record

    }
  }

  @Test
  public void testGetCrawlContentBySourceAndUrl() {
    Record record = controller.getCrawlContentBySourceAndUrl(
        "http://home.163.com/13/0119/10/8LJ06D77001048P8.html", sourceUrl);
    logger.info(ToStringBuilder.reflectionToString(record));
  }
View Full Code Here

Examples of com.jbidwatcher.util.Record

  public void testInsertData() throws Exception {
    Table t = new Table("categories");
    mSavepoint = t.getDB().getConnection().setSavepoint();
    assert(t.execute("DELETE FROM categories"));
    Record r = new Record();
    r.put("id", "1");
    r.put("name", "zarf");
    t.storeMap(r);
    List<Record> recs = t.findAll();
    for(Record rec : recs) {
      HashBacked h = new HashBacked(rec);
      System.err.println(h.dumpRecord());
View Full Code Here

Examples of com.jfinal.plugin.activerecord.Record

    }
  }

  public void del() {
    Long id = getParaToLong(0, 0L);
    Record po = getCurrentUser();
    if (id != po.getLong("id")) {
      Employee.dao.deleteById(id);
      toDwzJson(200, "删除成功!", navTabId);
    } else {
      toDwzJson(300, "不能删除自己的账号!");
    }
View Full Code Here

Examples of com.mossle.form.keyvalue.Record

            if (task == null) {
                throw new IllegalStateException("任务不存在");
            }

            String processInstanceId = task.getProcessInstanceId();
            Record record = keyValue.findByRef(processInstanceId);

            if (record != null) {
                record = new RecordBuilder().build(record, STATUS_DRAFT_TASK,
                        getParameters());
                keyValue.save(record);
                businessKey = record.getCode();
            }
        } else if (this.notEmpty(businessKey)) {
            // 如果是流程草稿,直接通过businessKey获得record,更新数据
            Record record = keyValue.findByCode(businessKey);

            record = new RecordBuilder().build(record, STATUS_DRAFT_PROCESS,
                    getParameters());
            keyValue.save(record);
        } else {
            // 如果是第一次保存草稿,肯定是流程草稿,先初始化record,再保存数据
            Record record = new RecordBuilder().build(bpmProcessId,
                    STATUS_DRAFT_PROCESS, getParameters(), userId);
            keyValue.save(record);
            businessKey = record.getCode();
        }

        return businessKey;
    }
View Full Code Here

Examples of com.sencha.gxt.data.shared.Store.Record

   * Updates the model's value with the field value.
   */
  public void updateModel() {
    Object val = onConvertFieldValue(field.getValue());
    if (store != null) {
      Record r = store.getRecord(model);
      if (r != null) {
        // r.setValid(property, field.isValid());
        r.addChange(new ModelDataValueProvider<Object>(property), val);
      }
    } else {
      model.set(property, val);
    }

View Full Code Here

Examples of com.simplegeo.client.types.Record

    double lat = 47.046962;
    String layer = "casey.testing.layer";
    String testPropertyKey = "name";
    String testPropertyValue = "Testing Storage";
    try {
      Record record = new Record("simplegeo-boulder", layer, "Feature", lon, lat);
      HashMap<String, Object> properties = new HashMap<String, Object>();
      properties.put(testPropertyKey, testPropertyValue);
      record.setProperties(properties);
      client.addOrUpdateRecord(record);
     
      Assert.assertEquals(layer, record.getLayer());
      Assert.assertEquals(lat, record.getGeometry().getPoint().getLat(), 0d);
      Assert.assertEquals(lon, record.getGeometry().getPoint().getLon(), 0d);
      Assert.assertEquals(testPropertyValue, record.getProperties().get(testPropertyKey));
     
    } catch (JSONException e) {
      Assert.fail(e.getMessage());
    } catch (IOException e) {
      Assert.fail(e.getMessage());
View Full Code Here

Examples of com.smartgwt.client.data.Record

    dataSource.setClientOnly(true);
    DataSourceField label = new DataSourceTextField(FIELD_LABEL);
    DataSourceField regex = new DataSourceTextField(FIELD_REGEX);
    dataSource.setFields(label, regex);

    Record record;
    record = new Record();
    record.setAttribute(FIELD_LABEL, "all");
    record.setAttribute(FIELD_REGEX, ".*");
    dataSource.addData(record);
    record = new Record();
    record.setAttribute(FIELD_LABEL, "Yahoo! PlaceFinder");
    record.setAttribute(FIELD_REGEX, "yahoo");
    dataSource.addData(record);
    record = new Record();
    record.setAttribute(FIELD_LABEL, "GeoNames");
    record.setAttribute(FIELD_REGEX, "geonames");
    dataSource.addData(record);
    record = new Record();
    record.setAttribute(FIELD_LABEL, "offline");
    record.setAttribute(FIELD_REGEX, "offline");
    dataSource.addData(record);

    return dataSource;
  }
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.