1
22
23 package com.liferay.portal.service.persistence;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Propagation;
28 import com.liferay.portal.kernel.annotation.Transactional;
29
30
36 @Transactional(rollbackFor = {
37 PortalException.class, SystemException.class})
38 public interface MembershipRequestPersistence extends BasePersistence {
39 public com.liferay.portal.model.MembershipRequest create(
40 long membershipRequestId);
41
42 public com.liferay.portal.model.MembershipRequest remove(
43 long membershipRequestId)
44 throws com.liferay.portal.NoSuchMembershipRequestException,
45 com.liferay.portal.SystemException;
46
47 public com.liferay.portal.model.MembershipRequest remove(
48 com.liferay.portal.model.MembershipRequest membershipRequest)
49 throws com.liferay.portal.SystemException;
50
51
54 public com.liferay.portal.model.MembershipRequest update(
55 com.liferay.portal.model.MembershipRequest membershipRequest)
56 throws com.liferay.portal.SystemException;
57
58
71 public com.liferay.portal.model.MembershipRequest update(
72 com.liferay.portal.model.MembershipRequest membershipRequest,
73 boolean merge) throws com.liferay.portal.SystemException;
74
75 public com.liferay.portal.model.MembershipRequest updateImpl(
76 com.liferay.portal.model.MembershipRequest membershipRequest,
77 boolean merge) throws com.liferay.portal.SystemException;
78
79 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80 public com.liferay.portal.model.MembershipRequest findByPrimaryKey(
81 long membershipRequestId)
82 throws com.liferay.portal.NoSuchMembershipRequestException,
83 com.liferay.portal.SystemException;
84
85 public com.liferay.portal.model.MembershipRequest fetchByPrimaryKey(
86 long membershipRequestId) throws com.liferay.portal.SystemException;
87
88 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89 public java.util.List<com.liferay.portal.model.MembershipRequest> findByGroupId(
90 long groupId) throws com.liferay.portal.SystemException;
91
92 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93 public java.util.List<com.liferay.portal.model.MembershipRequest> findByGroupId(
94 long groupId, int start, int end)
95 throws com.liferay.portal.SystemException;
96
97 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
98 public java.util.List<com.liferay.portal.model.MembershipRequest> findByGroupId(
99 long groupId, int start, int end,
100 com.liferay.portal.kernel.util.OrderByComparator obc)
101 throws com.liferay.portal.SystemException;
102
103 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104 public com.liferay.portal.model.MembershipRequest findByGroupId_First(
105 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
106 throws com.liferay.portal.NoSuchMembershipRequestException,
107 com.liferay.portal.SystemException;
108
109 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110 public com.liferay.portal.model.MembershipRequest findByGroupId_Last(
111 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
112 throws com.liferay.portal.NoSuchMembershipRequestException,
113 com.liferay.portal.SystemException;
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public com.liferay.portal.model.MembershipRequest[] findByGroupId_PrevAndNext(
117 long membershipRequestId, long groupId,
118 com.liferay.portal.kernel.util.OrderByComparator obc)
119 throws com.liferay.portal.NoSuchMembershipRequestException,
120 com.liferay.portal.SystemException;
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public java.util.List<com.liferay.portal.model.MembershipRequest> findByUserId(
124 long userId) throws com.liferay.portal.SystemException;
125
126 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127 public java.util.List<com.liferay.portal.model.MembershipRequest> findByUserId(
128 long userId, int start, int end)
129 throws com.liferay.portal.SystemException;
130
131 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132 public java.util.List<com.liferay.portal.model.MembershipRequest> findByUserId(
133 long userId, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator obc)
135 throws com.liferay.portal.SystemException;
136
137 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138 public com.liferay.portal.model.MembershipRequest findByUserId_First(
139 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
140 throws com.liferay.portal.NoSuchMembershipRequestException,
141 com.liferay.portal.SystemException;
142
143 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144 public com.liferay.portal.model.MembershipRequest findByUserId_Last(
145 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
146 throws com.liferay.portal.NoSuchMembershipRequestException,
147 com.liferay.portal.SystemException;
148
149 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150 public com.liferay.portal.model.MembershipRequest[] findByUserId_PrevAndNext(
151 long membershipRequestId, long userId,
152 com.liferay.portal.kernel.util.OrderByComparator obc)
153 throws com.liferay.portal.NoSuchMembershipRequestException,
154 com.liferay.portal.SystemException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public java.util.List<com.liferay.portal.model.MembershipRequest> findByG_S(
158 long groupId, int statusId) throws com.liferay.portal.SystemException;
159
160 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161 public java.util.List<com.liferay.portal.model.MembershipRequest> findByG_S(
162 long groupId, int statusId, int start, int end)
163 throws com.liferay.portal.SystemException;
164
165 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166 public java.util.List<com.liferay.portal.model.MembershipRequest> findByG_S(
167 long groupId, int statusId, int start, int end,
168 com.liferay.portal.kernel.util.OrderByComparator obc)
169 throws com.liferay.portal.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public com.liferay.portal.model.MembershipRequest findByG_S_First(
173 long groupId, int statusId,
174 com.liferay.portal.kernel.util.OrderByComparator obc)
175 throws com.liferay.portal.NoSuchMembershipRequestException,
176 com.liferay.portal.SystemException;
177
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public com.liferay.portal.model.MembershipRequest findByG_S_Last(
180 long groupId, int statusId,
181 com.liferay.portal.kernel.util.OrderByComparator obc)
182 throws com.liferay.portal.NoSuchMembershipRequestException,
183 com.liferay.portal.SystemException;
184
185 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186 public com.liferay.portal.model.MembershipRequest[] findByG_S_PrevAndNext(
187 long membershipRequestId, long groupId, int statusId,
188 com.liferay.portal.kernel.util.OrderByComparator obc)
189 throws com.liferay.portal.NoSuchMembershipRequestException,
190 com.liferay.portal.SystemException;
191
192 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193 public java.util.List<Object> findWithDynamicQuery(
194 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
195 throws com.liferay.portal.SystemException;
196
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public java.util.List<Object> findWithDynamicQuery(
199 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
200 int end) throws com.liferay.portal.SystemException;
201
202 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203 public java.util.List<com.liferay.portal.model.MembershipRequest> findAll()
204 throws com.liferay.portal.SystemException;
205
206 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207 public java.util.List<com.liferay.portal.model.MembershipRequest> findAll(
208 int start, int end) throws com.liferay.portal.SystemException;
209
210 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211 public java.util.List<com.liferay.portal.model.MembershipRequest> findAll(
212 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
213 throws com.liferay.portal.SystemException;
214
215 public void removeByGroupId(long groupId)
216 throws com.liferay.portal.SystemException;
217
218 public void removeByUserId(long userId)
219 throws com.liferay.portal.SystemException;
220
221 public void removeByG_S(long groupId, int statusId)
222 throws com.liferay.portal.SystemException;
223
224 public void removeAll() throws com.liferay.portal.SystemException;
225
226 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
227 public int countByGroupId(long groupId)
228 throws com.liferay.portal.SystemException;
229
230 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231 public int countByUserId(long userId)
232 throws com.liferay.portal.SystemException;
233
234 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
235 public int countByG_S(long groupId, int statusId)
236 throws com.liferay.portal.SystemException;
237
238 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239 public int countAll() throws com.liferay.portal.SystemException;
240 }