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

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


    // Build and persist application data test data
    ApplicationDb testApplication = new ApplicationDb();
    testApplication.setId("app");
    entityManager.persist(testApplication);

    ApplicationDataMapDb applicationDataMap1 = buildApplicationDataTemplate(testApplication, "canonical", "2");
    applicationDataMap1.getValues().put("size", "100");
    entityManager.persist(applicationDataMap1);

    ApplicationDataMapDb applicationDataMap2 = buildApplicationDataTemplate(testApplication, "john.doe", "0");
    entityManager.persist(applicationDataMap2);

    ApplicationDataMapDb applicationDataMap3 = buildApplicationDataTemplate(testApplication, "george.doe", "2");
    entityManager.persist(applicationDataMap3);

    ApplicationDataMapDb applicationDataMap4 = buildApplicationDataTemplate(testApplication, "jane.doe", "7");
    entityManager.persist(applicationDataMap4);

    ApplicationDataMapDb applicationDataMap5 = buildApplicationDataTemplate(testApplication, "maija.m", null);
    entityManager.persist(applicationDataMap5);

    // Commit transaction
    entityManager.getTransaction().commit();
  }
View Full Code Here


  //
  // Build methods that create dummy test data
  //

  private ApplicationDataMapDb buildApplicationDataTemplate(ApplicationDb application, String personId, String count) {
    ApplicationDataMapDb applicationDataMap = new ApplicationDataMapDb();
    applicationDataMap.setApplication(application);
    applicationDataMap.setPersonId(personId);
    Map<String, String> values = new MapMaker().makeMap();
    if (null != count) {
      values.put("count", count);
    }
    applicationDataMap.setValues(values);
    return applicationDataMap;
  }
View Full Code Here

    // Build and persist application data test data
    ApplicationDb testApplication = new ApplicationDb();
    testApplication.setId("app");
    entityManager.persist(testApplication);
   
    ApplicationDataMapDb applicationDataMap1 = buildApplicationDataTemplate(testApplication, "canonical", "2");
    applicationDataMap1.getValues().put("size", "100");
    entityManager.persist(applicationDataMap1);
   
    ApplicationDataMapDb applicationDataMap2 = buildApplicationDataTemplate(testApplication, "john.doe", "0");
    entityManager.persist(applicationDataMap2);
   
    ApplicationDataMapDb applicationDataMap3 = buildApplicationDataTemplate(testApplication, "george.doe", "2");
    entityManager.persist(applicationDataMap3);
   
    ApplicationDataMapDb applicationDataMap4 = buildApplicationDataTemplate(testApplication, "jane.doe", "7");
    entityManager.persist(applicationDataMap4);
   
    ApplicationDataMapDb applicationDataMap5 = buildApplicationDataTemplate(testApplication, "maija.m", null);
    entityManager.persist(applicationDataMap5);
  
    // Commit transaction
    entityManager.getTransaction().commit();
  }
View Full Code Here

  //
  // Build methods that create dummy test data
  //
 
  private ApplicationDataMapDb buildApplicationDataTemplate(ApplicationDb application, String personId, String count) {
    ApplicationDataMapDb applicationDataMap = new ApplicationDataMapDb();
    applicationDataMap.setApplication(application);
    applicationDataMap.setPersonId(personId);   
    Map<String, String> values = new MapMaker().makeMap();
    if (null != count) {
      values.put("count", count);
    }
    applicationDataMap.setValues(values);
    return applicationDataMap;
  }
View Full Code Here

    // Build and persist application data test data
    ApplicationDb testApplication = new ApplicationDb();
    testApplication.setId("app");
    entityManager.persist(testApplication);

    ApplicationDataMapDb applicationDataMap1 = buildApplicationDataTemplate(testApplication, "canonical", "2");
    applicationDataMap1.getValues().put("size", "100");
    entityManager.persist(applicationDataMap1);

    ApplicationDataMapDb applicationDataMap2 = buildApplicationDataTemplate(testApplication, "john.doe", "0");
    entityManager.persist(applicationDataMap2);

    ApplicationDataMapDb applicationDataMap3 = buildApplicationDataTemplate(testApplication, "george.doe", "2");
    entityManager.persist(applicationDataMap3);

    ApplicationDataMapDb applicationDataMap4 = buildApplicationDataTemplate(testApplication, "jane.doe", "7");
    entityManager.persist(applicationDataMap4);

    ApplicationDataMapDb applicationDataMap5 = buildApplicationDataTemplate(testApplication, "maija.m", null);
    entityManager.persist(applicationDataMap5);

    // Commit transaction
    entityManager.getTransaction().commit();
  }
