Package org.myphotodiary.model

Examples of org.myphotodiary.model.Group


      directory.setLatitude(dirData.getLat());
    }
    if (dirData.getLng() != null) {
      directory.setLongitude(dirData.getLng());
    }
    Group group = null;
    if (dirData.getGroup() != null) {
      group = em.find(Group.class, dirData.getGroup());
    }
    // default is forced to "public"
    if (group == null) {
View Full Code Here


      directory.setLatitude(dirData.getLat());
    }
    if (dirData.getLng() != null) {
      directory.setLongitude(dirData.getLng());
    }
    Group group = null;
    if (dirData.getGroup() != null) {
      group = em.find(Group.class, dirData.getGroup());
    }
    // default is forced to "public"
    if (group == null) {
View Full Code Here

      directory.setLatitude(dirData.getLat());
    }
    if (dirData.getLng() != null) {
      directory.setLongitude(dirData.getLng());
    }
    Group group = null;
    if (dirData.getGroup() != null) {
      group = em.find(Group.class, dirData.getGroup());
    }
    // default is forced to "public"
    if (group == null) {
View Full Code Here

    EntityManager em = ModelFactory.getEntityManager();
    EntityTransaction tx = null;
    try {
      tx = em.getTransaction();
      tx.begin();
      Group group = new Group();
      group.setGroupName(name);
      em.persist(group);
      tx.commit();
    } catch (Exception ex) {
      getServletContext().log("Cannot persist new group: " + name, ex);
      tx.rollback();
View Full Code Here

    EntityManager em = ModelFactory.getEntityManager();
    EntityTransaction tx = null;
    try {
      tx = em.getTransaction();
      tx.begin();
      Group group = em.createQuery(
          "select group from Group group where group.groupName = ?1", Group.class).setParameter(1, name)
          .getSingleResult();
      em.remove(group);
      tx.commit();
    } catch (Exception ex) {
View Full Code Here

    EntityManager em = ModelFactory.getEntityManager();
    EntityTransaction tx = null;
    try {
      tx = em.getTransaction();
      tx.begin();
      Group group = new Group();
      group.setGroupName(name);
      em.persist(group);
      tx.commit();
    } catch (Exception ex) {
      getServletContext().log("Cannot persist new group: " + name, ex);
      tx.rollback();
View Full Code Here

    EntityManager em = ModelFactory.getEntityManager();
    EntityTransaction tx = null;
    try {
      tx = em.getTransaction();
      tx.begin();
      Group group = em.createQuery(
          "select group from Group group where group.groupName = ?1", Group.class).setParameter(1, name)
          .getSingleResult();
      em.remove(group);
      tx.commit();
    } catch (Exception ex) {
View Full Code Here

      directory.setLatitude(dirData.getLat());
    }
    if (dirData.getLng() != null) {
      directory.setLongitude(dirData.getLng());
    }
    Group group = null;
    if (dirData.getGroup() != null) {
      group = em.find(Group.class, dirData.getGroup());
    }
    // default is forced to "public"
    if (group == null) {
View Full Code Here

      directory.setLatitude(dirData.getLat());
    }
    if (dirData.getLng() != null) {
      directory.setLongitude(dirData.getLng());
    }
    Group group = null;
    if (dirData.getGroup() != null) {
      group = em.find(Group.class, dirData.getGroup());
    }
    // default is forced to "public"
    if (group == null) {
View Full Code Here

TOP

Related Classes of org.myphotodiary.model.Group

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.