Examples of PdxInstance


Examples of com.gemstone.gemfire.pdx.PdxInstance

  @Test
  public void test() {
    new CacheFactory().create();
    JsonStringToObjectTransformer transformer = new JsonStringToObjectTransformer();
    String json = "{\"symbol\":\"VMW\",\"price\":73}";
    PdxInstance pdx = transformer.toObject(json);
    assertEquals("VMW", pdx.getField("symbol"));
    assertEquals(Byte.valueOf("73"), pdx.getField("price"));

    String result = transformer.toString(pdx);
    assertEquals(json, result);
  }
View Full Code Here

Examples of com.gemstone.gemfire.pdx.PdxInstance

    return returnValue;
  }


  private PdxInstance convertArgumentToPdxInstance(Object value) {
    PdxInstance pdx = null;

    if (value instanceof PdxInstance) {
      pdx = (PdxInstance) value;
    }
    else if (value instanceof String) {
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.