com.liferay.portlet.polls.service.persistence
Interface PollsChoicePersistence


public interface PollsChoicePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByQ_N(long questionId, java.lang.String name)
           
 int countByQuestionId(long questionId)
           
 int countByUuid(java.lang.String uuid)
           
 PollsChoice create(long choiceId)
           
 PollsChoice fetchByPrimaryKey(long choiceId)
           
 PollsChoice fetchByQ_N(long questionId, java.lang.String name)
           
 java.util.List<PollsChoice> findAll()
           
 java.util.List<PollsChoice> findAll(int begin, int end)
           
 java.util.List<PollsChoice> findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PollsChoice findByPrimaryKey(long choiceId)
           
 PollsChoice findByQ_N(long questionId, java.lang.String name)
           
 PollsChoice findByQuestionId_First(long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PollsChoice findByQuestionId_Last(long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PollsChoice[] findByQuestionId_PrevAndNext(long choiceId, long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<PollsChoice> findByQuestionId(long questionId)
           
 java.util.List<PollsChoice> findByQuestionId(long questionId, int begin, int end)
           
 java.util.List<PollsChoice> findByQuestionId(long questionId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PollsChoice findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PollsChoice findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 PollsChoice[] findByUuid_PrevAndNext(long choiceId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<PollsChoice> findByUuid(java.lang.String uuid)
           
 java.util.List<PollsChoice> findByUuid(java.lang.String uuid, int begin, int end)
           
 java.util.List<PollsChoice> findByUuid(java.lang.String uuid, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<PollsChoice> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List<PollsChoice> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 PollsChoice remove(long choiceId)
           
 PollsChoice remove(PollsChoice pollsChoice)
           
 void removeAll()
           
 void removeByQ_N(long questionId, java.lang.String name)
           
 void removeByQuestionId(long questionId)
           
 void removeByUuid(java.lang.String uuid)
           
 PollsChoice update(PollsChoice pollsChoice)
          Deprecated. Use update(PollsChoice pollsChoice, boolean merge).
 PollsChoice update(PollsChoice pollsChoice, boolean merge)
          Add, update, or merge, the entity.
 PollsChoice updateImpl(PollsChoice pollsChoice, boolean merge)
           
 

Method Detail

create

PollsChoice create(long choiceId)

remove

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

remove

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

update

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

Throws:
com.liferay.portal.SystemException

update

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

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

findByPrimaryKey

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

fetchByPrimaryKey

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

findByUuid

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

findByUuid

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

findByUuid

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

findByUuid_First

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

findByUuid_Last

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

findByUuid_PrevAndNext

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

findByQuestionId

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

findByQuestionId

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

findByQuestionId

java.util.List<PollsChoice> 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

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

findByQuestionId_Last

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

findByQuestionId_PrevAndNext

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

findByQ_N

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

fetchByQ_N

PollsChoice fetchByQ_N(long questionId,
                       java.lang.String name)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

java.util.List<PollsChoice> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

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

findAll

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

findAll

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

findAll

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

removeByUuid

void removeByUuid(java.lang.String uuid)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByQuestionId

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

removeByQ_N

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

removeAll

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

countByUuid

int countByUuid(java.lang.String uuid)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByQuestionId

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

countByQ_N

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

countAll

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