1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19 import com.liferay.portal.kernel.exception.SystemException;
20 import com.liferay.portal.model.OrgGroupRole;
21
22 import java.util.List;
23
24
37 public class OrgGroupRoleUtil {
38
41 public static void clearCache() {
42 getPersistence().clearCache();
43 }
44
45
48 public static void clearCache(OrgGroupRole orgGroupRole) {
49 getPersistence().clearCache(orgGroupRole);
50 }
51
52
55 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
56 throws SystemException {
57 return getPersistence().countWithDynamicQuery(dynamicQuery);
58 }
59
60
63 public static List<OrgGroupRole> findWithDynamicQuery(
64 DynamicQuery dynamicQuery) throws SystemException {
65 return getPersistence().findWithDynamicQuery(dynamicQuery);
66 }
67
68
71 public static List<OrgGroupRole> findWithDynamicQuery(
72 DynamicQuery dynamicQuery, int start, int end)
73 throws SystemException {
74 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
75 }
76
77
80 public static OrgGroupRole remove(OrgGroupRole orgGroupRole)
81 throws SystemException {
82 return getPersistence().remove(orgGroupRole);
83 }
84
85
88 public static OrgGroupRole update(OrgGroupRole orgGroupRole, boolean merge)
89 throws SystemException {
90 return getPersistence().update(orgGroupRole, merge);
91 }
92
93 public static void cacheResult(
94 com.liferay.portal.model.OrgGroupRole orgGroupRole) {
95 getPersistence().cacheResult(orgGroupRole);
96 }
97
98 public static void cacheResult(
99 java.util.List<com.liferay.portal.model.OrgGroupRole> orgGroupRoles) {
100 getPersistence().cacheResult(orgGroupRoles);
101 }
102
103 public static com.liferay.portal.model.OrgGroupRole create(
104 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK) {
105 return getPersistence().create(orgGroupRolePK);
106 }
107
108 public static com.liferay.portal.model.OrgGroupRole remove(
109 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
110 throws com.liferay.portal.NoSuchOrgGroupRoleException,
111 com.liferay.portal.kernel.exception.SystemException {
112 return getPersistence().remove(orgGroupRolePK);
113 }
114
115 public static com.liferay.portal.model.OrgGroupRole updateImpl(
116 com.liferay.portal.model.OrgGroupRole orgGroupRole, boolean merge)
117 throws com.liferay.portal.kernel.exception.SystemException {
118 return getPersistence().updateImpl(orgGroupRole, merge);
119 }
120
121 public static com.liferay.portal.model.OrgGroupRole findByPrimaryKey(
122 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
123 throws com.liferay.portal.NoSuchOrgGroupRoleException,
124 com.liferay.portal.kernel.exception.SystemException {
125 return getPersistence().findByPrimaryKey(orgGroupRolePK);
126 }
127
128 public static com.liferay.portal.model.OrgGroupRole fetchByPrimaryKey(
129 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
130 throws com.liferay.portal.kernel.exception.SystemException {
131 return getPersistence().fetchByPrimaryKey(orgGroupRolePK);
132 }
133
134 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId(
135 long groupId)
136 throws com.liferay.portal.kernel.exception.SystemException {
137 return getPersistence().findByGroupId(groupId);
138 }
139
140 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId(
141 long groupId, int start, int end)
142 throws com.liferay.portal.kernel.exception.SystemException {
143 return getPersistence().findByGroupId(groupId, start, end);
144 }
145
146 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId(
147 long groupId, int start, int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getPersistence()
151 .findByGroupId(groupId, start, end, orderByComparator);
152 }
153
154 public static com.liferay.portal.model.OrgGroupRole findByGroupId_First(
155 long groupId,
156 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157 throws com.liferay.portal.NoSuchOrgGroupRoleException,
158 com.liferay.portal.kernel.exception.SystemException {
159 return getPersistence().findByGroupId_First(groupId, orderByComparator);
160 }
161
162 public static com.liferay.portal.model.OrgGroupRole findByGroupId_Last(
163 long groupId,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.NoSuchOrgGroupRoleException,
166 com.liferay.portal.kernel.exception.SystemException {
167 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
168 }
169
170 public static com.liferay.portal.model.OrgGroupRole[] findByGroupId_PrevAndNext(
171 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK,
172 long groupId,
173 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
174 throws com.liferay.portal.NoSuchOrgGroupRoleException,
175 com.liferay.portal.kernel.exception.SystemException {
176 return getPersistence()
177 .findByGroupId_PrevAndNext(orgGroupRolePK, groupId,
178 orderByComparator);
179 }
180
181 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId(
182 long roleId) throws com.liferay.portal.kernel.exception.SystemException {
183 return getPersistence().findByRoleId(roleId);
184 }
185
186 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId(
187 long roleId, int start, int end)
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getPersistence().findByRoleId(roleId, start, end);
190 }
191
192 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId(
193 long roleId, int start, int end,
194 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
195 throws com.liferay.portal.kernel.exception.SystemException {
196 return getPersistence()
197 .findByRoleId(roleId, start, end, orderByComparator);
198 }
199
200 public static com.liferay.portal.model.OrgGroupRole findByRoleId_First(
201 long roleId,
202 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203 throws com.liferay.portal.NoSuchOrgGroupRoleException,
204 com.liferay.portal.kernel.exception.SystemException {
205 return getPersistence().findByRoleId_First(roleId, orderByComparator);
206 }
207
208 public static com.liferay.portal.model.OrgGroupRole findByRoleId_Last(
209 long roleId,
210 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211 throws com.liferay.portal.NoSuchOrgGroupRoleException,
212 com.liferay.portal.kernel.exception.SystemException {
213 return getPersistence().findByRoleId_Last(roleId, orderByComparator);
214 }
215
216 public static com.liferay.portal.model.OrgGroupRole[] findByRoleId_PrevAndNext(
217 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK,
218 long roleId,
219 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220 throws com.liferay.portal.NoSuchOrgGroupRoleException,
221 com.liferay.portal.kernel.exception.SystemException {
222 return getPersistence()
223 .findByRoleId_PrevAndNext(orgGroupRolePK, roleId,
224 orderByComparator);
225 }
226
227 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findAll()
228 throws com.liferay.portal.kernel.exception.SystemException {
229 return getPersistence().findAll();
230 }
231
232 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findAll(
233 int start, int end)
234 throws com.liferay.portal.kernel.exception.SystemException {
235 return getPersistence().findAll(start, end);
236 }
237
238 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findAll(
239 int start, int end,
240 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
241 throws com.liferay.portal.kernel.exception.SystemException {
242 return getPersistence().findAll(start, end, orderByComparator);
243 }
244
245 public static void removeByGroupId(long groupId)
246 throws com.liferay.portal.kernel.exception.SystemException {
247 getPersistence().removeByGroupId(groupId);
248 }
249
250 public static void removeByRoleId(long roleId)
251 throws com.liferay.portal.kernel.exception.SystemException {
252 getPersistence().removeByRoleId(roleId);
253 }
254
255 public static void removeAll()
256 throws com.liferay.portal.kernel.exception.SystemException {
257 getPersistence().removeAll();
258 }
259
260 public static int countByGroupId(long groupId)
261 throws com.liferay.portal.kernel.exception.SystemException {
262 return getPersistence().countByGroupId(groupId);
263 }
264
265 public static int countByRoleId(long roleId)
266 throws com.liferay.portal.kernel.exception.SystemException {
267 return getPersistence().countByRoleId(roleId);
268 }
269
270 public static int countAll()
271 throws com.liferay.portal.kernel.exception.SystemException {
272 return getPersistence().countAll();
273 }
274
275 public static OrgGroupRolePersistence getPersistence() {
276 if (_persistence == null) {
277 _persistence = (OrgGroupRolePersistence)PortalBeanLocatorUtil.locate(OrgGroupRolePersistence.class.getName());
278 }
279
280 return _persistence;
281 }
282
283 public void setPersistence(OrgGroupRolePersistence persistence) {
284 _persistence = persistence;
285 }
286
287 private static OrgGroupRolePersistence _persistence;
288 }