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

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Author:
Brian Wing Shun Chan
See Also:
PollsChoicePersistence, PollsChoicePersistenceImpl
Generated:

Constructor Summary
PollsChoiceUtil()
           
 
Method Summary
static void cacheResult(java.util.List<PollsChoice> pollsChoices)
           
static void cacheResult(PollsChoice pollsChoice)
           
static void clearCache()
           
static void clearCache(PollsChoice pollsChoice)
           
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)
           
 int countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static PollsChoice create(long choiceId)
           
static PollsChoice fetchByPrimaryKey(long choiceId)
           
static PollsChoice fetchByQ_N(long questionId, java.lang.String name)
           
static PollsChoice fetchByQ_N(long questionId, java.lang.String name, boolean retrieveFromCache)
           
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 orderByComparator)
           
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 orderByComparator)
           
static PollsChoice findByQuestionId_Last(long questionId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static PollsChoice[] findByQuestionId_PrevAndNext(long choiceId, long questionId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
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 orderByComparator)
           
static PollsChoice findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static PollsChoice findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static PollsChoice[] findByUuid_PrevAndNext(long choiceId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
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 orderByComparator)
           
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 com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean).
static PollsChoice update(PollsChoice pollsChoice, boolean merge)
           
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

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(PollsChoice pollsChoice)
See Also:
com.liferay.portal.service.persistence.BasePersistence#clearCache(PollsChoice)

countWithDynamicQuery

public int countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

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
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

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
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

remove

public static PollsChoice remove(PollsChoice pollsChoice)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static PollsChoice update(PollsChoice pollsChoice,
                                 boolean merge)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

cacheResult

public static void cacheResult(PollsChoice pollsChoice)

cacheResult

public static void cacheResult(java.util.List<PollsChoice> pollsChoices)

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

update

public static PollsChoice update(PollsChoice pollsChoice)
                          throws com.liferay.portal.SystemException
Deprecated. Use com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean).

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 orderByComparator)
                                              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 orderByComparator)
                                    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 orderByComparator)
                                   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 orderByComparator)
                                            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 orderByComparator)
                                                    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 orderByComparator)
                                          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 orderByComparator)
                                         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 orderByComparator)
                                                  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

fetchByQ_N

public static PollsChoice fetchByQ_N(long questionId,
                                     java.lang.String name,
                                     boolean retrieveFromCache)
                              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 orderByComparator)
                                           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)