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 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.kernel.exception.SystemException {
96 return getPersistence().remove(orgGroupRolePK);
97 }
98
99 public static com.liferay.portal.model.OrgGroupRole updateImpl(
100 com.liferay.portal.model.OrgGroupRole orgGroupRole, boolean merge)
101 throws com.liferay.portal.kernel.exception.SystemException {
102 return getPersistence().updateImpl(orgGroupRole, merge);
103 }
104
105 public static com.liferay.portal.model.OrgGroupRole findByPrimaryKey(
106 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
107 throws com.liferay.portal.NoSuchOrgGroupRoleException,
108 com.liferay.portal.kernel.exception.SystemException {
109 return getPersistence().findByPrimaryKey(orgGroupRolePK);
110 }
111
112 public static com.liferay.portal.model.OrgGroupRole fetchByPrimaryKey(
113 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
114 throws com.liferay.portal.kernel.exception.SystemException {
115 return getPersistence().fetchByPrimaryKey(orgGroupRolePK);
116 }
117
118 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId(
119 long groupId)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getPersistence().findByGroupId(groupId);
122 }
123
124 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId(
125 long groupId, int start, int end)
126 throws com.liferay.portal.kernel.exception.SystemException {
127 return getPersistence().findByGroupId(groupId, start, end);
128 }
129
130 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId(
131 long groupId, int start, int end,
132 com.liferay.portal.kernel.util.OrderByComparator obc)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().findByGroupId(groupId, start, end, obc);
135 }
136
137 public static com.liferay.portal.model.OrgGroupRole findByGroupId_First(
138 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
139 throws com.liferay.portal.NoSuchOrgGroupRoleException,
140 com.liferay.portal.kernel.exception.SystemException {
141 return getPersistence().findByGroupId_First(groupId, obc);
142 }
143
144 public static com.liferay.portal.model.OrgGroupRole findByGroupId_Last(
145 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
146 throws com.liferay.portal.NoSuchOrgGroupRoleException,
147 com.liferay.portal.kernel.exception.SystemException {
148 return getPersistence().findByGroupId_Last(groupId, obc);
149 }
150
151 public static com.liferay.portal.model.OrgGroupRole[] findByGroupId_PrevAndNext(
152 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK,
153 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
154 throws com.liferay.portal.NoSuchOrgGroupRoleException,
155 com.liferay.portal.kernel.exception.SystemException {
156 return getPersistence()
157 .findByGroupId_PrevAndNext(orgGroupRolePK, groupId, obc);
158 }
159
160 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId(
161 long roleId) throws com.liferay.portal.kernel.exception.SystemException {
162 return getPersistence().findByRoleId(roleId);
163 }
164
165 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId(
166 long roleId, int start, int end)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getPersistence().findByRoleId(roleId, start, end);
169 }
170
171 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId(
172 long roleId, int start, int end,
173 com.liferay.portal.kernel.util.OrderByComparator obc)
174 throws com.liferay.portal.kernel.exception.SystemException {
175 return getPersistence().findByRoleId(roleId, start, end, obc);
176 }
177
178 public static com.liferay.portal.model.OrgGroupRole findByRoleId_First(
179 long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
180 throws com.liferay.portal.NoSuchOrgGroupRoleException,
181 com.liferay.portal.kernel.exception.SystemException {
182 return getPersistence().findByRoleId_First(roleId, obc);
183 }
184
185 public static com.liferay.portal.model.OrgGroupRole findByRoleId_Last(
186 long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
187 throws com.liferay.portal.NoSuchOrgGroupRoleException,
188 com.liferay.portal.kernel.exception.SystemException {
189 return getPersistence().findByRoleId_Last(roleId, obc);
190 }
191
192 public static com.liferay.portal.model.OrgGroupRole[] findByRoleId_PrevAndNext(
193 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK,
194 long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
195 throws com.liferay.portal.NoSuchOrgGroupRoleException,
196 com.liferay.portal.kernel.exception.SystemException {
197 return getPersistence()
198 .findByRoleId_PrevAndNext(orgGroupRolePK, roleId, obc);
199 }
200
201 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findAll()
202 throws com.liferay.portal.kernel.exception.SystemException {
203 return getPersistence().findAll();
204 }
205
206 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findAll(
207 int start, int end)
208 throws com.liferay.portal.kernel.exception.SystemException {
209 return getPersistence().findAll(start, end);
210 }
211
212 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findAll(
213 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
214 throws com.liferay.portal.kernel.exception.SystemException {
215 return getPersistence().findAll(start, end, obc);
216 }
217
218 public static void removeByGroupId(long groupId)
219 throws com.liferay.portal.kernel.exception.SystemException {
220 getPersistence().removeByGroupId(groupId);
221 }
222
223 public static void removeByRoleId(long roleId)
224 throws com.liferay.portal.kernel.exception.SystemException {
225 getPersistence().removeByRoleId(roleId);
226 }
227
228 public static void removeAll()
229 throws com.liferay.portal.kernel.exception.SystemException {
230 getPersistence().removeAll();
231 }
232
233 public static int countByGroupId(long groupId)
234 throws com.liferay.portal.kernel.exception.SystemException {
235 return getPersistence().countByGroupId(groupId);
236 }
237
238 public static int countByRoleId(long roleId)
239 throws com.liferay.portal.kernel.exception.SystemException {
240 return getPersistence().countByRoleId(roleId);
241 }
242
243 public static int countAll()
244 throws com.liferay.portal.kernel.exception.SystemException {
245 return getPersistence().countAll();
246 }
247
248 public static OrgGroupRolePersistence getPersistence() {
249 if (_persistence == null) {
250 _persistence = (OrgGroupRolePersistence)PortalBeanLocatorUtil.locate(OrgGroupRolePersistence.class.getName());
251 }
252
253 return _persistence;
254 }
255
256 public void setPersistence(OrgGroupRolePersistence persistence) {
257 _persistence = persistence;
258 }
259
260 private static OrgGroupRolePersistence _persistence;
261 }