1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.polls.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.polls.model.PollsChoice;
20  
21  /**
22   * <a href="PollsChoicePersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       PollsChoicePersistenceImpl
31   * @see       PollsChoiceUtil
32   * @generated
33   */
34  public interface PollsChoicePersistence extends BasePersistence<PollsChoice> {
35      public void cacheResult(
36          com.liferay.portlet.polls.model.PollsChoice pollsChoice);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.polls.model.PollsChoice> pollsChoices);
40  
41      public com.liferay.portlet.polls.model.PollsChoice create(long choiceId);
42  
43      public com.liferay.portlet.polls.model.PollsChoice remove(long choiceId)
44          throws com.liferay.portal.kernel.exception.SystemException,
45              com.liferay.portlet.polls.NoSuchChoiceException;
46  
47      public com.liferay.portlet.polls.model.PollsChoice updateImpl(
48          com.liferay.portlet.polls.model.PollsChoice pollsChoice, boolean merge)
49          throws com.liferay.portal.kernel.exception.SystemException;
50  
51      public com.liferay.portlet.polls.model.PollsChoice findByPrimaryKey(
52          long choiceId)
53          throws com.liferay.portal.kernel.exception.SystemException,
54              com.liferay.portlet.polls.NoSuchChoiceException;
55  
56      public com.liferay.portlet.polls.model.PollsChoice fetchByPrimaryKey(
57          long choiceId)
58          throws com.liferay.portal.kernel.exception.SystemException;
59  
60      public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findByUuid(
61          java.lang.String uuid)
62          throws com.liferay.portal.kernel.exception.SystemException;
63  
64      public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findByUuid(
65          java.lang.String uuid, int start, int end)
66          throws com.liferay.portal.kernel.exception.SystemException;
67  
68      public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findByUuid(
69          java.lang.String uuid, int start, int end,
70          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
71          throws com.liferay.portal.kernel.exception.SystemException;
72  
73      public com.liferay.portlet.polls.model.PollsChoice findByUuid_First(
74          java.lang.String uuid,
75          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
76          throws com.liferay.portal.kernel.exception.SystemException,
77              com.liferay.portlet.polls.NoSuchChoiceException;
78  
79      public com.liferay.portlet.polls.model.PollsChoice findByUuid_Last(
80          java.lang.String uuid,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.kernel.exception.SystemException,
83              com.liferay.portlet.polls.NoSuchChoiceException;
84  
85      public com.liferay.portlet.polls.model.PollsChoice[] findByUuid_PrevAndNext(
86          long choiceId, java.lang.String uuid,
87          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
88          throws com.liferay.portal.kernel.exception.SystemException,
89              com.liferay.portlet.polls.NoSuchChoiceException;
90  
91      public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findByQuestionId(
92          long questionId)
93          throws com.liferay.portal.kernel.exception.SystemException;
94  
95      public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findByQuestionId(
96          long questionId, int start, int end)
97          throws com.liferay.portal.kernel.exception.SystemException;
98  
99      public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findByQuestionId(
100         long questionId, int start, int end,
101         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102         throws com.liferay.portal.kernel.exception.SystemException;
103 
104     public com.liferay.portlet.polls.model.PollsChoice findByQuestionId_First(
105         long questionId,
106         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
107         throws com.liferay.portal.kernel.exception.SystemException,
108             com.liferay.portlet.polls.NoSuchChoiceException;
109 
110     public com.liferay.portlet.polls.model.PollsChoice findByQuestionId_Last(
111         long questionId,
112         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
113         throws com.liferay.portal.kernel.exception.SystemException,
114             com.liferay.portlet.polls.NoSuchChoiceException;
115 
116     public com.liferay.portlet.polls.model.PollsChoice[] findByQuestionId_PrevAndNext(
117         long choiceId, long questionId,
118         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
119         throws com.liferay.portal.kernel.exception.SystemException,
120             com.liferay.portlet.polls.NoSuchChoiceException;
121 
122     public com.liferay.portlet.polls.model.PollsChoice findByQ_N(
123         long questionId, java.lang.String name)
124         throws com.liferay.portal.kernel.exception.SystemException,
125             com.liferay.portlet.polls.NoSuchChoiceException;
126 
127     public com.liferay.portlet.polls.model.PollsChoice fetchByQ_N(
128         long questionId, java.lang.String name)
129         throws com.liferay.portal.kernel.exception.SystemException;
130 
131     public com.liferay.portlet.polls.model.PollsChoice fetchByQ_N(
132         long questionId, java.lang.String name, boolean retrieveFromCache)
133         throws com.liferay.portal.kernel.exception.SystemException;
134 
135     public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findAll()
136         throws com.liferay.portal.kernel.exception.SystemException;
137 
138     public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findAll(
139         int start, int end)
140         throws com.liferay.portal.kernel.exception.SystemException;
141 
142     public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findAll(
143         int start, int end,
144         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145         throws com.liferay.portal.kernel.exception.SystemException;
146 
147     public void removeByUuid(java.lang.String uuid)
148         throws com.liferay.portal.kernel.exception.SystemException;
149 
150     public void removeByQuestionId(long questionId)
151         throws com.liferay.portal.kernel.exception.SystemException;
152 
153     public void removeByQ_N(long questionId, java.lang.String name)
154         throws com.liferay.portal.kernel.exception.SystemException,
155             com.liferay.portlet.polls.NoSuchChoiceException;
156 
157     public void removeAll()
158         throws com.liferay.portal.kernel.exception.SystemException;
159 
160     public int countByUuid(java.lang.String uuid)
161         throws com.liferay.portal.kernel.exception.SystemException;
162 
163     public int countByQuestionId(long questionId)
164         throws com.liferay.portal.kernel.exception.SystemException;
165 
166     public int countByQ_N(long questionId, java.lang.String name)
167         throws com.liferay.portal.kernel.exception.SystemException;
168 
169     public int countAll()
170         throws com.liferay.portal.kernel.exception.SystemException;
171 }