Package com.liferay.portlet.polls

Examples of com.liferay.portlet.polls.NoSuchQuestionException


      return pollsQuestion;
    }
    catch (HibernateException he) {
      if (he instanceof ObjectNotFoundException) {
        throw new NoSuchQuestionException(questionId.toString());
      }
      else {
        throw new SystemException(he);
      }
    }
View Full Code Here


      return pollsQuestion;
    }
    catch (HibernateException he) {
      if (he instanceof ObjectNotFoundException) {
        throw new NoSuchQuestionException(questionId.toString());
      }
      else {
        throw new SystemException(he);
      }
    }
View Full Code Here

    String groupId, OrderByComparator obc)
    throws NoSuchQuestionException, SystemException {
    List list = findByGroupId(groupId, 0, 1, obc);

    if (list.size() == 0) {
      throw new NoSuchQuestionException();
    }
    else {
      return (com.liferay.portlet.polls.model.PollsQuestion)list.get(0);
    }
  }
View Full Code Here

    throws NoSuchQuestionException, SystemException {
    int count = countByGroupId(groupId);
    List list = findByGroupId(groupId, count - 1, count, obc);

    if (list.size() == 0) {
      throw new NoSuchQuestionException();
    }
    else {
      return (com.liferay.portlet.polls.model.PollsQuestion)list.get(0);
    }
  }
View Full Code Here

    String portletId, String groupId, String companyId,
    OrderByComparator obc) throws NoSuchQuestionException, SystemException {
    List list = findByP_G_C(portletId, companyId, 0, 1, obc);

    if (list.size() == 0) {
      throw new NoSuchQuestionException();
    }
    else {
      return (com.liferay.portlet.polls.model.PollsQuestion)list.get(0);
    }
  }
View Full Code Here

    int count = countByP_G_C(portletId, companyId);
    List list = findByP_G_C(portletId, companyId, count - 1,
        count, obc);

    if (list.size() == 0) {
      throw new NoSuchQuestionException();
    }
    else {
      return (com.liferay.portlet.polls.model.PollsQuestion)list.get(0);
    }
  }
View Full Code Here

TOP

Related Classes of com.liferay.portlet.polls.NoSuchQuestionException

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.