1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.polls.service.persistence;
24  
25  import com.liferay.portal.service.persistence.BasePersistence;
26  
27  import com.liferay.portlet.polls.model.PollsQuestion;
28  
29  /**
30   * <a href="PollsQuestionPersistence.java.html"><b><i>View Source</i></b></a>
31   *
32   * <p>
33   * ServiceBuilder generated this class. Modifications in this class will be
34   * overwritten the next time is generated.
35   * </p>
36   *
37   * @author    Brian Wing Shun Chan
38   * @see       PollsQuestionPersistenceImpl
39   * @see       PollsQuestionUtil
40   * @generated
41   */
42  public interface PollsQuestionPersistence extends BasePersistence<PollsQuestion> {
43      public void cacheResult(
44          com.liferay.portlet.polls.model.PollsQuestion pollsQuestion);
45  
46      public void cacheResult(
47          java.util.List<com.liferay.portlet.polls.model.PollsQuestion> pollsQuestions);
48  
49      public com.liferay.portlet.polls.model.PollsQuestion create(long questionId);
50  
51      public com.liferay.portlet.polls.model.PollsQuestion remove(long questionId)
52          throws com.liferay.portal.SystemException,
53              com.liferay.portlet.polls.NoSuchQuestionException;
54  
55      /**
56       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
57       */
58      public com.liferay.portlet.polls.model.PollsQuestion update(
59          com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
60          throws com.liferay.portal.SystemException;
61  
62      public com.liferay.portlet.polls.model.PollsQuestion updateImpl(
63          com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
64          boolean merge) throws com.liferay.portal.SystemException;
65  
66      public com.liferay.portlet.polls.model.PollsQuestion findByPrimaryKey(
67          long questionId)
68          throws com.liferay.portal.SystemException,
69              com.liferay.portlet.polls.NoSuchQuestionException;
70  
71      public com.liferay.portlet.polls.model.PollsQuestion fetchByPrimaryKey(
72          long questionId) throws com.liferay.portal.SystemException;
73  
74      public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
75          java.lang.String uuid) throws com.liferay.portal.SystemException;
76  
77      public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
78          java.lang.String uuid, int start, int end)
79          throws com.liferay.portal.SystemException;
80  
81      public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
82          java.lang.String uuid, int start, int end,
83          com.liferay.portal.kernel.util.OrderByComparator obc)
84          throws com.liferay.portal.SystemException;
85  
86      public com.liferay.portlet.polls.model.PollsQuestion findByUuid_First(
87          java.lang.String uuid,
88          com.liferay.portal.kernel.util.OrderByComparator obc)
89          throws com.liferay.portal.SystemException,
90              com.liferay.portlet.polls.NoSuchQuestionException;
91  
92      public com.liferay.portlet.polls.model.PollsQuestion findByUuid_Last(
93          java.lang.String uuid,
94          com.liferay.portal.kernel.util.OrderByComparator obc)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.polls.NoSuchQuestionException;
97  
98      public com.liferay.portlet.polls.model.PollsQuestion[] findByUuid_PrevAndNext(
99          long questionId, java.lang.String uuid,
100         com.liferay.portal.kernel.util.OrderByComparator obc)
101         throws com.liferay.portal.SystemException,
102             com.liferay.portlet.polls.NoSuchQuestionException;
103 
104     public com.liferay.portlet.polls.model.PollsQuestion findByUUID_G(
105         java.lang.String uuid, long groupId)
106         throws com.liferay.portal.SystemException,
107             com.liferay.portlet.polls.NoSuchQuestionException;
108 
109     public com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
110         java.lang.String uuid, long groupId)
111         throws com.liferay.portal.SystemException;
112 
113     public com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
114         java.lang.String uuid, long groupId, boolean retrieveFromCache)
115         throws com.liferay.portal.SystemException;
116 
117     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
118         long groupId) throws com.liferay.portal.SystemException;
119 
120     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
121         long groupId, int start, int end)
122         throws com.liferay.portal.SystemException;
123 
124     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
125         long groupId, int start, int end,
126         com.liferay.portal.kernel.util.OrderByComparator obc)
127         throws com.liferay.portal.SystemException;
128 
129     public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_First(
130         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.SystemException,
132             com.liferay.portlet.polls.NoSuchQuestionException;
133 
134     public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_Last(
135         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.SystemException,
137             com.liferay.portlet.polls.NoSuchQuestionException;
138 
139     public com.liferay.portlet.polls.model.PollsQuestion[] findByGroupId_PrevAndNext(
140         long questionId, long groupId,
141         com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.SystemException,
143             com.liferay.portlet.polls.NoSuchQuestionException;
144 
145     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll()
146         throws com.liferay.portal.SystemException;
147 
148     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
149         int start, int end) throws com.liferay.portal.SystemException;
150 
151     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
152         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.SystemException;
154 
155     public void removeByUuid(java.lang.String uuid)
156         throws com.liferay.portal.SystemException;
157 
158     public void removeByUUID_G(java.lang.String uuid, long groupId)
159         throws com.liferay.portal.SystemException,
160             com.liferay.portlet.polls.NoSuchQuestionException;
161 
162     public void removeByGroupId(long groupId)
163         throws com.liferay.portal.SystemException;
164 
165     public void removeAll() throws com.liferay.portal.SystemException;
166 
167     public int countByUuid(java.lang.String uuid)
168         throws com.liferay.portal.SystemException;
169 
170     public int countByUUID_G(java.lang.String uuid, long groupId)
171         throws com.liferay.portal.SystemException;
172 
173     public int countByGroupId(long groupId)
174         throws com.liferay.portal.SystemException;
175 
176     public int countAll() throws com.liferay.portal.SystemException;
177 }