1
19
20 package com.liferay.portlet.polls.service.persistence;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.Propagation;
25 import com.liferay.portal.kernel.annotation.Transactional;
26 import com.liferay.portal.service.persistence.BasePersistence;
27
28
34 @Transactional(rollbackFor = {
35 PortalException.class, SystemException.class})
36 public interface PollsQuestionPersistence extends BasePersistence {
37 public com.liferay.portlet.polls.model.PollsQuestion create(long questionId);
38
39 public com.liferay.portlet.polls.model.PollsQuestion remove(long questionId)
40 throws com.liferay.portal.SystemException,
41 com.liferay.portlet.polls.NoSuchQuestionException;
42
43 public com.liferay.portlet.polls.model.PollsQuestion remove(
44 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
45 throws com.liferay.portal.SystemException;
46
47
50 public com.liferay.portlet.polls.model.PollsQuestion update(
51 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
52 throws com.liferay.portal.SystemException;
53
54
67 public com.liferay.portlet.polls.model.PollsQuestion update(
68 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
69 boolean merge) throws com.liferay.portal.SystemException;
70
71 public com.liferay.portlet.polls.model.PollsQuestion updateImpl(
72 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
73 boolean merge) throws com.liferay.portal.SystemException;
74
75 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
76 public com.liferay.portlet.polls.model.PollsQuestion findByPrimaryKey(
77 long questionId)
78 throws com.liferay.portal.SystemException,
79 com.liferay.portlet.polls.NoSuchQuestionException;
80
81 public com.liferay.portlet.polls.model.PollsQuestion fetchByPrimaryKey(
82 long questionId) throws com.liferay.portal.SystemException;
83
84 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
86 java.lang.String uuid) throws com.liferay.portal.SystemException;
87
88 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
90 java.lang.String uuid, int start, int end)
91 throws com.liferay.portal.SystemException;
92
93 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
95 java.lang.String uuid, int start, int end,
96 com.liferay.portal.kernel.util.OrderByComparator obc)
97 throws com.liferay.portal.SystemException;
98
99 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100 public com.liferay.portlet.polls.model.PollsQuestion findByUuid_First(
101 java.lang.String uuid,
102 com.liferay.portal.kernel.util.OrderByComparator obc)
103 throws com.liferay.portal.SystemException,
104 com.liferay.portlet.polls.NoSuchQuestionException;
105
106 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
107 public com.liferay.portlet.polls.model.PollsQuestion findByUuid_Last(
108 java.lang.String uuid,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException,
111 com.liferay.portlet.polls.NoSuchQuestionException;
112
113 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114 public com.liferay.portlet.polls.model.PollsQuestion[] findByUuid_PrevAndNext(
115 long questionId, java.lang.String uuid,
116 com.liferay.portal.kernel.util.OrderByComparator obc)
117 throws com.liferay.portal.SystemException,
118 com.liferay.portlet.polls.NoSuchQuestionException;
119
120 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
121 public com.liferay.portlet.polls.model.PollsQuestion findByUUID_G(
122 java.lang.String uuid, long groupId)
123 throws com.liferay.portal.SystemException,
124 com.liferay.portlet.polls.NoSuchQuestionException;
125
126 public com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
127 java.lang.String uuid, long groupId)
128 throws com.liferay.portal.SystemException;
129
130 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
131 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
132 long groupId) throws com.liferay.portal.SystemException;
133
134 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
135 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
136 long groupId, int start, int end)
137 throws com.liferay.portal.SystemException;
138
139 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
141 long groupId, int start, int end,
142 com.liferay.portal.kernel.util.OrderByComparator obc)
143 throws com.liferay.portal.SystemException;
144
145 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146 public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_First(
147 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
148 throws com.liferay.portal.SystemException,
149 com.liferay.portlet.polls.NoSuchQuestionException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_Last(
153 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
154 throws com.liferay.portal.SystemException,
155 com.liferay.portlet.polls.NoSuchQuestionException;
156
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public com.liferay.portlet.polls.model.PollsQuestion[] findByGroupId_PrevAndNext(
159 long questionId, long groupId,
160 com.liferay.portal.kernel.util.OrderByComparator obc)
161 throws com.liferay.portal.SystemException,
162 com.liferay.portlet.polls.NoSuchQuestionException;
163
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public java.util.List<Object> findWithDynamicQuery(
166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167 throws com.liferay.portal.SystemException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public java.util.List<Object> findWithDynamicQuery(
171 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
172 int end) throws com.liferay.portal.SystemException;
173
174 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll()
176 throws com.liferay.portal.SystemException;
177
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
180 int start, int end) throws com.liferay.portal.SystemException;
181
182 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
184 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
185 throws com.liferay.portal.SystemException;
186
187 public void removeByUuid(java.lang.String uuid)
188 throws com.liferay.portal.SystemException;
189
190 public void removeByUUID_G(java.lang.String uuid, long groupId)
191 throws com.liferay.portal.SystemException,
192 com.liferay.portlet.polls.NoSuchQuestionException;
193
194 public void removeByGroupId(long groupId)
195 throws com.liferay.portal.SystemException;
196
197 public void removeAll() throws com.liferay.portal.SystemException;
198
199 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200 public int countByUuid(java.lang.String uuid)
201 throws com.liferay.portal.SystemException;
202
203 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204 public int countByUUID_G(java.lang.String uuid, long groupId)
205 throws com.liferay.portal.SystemException;
206
207 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208 public int countByGroupId(long groupId)
209 throws com.liferay.portal.SystemException;
210
211 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212 public int countAll() throws com.liferay.portal.SystemException;
213 }