Package com.tll.common.model

Examples of com.tll.common.model.IntPropertyValue


    addEntityToDb(a);

    final PersistServiceDelegate delegate = getDelegate();

    Model m = new Model(TestEntityType.ADDRESS);
    m.set(new IntPropertyValue(Model.VERSION_PROPERTY, 0));
    m.set(new StringPropertyValue(Model.ID_PROPERTY, id));
    m.set(new StringPropertyValue("address1", "1 changed street"));
    m.set(new StringPropertyValue("address2", "2 beechange"));
    m.set(new StringPropertyValue("city", "change city"));
View Full Code Here


   */
  public static Model stubModel(TestEntityType type, Integer version, boolean timestamping, String name) {
    final Model m = new Model(type);
    m.set(new StringPropertyValue(Model.ID_PROPERTY, new PropertyMetadata(PropertyType.STRING, false, true, 10),
        Integer.toString(++nextUniqueId)));
    m.set(new IntPropertyValue(Model.VERSION_PROPERTY, version));
    if(name != null) {
      m.set(new StringPropertyValue(Model.NAME_PROPERTY, new PropertyMetadata(PropertyType.STRING, false, true, 32),
          name));
    }
    m.set(new DatePropertyValue(Model.DATE_CREATED_PROPERTY, new PropertyMetadata(PropertyType.DATE, true, true, 32),
View Full Code Here

        CreditCardType.VISA));
    m.set(new StringPropertyValue("paymentData_ccNum", new PropertyMetadata(PropertyType.STRING, false, false, 16),
    "4111111111111111"));
    m.set(new StringPropertyValue("paymentData_ccCvv2", new PropertyMetadata(PropertyType.STRING, false, false, 16),
    "834"));
    m.set(new IntPropertyValue("paymentData_ccExpMonth", new PropertyMetadata(PropertyType.INT, false, false, 16), 8));
    m
    .set(new IntPropertyValue("paymentData_ccExpYear", new PropertyMetadata(PropertyType.INT, false, false, 16),
        2012));
    m.set(new StringPropertyValue("paymentData_ccName", new PropertyMetadata(PropertyType.STRING, false, false, 16),
    "cc name"));
    m.set(new StringPropertyValue("paymentData_ccAddress1",
        new PropertyMetadata(PropertyType.STRING, false, false, 16), "88 Broadway"));
View Full Code Here

    else if(long.class == ptype || Long.class == ptype) {
      prop = new LongPropertyValue(pname, pdata, (Long) obj);
    }

    else if(int.class == ptype || Integer.class == ptype) {
      prop = new IntPropertyValue(pname, pdata, (Integer) obj);
    }

    else if(char.class == ptype || Character.class == ptype) {
      prop = new CharacterPropertyValue(pname, pdata, (Character) obj);
    }
View Full Code Here

TOP

Related Classes of com.tll.common.model.IntPropertyValue

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.