Package com.taobao.tdhs.client.request

Examples of com.taobao.tdhs.client.request.ValueEntry


  }

  @Test
  public void testUpdate1() throws TDHSException {
    try {
      ValueEntry entry = new ValueEntry(UpdateFlag.TDHS_UPDATE_SET, "5");
      TDHSResponse r = client.update(db, table, null,
          new String[] { fields[0] }, new ValueEntry[] { entry },
          new String[][] { { id } }, FindFlag.TDHS_EQ, 0, 100, null);

      Assert.assertEquals("1", r.getFieldData().get(0).get(0));
View Full Code Here


  }

  @Test
  public void testUpdate2() throws TDHSException {
    try {
      ValueEntry entry = new ValueEntry(UpdateFlag.TDHS_UPDATE_ADD, "5");
      TDHSResponse r = client.update(db, table, null,
          new String[] { fields[0] }, new ValueEntry[] { entry },
          new String[][] { { id } }, FindFlag.TDHS_EQ, 0, 100, null);

      Assert.assertEquals("1", r.getFieldData().get(0).get(0));
View Full Code Here

  }

  @Test
  public void testUpdate3() throws TDHSException {
    try {
      ValueEntry entry = new ValueEntry(UpdateFlag.TDHS_UPDATE_SUB, "5");
      TDHSResponse r = client.update(db, table, null,
          new String[] { fields[0] }, new ValueEntry[] { entry },
          new String[][] { { id } }, FindFlag.TDHS_EQ, 0, 100, null);

      Assert.assertEquals("1", r.getFieldData().get(0).get(0));
View Full Code Here

TOP

Related Classes of com.taobao.tdhs.client.request.ValueEntry

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.