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.PollsQuestion;
20  
21  /**
22   * <a href="PollsQuestionPersistence.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       PollsQuestionPersistenceImpl
31   * @see       PollsQuestionUtil
32   * @generated
33   */
34  public interface PollsQuestionPersistence extends BasePersistence<PollsQuestion> {
35      public void cacheResult(
36          com.liferay.portlet.polls.model.PollsQuestion pollsQuestion);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.polls.model.PollsQuestion> pollsQuestions);
40  
41      public com.liferay.portlet.polls.model.PollsQuestion create(long questionId);
42  
43      public com.liferay.portlet.polls.model.PollsQuestion remove(long questionId)
44          throws com.liferay.portal.kernel.exception.SystemException,
45              com.liferay.portlet.polls.NoSuchQuestionException;
46  
47      public com.liferay.portlet.polls.model.PollsQuestion updateImpl(
48          com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
49          boolean merge)
50          throws com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portlet.polls.model.PollsQuestion findByPrimaryKey(
53          long questionId)
54          throws com.liferay.portal.kernel.exception.SystemException,
55              com.liferay.portlet.polls.NoSuchQuestionException;
56  
57      public com.liferay.portlet.polls.model.PollsQuestion fetchByPrimaryKey(
58          long questionId)
59          throws com.liferay.portal.kernel.exception.SystemException;
60  
61      public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
62          java.lang.String uuid)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
66          java.lang.String uuid, int start, int end)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
70          java.lang.String uuid, int start, int end,
71          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
72          throws com.liferay.portal.kernel.exception.SystemException;
73  
74      public com.liferay.portlet.polls.model.PollsQuestion findByUuid_First(
75          java.lang.String uuid,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.kernel.exception.SystemException,
78              com.liferay.portlet.polls.NoSuchQuestionException;
79  
80      public com.liferay.portlet.polls.model.PollsQuestion findByUuid_Last(
81          java.lang.String uuid,
82          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83          throws com.liferay.portal.kernel.exception.SystemException,
84              com.liferay.portlet.polls.NoSuchQuestionException;
85  
86      public com.liferay.portlet.polls.model.PollsQuestion[] findByUuid_PrevAndNext(
87          long questionId, java.lang.String uuid,
88          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
89          throws com.liferay.portal.kernel.exception.SystemException,
90              com.liferay.portlet.polls.NoSuchQuestionException;
91  
92      public com.liferay.portlet.polls.model.PollsQuestion findByUUID_G(
93          java.lang.String uuid, long groupId)
94          throws com.liferay.portal.kernel.exception.SystemException,
95              com.liferay.portlet.polls.NoSuchQuestionException;
96  
97      public com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
98          java.lang.String uuid, long groupId)
99          throws com.liferay.portal.kernel.exception.SystemException;
100 
101     public com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
102         java.lang.String uuid, long groupId, boolean retrieveFromCache)
103         throws com.liferay.portal.kernel.exception.SystemException;
104 
105     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
106         long groupId)
107         throws com.liferay.portal.kernel.exception.SystemException;
108 
109     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
110         long groupId, int start, int end)
111         throws com.liferay.portal.kernel.exception.SystemException;
112 
113     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
114         long groupId, int start, int end,
115         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116         throws com.liferay.portal.kernel.exception.SystemException;
117 
118     public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_First(
119         long groupId,
120         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
121         throws com.liferay.portal.kernel.exception.SystemException,
122             com.liferay.portlet.polls.NoSuchQuestionException;
123 
124     public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_Last(
125         long groupId,
126         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
127         throws com.liferay.portal.kernel.exception.SystemException,
128             com.liferay.portlet.polls.NoSuchQuestionException;
129 
130     public com.liferay.portlet.polls.model.PollsQuestion[] findByGroupId_PrevAndNext(
131         long questionId, long groupId,
132         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133         throws com.liferay.portal.kernel.exception.SystemException,
134             com.liferay.portlet.polls.NoSuchQuestionException;
135 
136     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> filterFindByGroupId(
137         long groupId)
138         throws com.liferay.portal.kernel.exception.SystemException;
139 
140     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> filterFindByGroupId(
141         long groupId, int start, int end)
142         throws com.liferay.portal.kernel.exception.SystemException;
143 
144     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> filterFindByGroupId(
145         long groupId, int start, int end,
146         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
147         throws com.liferay.portal.kernel.exception.SystemException;
148 
149     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll()
150         throws com.liferay.portal.kernel.exception.SystemException;
151 
152     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
153         int start, int end)
154         throws com.liferay.portal.kernel.exception.SystemException;
155 
156     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
157         int start, int end,
158         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159         throws com.liferay.portal.kernel.exception.SystemException;
160 
161     public void removeByUuid(java.lang.String uuid)
162         throws com.liferay.portal.kernel.exception.SystemException;
163 
164     public void removeByUUID_G(java.lang.String uuid, long groupId)
165         throws com.liferay.portal.kernel.exception.SystemException,
166             com.liferay.portlet.polls.NoSuchQuestionException;
167 
168     public void removeByGroupId(long groupId)
169         throws com.liferay.portal.kernel.exception.SystemException;
170 
171     public void removeAll()
172         throws com.liferay.portal.kernel.exception.SystemException;
173 
174     public int countByUuid(java.lang.String uuid)
175         throws com.liferay.portal.kernel.exception.SystemException;
176 
177     public int countByUUID_G(java.lang.String uuid, long groupId)
178         throws com.liferay.portal.kernel.exception.SystemException;
179 
180     public int countByGroupId(long groupId)
181         throws com.liferay.portal.kernel.exception.SystemException;
182 
183     public int filterCountByGroupId(long groupId)
184         throws com.liferay.portal.kernel.exception.SystemException;
185 
186     public int countAll()
187         throws com.liferay.portal.kernel.exception.SystemException;
188 }