Package org.yaac.shared.editor

Examples of org.yaac.shared.editor.PropertyUpdateInfo


    e.setProperty("p_1", 1L);
    e.setProperty("p_2", "abc");
    e.setProperty("p_3", true);
   
    List<PropertyUpdateInfo> changes = newArrayList(
        new PropertyUpdateInfo("p_1", new LongPropertyInfo(1l)).setNewInfo(new StringPropertyInfo("sssss")));
   
    Entity actual = service.applyChange(e, changes);
   
    // key is not changed
    assertEquals("kind_a", actual.getKey().getKind());
View Full Code Here


    e.setProperty("p_1", 1L);
    e.setProperty("p_2", "abc");
    e.setProperty("p_3", true);
   
    List<PropertyUpdateInfo> changes = newArrayList(
        new PropertyUpdateInfo("p_2", new LongPropertyInfo(1l)).setDeleteFlag(true));
   
    Entity actual = service.applyChange(e, changes);
   
    // key is not changed
    assertEquals("kind_a", actual.getKey().getKind());
View Full Code Here

    e.setProperty("p_1", 1L);
    e.setProperty("p_2", "abc");
    e.setProperty("p_3", true);
   
    List<PropertyUpdateInfo> changes = newArrayList(
        new PropertyUpdateInfo("p_3", new LongPropertyInfo(1l)).setNewName("p_5"));
   
    Entity actual = service.applyChange(e, changes);
   
    // key is not changed
    assertEquals("kind_a", actual.getKey().getKind());
View Full Code Here

    e.setProperty("p_1", 1L);
    e.setProperty("p_2", "abc");
    e.setProperty("p_3", true);
   
    List<PropertyUpdateInfo> changes = newArrayList(
        new PropertyUpdateInfo("__key__", new KeyInfo(null, "kind_a", "entity_1", null, null)
        ).setNewInfo(new KeyInfo(null, "kind_b", "entity_2", null, null)));
   
    Entity actual = service.applyChange(e, changes);
   
    // key is not changed
View Full Code Here

    e.setProperty("p_1", 1L);
    e.setProperty("p_2", "abc");
    e.setProperty("p_3", true);
   
    List<PropertyUpdateInfo> changes = newArrayList(
        new PropertyUpdateInfo("__key__", new KeyInfo(null, "kind_a", "entity_1", null, null)
        ).setNewInfo(new KeyInfo(null, "kind_b", "entity_2", null, null)),
        new PropertyUpdateInfo("p_3", new BooleanPropertyInfo(true)).setDeleteFlag(true),
        new PropertyUpdateInfo("p_2", new BooleanPropertyInfo(true)).setNewInfo(new LongPropertyInfo(5)).setNewName("p_5"),
        new PropertyUpdateInfo("p_1", new LongPropertyInfo(1l)).setNewName("p_6"));
   
    Entity actual = service.applyChange(e, changes);
   
    // key is not changed
    assertEquals("kind_b", actual.getKey().getKind());
View Full Code Here

    } while (propertyName != null && isPropertyNameUsed(propertyName));
   
    if (propertyName == null) { // action cancelled
      return;
    } else // create new property
      PropertyUpdateInfo newProperty = new PropertyUpdateInfo(propertyName, null);
      newProperty.setNewInfo(new NullPropertyInfo());
      dataProvider.getList().add(newProperty);
      dataProvider.refresh()
    }
  }
View Full Code Here

TOP

Related Classes of org.yaac.shared.editor.PropertyUpdateInfo

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.