Package org.apache.shindig.social.opensocial.jpa

Examples of org.apache.shindig.social.opensocial.jpa.PhoneDb


    person.setNetworkPresence(new EnumDb<NetworkPresence>(NetworkPresence.ONLINE));
    person.setNickname("");
    person.setPets("");

    List<ListField> phoneNumbers = new ArrayList<ListField>();
    PhoneDb phone1 = new PhoneDb();
    phone1.setValue("");
    phone1.setType("");
    PhoneDb phone2 = new PhoneDb();
    phone2.setValue("");
    phone2.setType("");
    phoneNumbers.add(phone1);
    phoneNumbers.add(phone2);
    person.setPhoneNumbers(phoneNumbers);

    person.setPoliticalViews("");
View Full Code Here


    }
  }

  private PhoneDb getNewPhone(int i) {
    String targetPhone = String.valueOf(i % 33);
    PhoneDb phone = findOne(PhoneDb.FINDBY_PHONE_NUMBER,
        new String[] { PhoneDb.PARAM_PHONE_NUMBER }, new Object[] { targetPhone });
    if (phone == null) {
      phone = new PhoneDb();
      phone.setValue(targetPhone);
      phone.setType("Mobile");
    }
    return phone;
  }
View Full Code Here

   
    person.setNickname("diggy");
    person.setPets("dog,cat");
   
    List<ListField> phoneNumbers = new ArrayList<ListField>();
    PhoneDb phone1 = new PhoneDb();
    phone1.setValue("111-111-111");
    phone1.setType("work");
    PhoneDb phone2 = new PhoneDb();
    phone2.setValue("999-999-999");
    phone2.setType("mobile");
    phoneNumbers.add(phone1);
    phoneNumbers.add(phone2);
    person.setPhoneNumbers(phoneNumbers);
   
    person.setPoliticalViews("open leaning");   
View Full Code Here

    person.setNetworkPresence(new EnumDb<NetworkPresence>(NetworkPresence.ONLINE));
    person.setNickname("");
    person.setPets("");
   
    List<ListField> phoneNumbers = new ArrayList<ListField>();
    PhoneDb phone1 = new PhoneDb();
    phone1.setValue("");
    phone1.setType("");
    PhoneDb phone2 = new PhoneDb();
    phone2.setValue("");
    phone2.setType("");
    phoneNumbers.add(phone1);
    phoneNumbers.add(phone2);
    person.setPhoneNumbers(phoneNumbers);
   
    person.setPoliticalViews("");   
View Full Code Here

TOP

Related Classes of org.apache.shindig.social.opensocial.jpa.PhoneDb

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.