1
22
23 package com.liferay.portlet.polls.service.persistence;
24
25 import com.liferay.portal.service.persistence.BasePersistence;
26
27
40 public interface PollsQuestionPersistence extends BasePersistence {
41 public void cacheResult(
42 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion);
43
44 public void cacheResult(
45 java.util.List<com.liferay.portlet.polls.model.PollsQuestion> pollsQuestions);
46
47 public void clearCache();
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 public com.liferay.portlet.polls.model.PollsQuestion remove(
56 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
57 throws com.liferay.portal.SystemException;
58
59
62 public com.liferay.portlet.polls.model.PollsQuestion update(
63 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
64 throws com.liferay.portal.SystemException;
65
66
78 public com.liferay.portlet.polls.model.PollsQuestion update(
79 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
80 boolean merge) throws com.liferay.portal.SystemException;
81
82 public com.liferay.portlet.polls.model.PollsQuestion updateImpl(
83 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
84 boolean merge) throws com.liferay.portal.SystemException;
85
86 public com.liferay.portlet.polls.model.PollsQuestion findByPrimaryKey(
87 long questionId)
88 throws com.liferay.portal.SystemException,
89 com.liferay.portlet.polls.NoSuchQuestionException;
90
91 public com.liferay.portlet.polls.model.PollsQuestion fetchByPrimaryKey(
92 long questionId) throws com.liferay.portal.SystemException;
93
94 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
95 java.lang.String uuid) throws com.liferay.portal.SystemException;
96
97 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
98 java.lang.String uuid, int start, int end)
99 throws com.liferay.portal.SystemException;
100
101 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
102 java.lang.String uuid, int start, int end,
103 com.liferay.portal.kernel.util.OrderByComparator obc)
104 throws com.liferay.portal.SystemException;
105
106 public com.liferay.portlet.polls.model.PollsQuestion findByUuid_First(
107 java.lang.String uuid,
108 com.liferay.portal.kernel.util.OrderByComparator obc)
109 throws com.liferay.portal.SystemException,
110 com.liferay.portlet.polls.NoSuchQuestionException;
111
112 public com.liferay.portlet.polls.model.PollsQuestion findByUuid_Last(
113 java.lang.String uuid,
114 com.liferay.portal.kernel.util.OrderByComparator obc)
115 throws com.liferay.portal.SystemException,
116 com.liferay.portlet.polls.NoSuchQuestionException;
117
118 public com.liferay.portlet.polls.model.PollsQuestion[] findByUuid_PrevAndNext(
119 long questionId, java.lang.String uuid,
120 com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.SystemException,
122 com.liferay.portlet.polls.NoSuchQuestionException;
123
124 public com.liferay.portlet.polls.model.PollsQuestion findByUUID_G(
125 java.lang.String uuid, long groupId)
126 throws com.liferay.portal.SystemException,
127 com.liferay.portlet.polls.NoSuchQuestionException;
128
129 public com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
130 java.lang.String uuid, long groupId)
131 throws com.liferay.portal.SystemException;
132
133 public com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
134 java.lang.String uuid, long groupId, boolean retrieveFromCache)
135 throws com.liferay.portal.SystemException;
136
137 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
138 long groupId) throws com.liferay.portal.SystemException;
139
140 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
141 long groupId, int start, int end)
142 throws com.liferay.portal.SystemException;
143
144 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
145 long groupId, int start, int end,
146 com.liferay.portal.kernel.util.OrderByComparator obc)
147 throws com.liferay.portal.SystemException;
148
149 public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_First(
150 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
151 throws com.liferay.portal.SystemException,
152 com.liferay.portlet.polls.NoSuchQuestionException;
153
154 public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_Last(
155 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
156 throws com.liferay.portal.SystemException,
157 com.liferay.portlet.polls.NoSuchQuestionException;
158
159 public com.liferay.portlet.polls.model.PollsQuestion[] findByGroupId_PrevAndNext(
160 long questionId, long groupId,
161 com.liferay.portal.kernel.util.OrderByComparator obc)
162 throws com.liferay.portal.SystemException,
163 com.liferay.portlet.polls.NoSuchQuestionException;
164
165 public java.util.List<Object> findWithDynamicQuery(
166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167 throws com.liferay.portal.SystemException;
168
169 public java.util.List<Object> findWithDynamicQuery(
170 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
171 int end) throws com.liferay.portal.SystemException;
172
173 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll()
174 throws com.liferay.portal.SystemException;
175
176 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
177 int start, int end) throws com.liferay.portal.SystemException;
178
179 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
180 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
181 throws com.liferay.portal.SystemException;
182
183 public void removeByUuid(java.lang.String uuid)
184 throws com.liferay.portal.SystemException;
185
186 public void removeByUUID_G(java.lang.String uuid, long groupId)
187 throws com.liferay.portal.SystemException,
188 com.liferay.portlet.polls.NoSuchQuestionException;
189
190 public void removeByGroupId(long groupId)
191 throws com.liferay.portal.SystemException;
192
193 public void removeAll() throws com.liferay.portal.SystemException;
194
195 public int countByUuid(java.lang.String uuid)
196 throws com.liferay.portal.SystemException;
197
198 public int countByUUID_G(java.lang.String uuid, long groupId)
199 throws com.liferay.portal.SystemException;
200
201 public int countByGroupId(long groupId)
202 throws com.liferay.portal.SystemException;
203
204 public int countAll() throws com.liferay.portal.SystemException;
205 }