Package org.yaac.shared.property

Examples of org.yaac.shared.property.BooleanPropertyInfo


    PropertyInfo result = null;
   
    if (obj == null) {
      result = new NullPropertyInfo();
    } else if (obj instanceof Boolean) {
      result = new BooleanPropertyInfo((Boolean)obj);
    } else if (obj instanceof String) {
      result = new StringPropertyInfo((String)obj);
    } else if (obj instanceof Category) {
      result = new StringPropertyInfo(((Category) obj).getCategory());
    } else if (obj instanceof Date) {
View Full Code Here


    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
View Full Code Here

    e.setProperty("prop_a", true);
    DatastoreServiceFactory.getDatastoreService().put(e);
   
    String keyString = KeyFactory.keyToString(key);
   
    assertEquals(new BooleanPropertyInfo(true), service.parsePropertyExp(keyString, "prop_a", new ArrayList<String>()));
  }
View Full Code Here

TOP

Related Classes of org.yaac.shared.property.BooleanPropertyInfo

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.