View Full Code Here

  //
  // Build methods that create dummy test data
  //

  private ApplicationDataMapDb buildApplicationDataTemplate(ApplicationDb application, String personId, String count) {
    ApplicationDataMapDb applicationDataMap = new ApplicationDataMapDb();
    applicationDataMap.setApplication(application);
    applicationDataMap.setPersonId(personId);
    Map<String, String> values = new MapMaker().makeMap();
    if (null != count) {
      values.put("count", count);
    }
    applicationDataMap.setValues(values);
    return applicationDataMap;
  }
View Full Code Here

    // Build and persist application data test data
    ApplicationDb testApplication = new ApplicationDb();
    testApplication.setId("app");
    entityManager.persist(testApplication);

    ApplicationDataMapDb applicationDataMap1 = buildApplicationDataTemplate(testApplication, "canonical", "2");
    applicationDataMap1.getValues().put("size", "100");
    entityManager.persist(applicationDataMap1);

    ApplicationDataMapDb applicationDataMap2 = buildApplicationDataTemplate(testApplication, "john.doe", "0");
    entityManager.persist(applicationDataMap2);

    ApplicationDataMapDb applicationDataMap3 = buildApplicationDataTemplate(testApplication, "george.doe", "2");
    entityManager.persist(applicationDataMap3);

    ApplicationDataMapDb applicationDataMap4 = buildApplicationDataTemplate(testApplication, "jane.doe", "7");
    entityManager.persist(applicationDataMap4);

    ApplicationDataMapDb applicationDataMap5 = buildApplicationDataTemplate(testApplication, "maija.m", null);
    entityManager.persist(applicationDataMap5);

    // Commit transaction
    entityManager.getTransaction().commit();
  }
View Full Code Here

  //
  // Build methods that create dummy test data
  //

  private ApplicationDataMapDb buildApplicationDataTemplate(ApplicationDb application, String personId, String count) {
    ApplicationDataMapDb applicationDataMap = new ApplicationDataMapDb();
    applicationDataMap.setApplication(application);
    applicationDataMap.setPersonId(personId);
    Map<String, String> values = new MapMaker().makeMap();
    if (null != count) {
      values.put("count", count);
    }
    applicationDataMap.setValues(values);
    return applicationDataMap;
  }
View Full Code Here

    // Build and persist application data test data
    ApplicationDb testApplication = new ApplicationDb();
    testApplication.setId("app");
    entityManager.persist(testApplication);
   
    ApplicationDataMapDb applicationDataMap1 = buildApplicationDataTemplate(testApplication, "canonical", "2");
    applicationDataMap1.getValues().put("size", "100");
    entityManager.persist(applicationDataMap1);
   
    ApplicationDataMapDb applicationDataMap2 = buildApplicationDataTemplate(testApplication, "john.doe", "0");
    entityManager.persist(applicationDataMap2);
   
    ApplicationDataMapDb applicationDataMap3 = buildApplicationDataTemplate(testApplication, "george.doe", "2");
    entityManager.persist(applicationDataMap3);
   
    ApplicationDataMapDb applicationDataMap4 = buildApplicationDataTemplate(testApplication, "jane.doe", "7");
    entityManager.persist(applicationDataMap4);
   
    ApplicationDataMapDb applicationDataMap5 = buildApplicationDataTemplate(testApplication, "maija.m", null);
    entityManager.persist(applicationDataMap5);
  
    // Commit transaction
    entityManager.getTransaction().commit();
  }
View Full Code Here

  //
  // Build methods that create dummy test data
  //
 
  private ApplicationDataMapDb buildApplicationDataTemplate(ApplicationDb application, String personId, String count) {
    ApplicationDataMapDb applicationDataMap = new ApplicationDataMapDb();
    applicationDataMap.setApplication(application);
    applicationDataMap.setPersonId(personId);   
    Map<String, String> values = new MapMaker().makeMap();
    if (null != count) {
      values.put("count", count);
    }
    applicationDataMap.setValues(values);
    return applicationDataMap;
  }
View Full Code Here

TOP

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

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.