001
014
015 package com.liferay.portal.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.model.OrgGroupRole;
022 import com.liferay.portal.service.ServiceContext;
023
024 import java.util.List;
025
026
032 public class OrgGroupRoleUtil {
033
036 public static void clearCache() {
037 getPersistence().clearCache();
038 }
039
040
043 public static void clearCache(OrgGroupRole orgGroupRole) {
044 getPersistence().clearCache(orgGroupRole);
045 }
046
047
050 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
051 throws SystemException {
052 return getPersistence().countWithDynamicQuery(dynamicQuery);
053 }
054
055
058 public static List<OrgGroupRole> findWithDynamicQuery(
059 DynamicQuery dynamicQuery) throws SystemException {
060 return getPersistence().findWithDynamicQuery(dynamicQuery);
061 }
062
063
066 public static List<OrgGroupRole> findWithDynamicQuery(
067 DynamicQuery dynamicQuery, int start, int end)
068 throws SystemException {
069 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
070 }
071
072
075 public static List<OrgGroupRole> findWithDynamicQuery(
076 DynamicQuery dynamicQuery, int start, int end,
077 OrderByComparator orderByComparator) throws SystemException {
078 return getPersistence()
079 .findWithDynamicQuery(dynamicQuery, start, end,
080 orderByComparator);
081 }
082
083
086 public static OrgGroupRole remove(OrgGroupRole orgGroupRole)
087 throws SystemException {
088 return getPersistence().remove(orgGroupRole);
089 }
090
091
094 public static OrgGroupRole update(OrgGroupRole orgGroupRole, boolean merge)
095 throws SystemException {
096 return getPersistence().update(orgGroupRole, merge);
097 }
098
099
102 public static OrgGroupRole update(OrgGroupRole orgGroupRole, boolean merge,
103 ServiceContext serviceContext) throws SystemException {
104 return getPersistence().update(orgGroupRole, merge, serviceContext);
105 }
106
107 public static void cacheResult(
108 com.liferay.portal.model.OrgGroupRole orgGroupRole) {
109 getPersistence().cacheResult(orgGroupRole);
110 }
111
112 public static void cacheResult(
113 java.util.List<com.liferay.portal.model.OrgGroupRole> orgGroupRoles) {
114 getPersistence().cacheResult(orgGroupRoles);
115 }
116
117 public static com.liferay.portal.model.OrgGroupRole create(
118 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK) {
119 return getPersistence().create(orgGroupRolePK);
120 }
121
122 public static com.liferay.portal.model.OrgGroupRole remove(
123 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
124 throws com.liferay.portal.NoSuchOrgGroupRoleException,
125 com.liferay.portal.kernel.exception.SystemException {
126 return getPersistence().remove(orgGroupRolePK);
127 }
128
129 public static com.liferay.portal.model.OrgGroupRole updateImpl(
130 com.liferay.portal.model.OrgGroupRole orgGroupRole, boolean merge)
131 throws com.liferay.portal.kernel.exception.SystemException {
132 return getPersistence().updateImpl(orgGroupRole, merge);
133 }
134
135 public static com.liferay.portal.model.OrgGroupRole findByPrimaryKey(
136 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
137 throws com.liferay.portal.NoSuchOrgGroupRoleException,
138 com.liferay.portal.kernel.exception.SystemException {
139 return getPersistence().findByPrimaryKey(orgGroupRolePK);
140 }
141
142 public static com.liferay.portal.model.OrgGroupRole fetchByPrimaryKey(
143 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
144 throws com.liferay.portal.kernel.exception.SystemException {
145 return getPersistence().fetchByPrimaryKey(orgGroupRolePK);
146 }
147
148 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId(
149 long groupId)
150 throws com.liferay.portal.kernel.exception.SystemException {
151 return getPersistence().findByGroupId(groupId);
152 }
153
154 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId(
155 long groupId, int start, int end)
156 throws com.liferay.portal.kernel.exception.SystemException {
157 return getPersistence().findByGroupId(groupId, start, end);
158 }
159
160 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId(
161 long groupId, int start, int end,
162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getPersistence()
165 .findByGroupId(groupId, start, end, orderByComparator);
166 }
167
168 public static com.liferay.portal.model.OrgGroupRole findByGroupId_First(
169 long groupId,
170 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171 throws com.liferay.portal.NoSuchOrgGroupRoleException,
172 com.liferay.portal.kernel.exception.SystemException {
173 return getPersistence().findByGroupId_First(groupId, orderByComparator);
174 }
175
176 public static com.liferay.portal.model.OrgGroupRole findByGroupId_Last(
177 long groupId,
178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179 throws com.liferay.portal.NoSuchOrgGroupRoleException,
180 com.liferay.portal.kernel.exception.SystemException {
181 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
182 }
183
184 public static com.liferay.portal.model.OrgGroupRole[] findByGroupId_PrevAndNext(
185 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK,
186 long groupId,
187 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
188 throws com.liferay.portal.NoSuchOrgGroupRoleException,
189 com.liferay.portal.kernel.exception.SystemException {
190 return getPersistence()
191 .findByGroupId_PrevAndNext(orgGroupRolePK, groupId,
192 orderByComparator);
193 }
194
195 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId(
196 long roleId) throws com.liferay.portal.kernel.exception.SystemException {
197 return getPersistence().findByRoleId(roleId);
198 }
199
200 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId(
201 long roleId, int start, int end)
202 throws com.liferay.portal.kernel.exception.SystemException {
203 return getPersistence().findByRoleId(roleId, start, end);
204 }
205
206 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId(
207 long roleId, int start, int end,
208 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209 throws com.liferay.portal.kernel.exception.SystemException {
210 return getPersistence()
211 .findByRoleId(roleId, start, end, orderByComparator);
212 }
213
214 public static com.liferay.portal.model.OrgGroupRole findByRoleId_First(
215 long roleId,
216 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
217 throws com.liferay.portal.NoSuchOrgGroupRoleException,
218 com.liferay.portal.kernel.exception.SystemException {
219 return getPersistence().findByRoleId_First(roleId, orderByComparator);
220 }
221
222 public static com.liferay.portal.model.OrgGroupRole findByRoleId_Last(
223 long roleId,
224 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
225 throws com.liferay.portal.NoSuchOrgGroupRoleException,
226 com.liferay.portal.kernel.exception.SystemException {
227 return getPersistence().findByRoleId_Last(roleId, orderByComparator);
228 }
229
230 public static com.liferay.portal.model.OrgGroupRole[] findByRoleId_PrevAndNext(
231 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK,
232 long roleId,
233 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234 throws com.liferay.portal.NoSuchOrgGroupRoleException,
235 com.liferay.portal.kernel.exception.SystemException {
236 return getPersistence()
237 .findByRoleId_PrevAndNext(orgGroupRolePK, roleId,
238 orderByComparator);
239 }
240
241 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findAll()
242 throws com.liferay.portal.kernel.exception.SystemException {
243 return getPersistence().findAll();
244 }
245
246 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findAll(
247 int start, int end)
248 throws com.liferay.portal.kernel.exception.SystemException {
249 return getPersistence().findAll(start, end);
250 }
251
252 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findAll(
253 int start, int end,
254 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
255 throws com.liferay.portal.kernel.exception.SystemException {
256 return getPersistence().findAll(start, end, orderByComparator);
257 }
258
259 public static void removeByGroupId(long groupId)
260 throws com.liferay.portal.kernel.exception.SystemException {
261 getPersistence().removeByGroupId(groupId);
262 }
263
264 public static void removeByRoleId(long roleId)
265 throws com.liferay.portal.kernel.exception.SystemException {
266 getPersistence().removeByRoleId(roleId);
267 }
268
269 public static void removeAll()
270 throws com.liferay.portal.kernel.exception.SystemException {
271 getPersistence().removeAll();
272 }
273
274 public static int countByGroupId(long groupId)
275 throws com.liferay.portal.kernel.exception.SystemException {
276 return getPersistence().countByGroupId(groupId);
277 }
278
279 public static int countByRoleId(long roleId)
280 throws com.liferay.portal.kernel.exception.SystemException {
281 return getPersistence().countByRoleId(roleId);
282 }
283
284 public static int countAll()
285 throws com.liferay.portal.kernel.exception.SystemException {
286 return getPersistence().countAll();
287 }
288
289 public static OrgGroupRolePersistence getPersistence() {
290 if (_persistence == null) {
291 _persistence = (OrgGroupRolePersistence)PortalBeanLocatorUtil.locate(OrgGroupRolePersistence.class.getName());
292 }
293
294 return _persistence;
295 }
296
297 public void setPersistence(OrgGroupRolePersistence persistence) {
298 _persistence = persistence;
299 }
300
301 private static OrgGroupRolePersistence _persistence;
302 }