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