com.liferay.portlet.polls.service.persistence
Class PollsChoiceUtil

java.lang.Object
  extended bycom.liferay.portlet.polls.service.persistence.PollsChoiceUtil

public class PollsChoiceUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
PollsChoiceUtil()
           
 
Method Summary
static int countAll()
           
static int countByQ_N(long questionId, java.lang.String name)
           
static int countByQuestionId(long questionId)
           
static com.liferay.portlet.polls.model.PollsChoice create(long choiceId)
           
static com.liferay.portlet.polls.model.PollsChoice fetchByPrimaryKey(long choiceId)
           
static com.liferay.portlet.polls.model.PollsChoice fetchByQ_N(long questionId, java.lang.String name)
           
static java.util.List findAll()
           
static java.util.List findAll(int begin, int end)
           
static java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.polls.model.PollsChoice findByPrimaryKey(long choiceId)
           
static com.liferay.portlet.polls.model.PollsChoice findByQ_N(long questionId, java.lang.String name)
           
static com.liferay.portlet.polls.model.PollsChoice findByQuestionId_First(long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.polls.model.PollsChoice findByQuestionId_Last(long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.polls.model.PollsChoice[] findByQuestionId_PrevAndNext(long choiceId, long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findByQuestionId(long questionId)
           
static java.util.List findByQuestionId(long questionId, int begin, int end)
           
static java.util.List findByQuestionId(long questionId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static PollsChoicePersistence getPersistence()
           
static com.liferay.portlet.polls.model.PollsChoice remove(long choiceId)
           
static com.liferay.portlet.polls.model.PollsChoice remove(com.liferay.portlet.polls.model.PollsChoice pollsChoice)
           
static void removeAll()
           
static void removeByQ_N(long questionId, java.lang.String name)
           
static void removeByQuestionId(long questionId)
           
 void setPersistence(PollsChoicePersistence persistence)
           
static com.liferay.portlet.polls.model.PollsChoice update(com.liferay.portlet.polls.model.PollsChoice pollsChoice)
           
static com.liferay.portlet.polls.model.PollsChoice update(com.liferay.portlet.polls.model.PollsChoice pollsChoice, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollsChoiceUtil

public PollsChoiceUtil()
Method Detail

create

public static com.liferay.portlet.polls.model.PollsChoice create(long choiceId)

remove

public static com.liferay.portlet.polls.model.PollsChoice remove(long choiceId)
                                                          throws com.liferay.portlet.polls.NoSuchChoiceException,
                                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portlet.polls.NoSuchChoiceException
com.liferay.portal.SystemException

remove

public static com.liferay.portlet.polls.model.PollsChoice remove(com.liferay.portlet.polls.model.PollsChoice pollsChoice)
                                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static com.liferay.portlet.polls.model.PollsChoice update(com.liferay.portlet.polls.model.PollsChoice pollsChoice)
                                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static com.liferay.portlet.polls.model.PollsChoice update(com.liferay.portlet.polls.model.PollsChoice pollsChoice,
                                                                 boolean merge)
                                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public static com.liferay.portlet.polls.model.PollsChoice findByPrimaryKey(long choiceId)
                                                                    throws com.liferay.portlet.polls.NoSuchChoiceException,
                                                                           com.liferay.portal.SystemException
Throws:
com.liferay.portlet.polls.NoSuchChoiceException
com.liferay.portal.SystemException

fetchByPrimaryKey

public static com.liferay.portlet.polls.model.PollsChoice fetchByPrimaryKey(long choiceId)
                                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByQuestionId

public static java.util.List findByQuestionId(long questionId)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByQuestionId

public static java.util.List findByQuestionId(long questionId,
                                              int begin,
                                              int end)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByQuestionId

public static java.util.List findByQuestionId(long questionId,
                                              int begin,
                                              int end,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByQuestionId_First

public static com.liferay.portlet.polls.model.PollsChoice findByQuestionId_First(long questionId,
                                                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                          throws com.liferay.portlet.polls.NoSuchChoiceException,
                                                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portlet.polls.NoSuchChoiceException
com.liferay.portal.SystemException

findByQuestionId_Last

public static com.liferay.portlet.polls.model.PollsChoice findByQuestionId_Last(long questionId,
                                                                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                         throws com.liferay.portlet.polls.NoSuchChoiceException,
                                                                                com.liferay.portal.SystemException
Throws:
com.liferay.portlet.polls.NoSuchChoiceException
com.liferay.portal.SystemException

findByQuestionId_PrevAndNext

public static com.liferay.portlet.polls.model.PollsChoice[] findByQuestionId_PrevAndNext(long choiceId,
                                                                                         long questionId,
                                                                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                  throws com.liferay.portlet.polls.NoSuchChoiceException,
                                                                                         com.liferay.portal.SystemException
Throws:
com.liferay.portlet.polls.NoSuchChoiceException
com.liferay.portal.SystemException

findByQ_N

public static com.liferay.portlet.polls.model.PollsChoice findByQ_N(long questionId,
                                                                    java.lang.String name)
                                                             throws com.liferay.portlet.polls.NoSuchChoiceException,
                                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portlet.polls.NoSuchChoiceException
com.liferay.portal.SystemException

fetchByQ_N

public static com.liferay.portlet.polls.model.PollsChoice fetchByQ_N(long questionId,
                                                                     java.lang.String name)
                                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                                  int begin,
                                                  int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll()
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll(int begin,
                                     int end)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll(int begin,
                                     int end,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByQuestionId

public static void removeByQuestionId(long questionId)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByQ_N

public static void removeByQ_N(long questionId,
                               java.lang.String name)
                        throws com.liferay.portlet.polls.NoSuchChoiceException,
                               com.liferay.portal.SystemException
Throws:
com.liferay.portlet.polls.NoSuchChoiceException
com.liferay.portal.SystemException

removeAll

public static void removeAll()
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByQuestionId

public static int countByQuestionId(long questionId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByQ_N

public static int countByQ_N(long questionId,
                             java.lang.String name)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

public static int countAll()
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPersistence

public static PollsChoicePersistence getPersistence()

setPersistence

public void setPersistence(PollsChoicePersistence persistence)