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

java.lang.Object
  extended by com.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 int countByUuid(java.lang.String uuid)
           
static PollsChoice create(long choiceId)
           
static PollsChoice fetchByPrimaryKey(long choiceId)
           
static PollsChoice fetchByQ_N(long questionId, java.lang.String name)
           
static java.util.List<PollsChoice> findAll()
           
static java.util.List<PollsChoice> findAll(int start, int end)
           
static java.util.List<PollsChoice> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static PollsChoice findByPrimaryKey(long choiceId)
           
static PollsChoice findByQ_N(long questionId, java.lang.String name)
           
static PollsChoice findByQuestionId_First(long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static PollsChoice findByQuestionId_Last(long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static PollsChoice[] findByQuestionId_PrevAndNext(long choiceId, long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<PollsChoice> findByQuestionId(long questionId)
           
static java.util.List<PollsChoice> findByQuestionId(long questionId, int start, int end)
           
static java.util.List<PollsChoice> findByQuestionId(long questionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static PollsChoice findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static PollsChoice findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static PollsChoice[] findByUuid_PrevAndNext(long choiceId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<PollsChoice> findByUuid(java.lang.String uuid)
           
static java.util.List<PollsChoice> findByUuid(java.lang.String uuid, int start, int end)
           
static java.util.List<PollsChoice> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static PollsChoicePersistence getPersistence()
           
static PollsChoice remove(long choiceId)
           
static PollsChoice remove(PollsChoice pollsChoice)
           
static void removeAll()
           
static void removeByQ_N(long questionId, java.lang.String name)
           
static void removeByQuestionId(long questionId)
           
static void removeByUuid(java.lang.String uuid)
           
 void setPersistence(PollsChoicePersistence persistence)
           
static PollsChoice update(PollsChoice pollsChoice)
          Deprecated. Use update(PollsChoice pollsChoice, boolean merge).
static PollsChoice update(PollsChoice pollsChoice, boolean merge)
          Add, update, or merge, the entity.
static PollsChoice updateImpl(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 PollsChoice create(long choiceId)

remove

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

remove

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

update

public static PollsChoice update(PollsChoice pollsChoice)
                          throws com.liferay.portal.SystemException
Deprecated. Use update(PollsChoice pollsChoice, boolean merge).

Throws:
com.liferay.portal.SystemException

update

public static PollsChoice update(PollsChoice pollsChoice,
                                 boolean merge)
                          throws com.liferay.portal.SystemException
Add, update, or merge, the entity. This method also calls the model listeners to trigger the proper events associated with adding, deleting, or updating an entity.

Parameters:
pollsChoice - the entity to add, update, or merge
merge - boolean value for whether to merge the entity. The default value is false. Setting merge to true is more expensive and should only be true when pollsChoice is transient. See LEP-5473 for a detailed discussion of this method.
Returns:
true if the portlet can be displayed via Ajax
Throws:
com.liferay.portal.SystemException

updateImpl

public static PollsChoice updateImpl(PollsChoice pollsChoice,
                                     boolean merge)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

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

fetchByPrimaryKey

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

findByUuid

public static java.util.List<PollsChoice> findByUuid(java.lang.String uuid)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

public static java.util.List<PollsChoice> findByUuid(java.lang.String uuid,
                                                     int start,
                                                     int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

public static java.util.List<PollsChoice> findByUuid(java.lang.String uuid,
                                                     int start,
                                                     int end,
                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid_First

public static PollsChoice findByUuid_First(java.lang.String uuid,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.SystemException,
                                           NoSuchChoiceException
Throws:
com.liferay.portal.SystemException
NoSuchChoiceException

findByUuid_Last

public static PollsChoice findByUuid_Last(java.lang.String uuid,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws com.liferay.portal.SystemException,
                                          NoSuchChoiceException
Throws:
com.liferay.portal.SystemException
NoSuchChoiceException

findByUuid_PrevAndNext

public static PollsChoice[] findByUuid_PrevAndNext(long choiceId,
                                                   java.lang.String uuid,
                                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                            throws com.liferay.portal.SystemException,
                                                   NoSuchChoiceException
Throws:
com.liferay.portal.SystemException
NoSuchChoiceException

findByQuestionId

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

findByQuestionId

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

findByQuestionId

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

findByQuestionId_First

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

findByQuestionId_Last

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

findByQuestionId_PrevAndNext

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

findByQ_N

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

fetchByQ_N

public static 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<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                                    int start,
                                                                    int end)
                                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

public static java.util.List<PollsChoice> findAll(int start,
                                                  int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

removeByUuid

public static void removeByUuid(java.lang.String uuid)
                         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.portal.SystemException,
                               NoSuchChoiceException
Throws:
com.liferay.portal.SystemException
NoSuchChoiceException

removeAll

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

countByUuid

public static int countByUuid(java.lang.String uuid)
                       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)