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

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


    person.setBirthday(new Date());
    person.setDisplayName("");
    person.setDrinker(new EnumDb<Drinker>(Drinker.SOCIALLY));

    List<ListField> emails = new ArrayList<ListField>();
    EmailDb email = new EmailDb();
    email.setValue("");
    email.setType("");
    emails.add(email);
    person.setEmails(emails);

    person.setEthnicity("");
    person.setFashion("");
View Full Code Here


  private ListField getNewEmail(int i) {
    String targetAddress = "xyz" + i + "@testdataset.com";
    ListField email = findOne(EmailDb.FINDBY_EMAIL, new String[] { EmailDb.PARAM_EMAIL },
        new Object[] { targetAddress });
    if (email == null) {
      email = new EmailDb();
      email.setValue(targetAddress);
      email.setType("emailType");
    }
    return email;
  }
View Full Code Here

  @Test
  public void checkSimpleInsert() throws Exception {
    EntityTransaction transaction = entityManager.getTransaction();
    transaction.begin();
    EmailDb email = new EmailDb();
    email.setType("email");
    email.setValue("ieb@tfd.co.uk");
    entityManager.persist(email);
    transaction.commit();
  }
View Full Code Here

  // @Test
  public void checkSimpleInsert() throws Exception {
    EntityTransaction transaction = entityManager.getTransaction();
    transaction.begin();
    EmailDb email = new EmailDb();
    email.setType("email");
    email.setValue("ieb@tfd.co.uk");
    entityManager.persist(email);
    transaction.commit();
  }
View Full Code Here

  @Test
  public void checkSimpleInsert() throws Exception {
    EntityTransaction transaction = entityManager.getTransaction();
    transaction.begin();
    EmailDb email = new EmailDb();
    email.setType("email");
    email.setValue("ieb@tfd.co.uk");
    entityManager.persist(email);
    transaction.commit();
  }
View Full Code Here

    person.setBirthday(buildDate("1975-01-01"));
    person.setDisplayName("Shin Digg");
    person.setDrinker(new EnumDb<Drinker>(Drinker.SOCIALLY));

    List<ListField> emails = new ArrayList<ListField>();
    EmailDb email = new EmailDb();
    email.setValue("dev@shindig.apache.org");
    email.setType("work");
    emails.add(email);
    person.setEmails(emails);

    person.setEthnicity("developer");
    person.setFashion("t-shirts");
View Full Code Here

    person.setBirthday(new Date());
    person.setDisplayName("");
    person.setDrinker(new EnumDb<Drinker>(Drinker.SOCIALLY));

    List<ListField> emails = new ArrayList<ListField>();
    EmailDb email = new EmailDb();
    email.setValue("");
    email.setType("");
    emails.add(email);
    person.setEmails(emails);

    person.setEthnicity("");
    person.setFashion("");
View Full Code Here

  private ListField getNewEmail(int i) {
    String targetAddress = "xyz" + i + "@testdataset.com";
    ListField email = findOne(EmailDb.FINDBY_EMAIL, new String[] { EmailDb.PARAM_EMAIL },
        new Object[] { targetAddress });
    if (email == null) {
      email = new EmailDb();
      email.setValue(targetAddress);
      email.setType("emailType");
    }
    return email;
  }
View Full Code Here

  @Test
  public void checkSimpleInsert() throws Exception {
    EntityTransaction transaction = entityManager.getTransaction();
    transaction.begin();
    EmailDb email = new EmailDb();
    email.setType("email");
    email.setValue("ieb@tfd.co.uk");
    entityManager.persist(email);
    transaction.commit();
  }
View Full Code Here

  // @Test
  public void checkSimpleInsert() throws Exception {
    EntityTransaction transaction = entityManager.getTransaction();
    transaction.begin();
    EmailDb email = new EmailDb();
    email.setType("email");
    email.setValue("ieb@tfd.co.uk");
    entityManager.persist(email);
    transaction.commit();
  }
View Full Code Here

TOP

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

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.