Package org.opencustomer.db.dao.crm

Examples of org.opencustomer.db.dao.crm.ContactDAO


        if (contact.getId() != null)
        {
            try
            {
                new ContactDAO().delete(contact);
            }
            catch (HibernateException e)
            {
                errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("default.error.couldNotDeleteEntity", panel.getEntity().getId()));
View Full Code Here


            if (contact.getId() == null)
            {
                if (log.isDebugEnabled())
                    log.debug("create contact " + contact);
                new ContactDAO().insert(contact);
            }
            else
            {
                if (log.isDebugEnabled())
                    log.debug("save contact " + contact);
                new ContactDAO().update(contact);
            }

            HibernateContext.commitTransaction();

            HibernateContext.getSession().evict(contact);
View Full Code Here

    @Override
    public void loadEntity(ActionMessages errors, EditLoadForm form, Hashtable<String, Object> attributes, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
    {
        try
        {
            ContactVO contact = new ContactDAO().getById(form.getId());
            Hibernate.initialize(contact.getPersonContacts());
           
            attributes.put("contact", contact);
        }
        catch (HibernateException e)
View Full Code Here

        catch (ParseException e)
        {
            log.error("bad form validation", e);
        }

        ContactDAO dao = new ContactDAO();

        count = dao.countListForPerson(person.getId(), paramSubject, paramBoundType, paramContactType, paramContactTimestampStart, paramContactTimestampEnd, paramName, user);
        if (count < page.getFirstEntry())
            page.setPage(1);

        if (count > 0)
            list = dao.getListForPerson(person.getId(), paramSubject, paramBoundType, paramContactType, paramContactTimestampStart, paramContactTimestampEnd, paramName, sort, page, user);
        else
            list = new ArrayList();

        ScrollBean scroll = new ScrollBean();
        scroll.setCount(count);
View Full Code Here

                }

            // Datenbank Eintrag
            if (!pcs.isEmpty())
            {
                new ContactDAO().insert(contact);
                for (PersonContactVO pce : pcs)
                {
                    pce.setContact(contact);
                    new PersonContactDAO().insert(pce);
                }
View Full Code Here

                paramContactTimestampEnd = DateUtility.getEndOfDay(sdf.parse(form.getContactTimestampEnd()));
        } catch (ParseException e) {
            log.error("bad form validation", e);
        }

        ContactDAO dao = new ContactDAO();

        count = dao.countListForCompany(company.getId(), paramSubject, paramBoundType, paramContactType, paramContactTimestampStart, paramContactTimestampEnd, paramName, user);
        if (count < page.getFirstEntry())
            page.setPage(1);

        if (count > 0)
            list = dao.getListForCompany(company.getId(), paramSubject, paramBoundType, paramContactType, paramContactTimestampStart, paramContactTimestampEnd, paramName, sort, page, user);
        else
            list = new ArrayList();

        ScrollBean scroll = new ScrollBean();
        scroll.setCount(count);
View Full Code Here

TOP

Related Classes of org.opencustomer.db.dao.crm.ContactDAO

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.