1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public class OrgGroupRoleUtil {
32 public static com.liferay.portal.model.OrgGroupRole create(
33 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK) {
34 return getPersistence().create(orgGroupRolePK);
35 }
36
37 public static com.liferay.portal.model.OrgGroupRole remove(
38 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
39 throws com.liferay.portal.NoSuchOrgGroupRoleException,
40 com.liferay.portal.SystemException {
41 return getPersistence().remove(orgGroupRolePK);
42 }
43
44 public static com.liferay.portal.model.OrgGroupRole remove(
45 com.liferay.portal.model.OrgGroupRole orgGroupRole)
46 throws com.liferay.portal.SystemException {
47 return getPersistence().remove(orgGroupRole);
48 }
49
50
53 public static com.liferay.portal.model.OrgGroupRole update(
54 com.liferay.portal.model.OrgGroupRole orgGroupRole)
55 throws com.liferay.portal.SystemException {
56 return getPersistence().update(orgGroupRole);
57 }
58
59
72 public static com.liferay.portal.model.OrgGroupRole update(
73 com.liferay.portal.model.OrgGroupRole orgGroupRole, boolean merge)
74 throws com.liferay.portal.SystemException {
75 return getPersistence().update(orgGroupRole, merge);
76 }
77
78 public static com.liferay.portal.model.OrgGroupRole updateImpl(
79 com.liferay.portal.model.OrgGroupRole orgGroupRole, boolean merge)
80 throws com.liferay.portal.SystemException {
81 return getPersistence().updateImpl(orgGroupRole, merge);
82 }
83
84 public static com.liferay.portal.model.OrgGroupRole findByPrimaryKey(
85 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
86 throws com.liferay.portal.NoSuchOrgGroupRoleException,
87 com.liferay.portal.SystemException {
88 return getPersistence().findByPrimaryKey(orgGroupRolePK);
89 }
90
91 public static com.liferay.portal.model.OrgGroupRole fetchByPrimaryKey(
92 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
93 throws com.liferay.portal.SystemException {
94 return getPersistence().fetchByPrimaryKey(orgGroupRolePK);
95 }
96
97 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId(
98 long groupId) throws com.liferay.portal.SystemException {
99 return getPersistence().findByGroupId(groupId);
100 }
101
102 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId(
103 long groupId, int start, int end)
104 throws com.liferay.portal.SystemException {
105 return getPersistence().findByGroupId(groupId, start, end);
106 }
107
108 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId(
109 long groupId, int start, int end,
110 com.liferay.portal.kernel.util.OrderByComparator obc)
111 throws com.liferay.portal.SystemException {
112 return getPersistence().findByGroupId(groupId, start, end, obc);
113 }
114
115 public static com.liferay.portal.model.OrgGroupRole findByGroupId_First(
116 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
117 throws com.liferay.portal.NoSuchOrgGroupRoleException,
118 com.liferay.portal.SystemException {
119 return getPersistence().findByGroupId_First(groupId, obc);
120 }
121
122 public static com.liferay.portal.model.OrgGroupRole findByGroupId_Last(
123 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
124 throws com.liferay.portal.NoSuchOrgGroupRoleException,
125 com.liferay.portal.SystemException {
126 return getPersistence().findByGroupId_Last(groupId, obc);
127 }
128
129 public static com.liferay.portal.model.OrgGroupRole[] findByGroupId_PrevAndNext(
130 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK,
131 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
132 throws com.liferay.portal.NoSuchOrgGroupRoleException,
133 com.liferay.portal.SystemException {
134 return getPersistence()
135 .findByGroupId_PrevAndNext(orgGroupRolePK, groupId, obc);
136 }
137
138 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId(
139 long roleId) throws com.liferay.portal.SystemException {
140 return getPersistence().findByRoleId(roleId);
141 }
142
143 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId(
144 long roleId, int start, int end)
145 throws com.liferay.portal.SystemException {
146 return getPersistence().findByRoleId(roleId, start, end);
147 }
148
149 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId(
150 long roleId, int start, int end,
151 com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.SystemException {
153 return getPersistence().findByRoleId(roleId, start, end, obc);
154 }
155
156 public static com.liferay.portal.model.OrgGroupRole findByRoleId_First(
157 long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
158 throws com.liferay.portal.NoSuchOrgGroupRoleException,
159 com.liferay.portal.SystemException {
160 return getPersistence().findByRoleId_First(roleId, obc);
161 }
162
163 public static com.liferay.portal.model.OrgGroupRole findByRoleId_Last(
164 long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
165 throws com.liferay.portal.NoSuchOrgGroupRoleException,
166 com.liferay.portal.SystemException {
167 return getPersistence().findByRoleId_Last(roleId, obc);
168 }
169
170 public static com.liferay.portal.model.OrgGroupRole[] findByRoleId_PrevAndNext(
171 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK,
172 long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
173 throws com.liferay.portal.NoSuchOrgGroupRoleException,
174 com.liferay.portal.SystemException {
175 return getPersistence()
176 .findByRoleId_PrevAndNext(orgGroupRolePK, roleId, obc);
177 }
178
179 public static java.util.List<Object> findWithDynamicQuery(
180 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
181 throws com.liferay.portal.SystemException {
182 return getPersistence().findWithDynamicQuery(dynamicQuery);
183 }
184
185 public static java.util.List<Object> findWithDynamicQuery(
186 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
187 int end) throws com.liferay.portal.SystemException {
188 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
189 }
190
191 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findAll()
192 throws com.liferay.portal.SystemException {
193 return getPersistence().findAll();
194 }
195
196 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findAll(
197 int start, int end) throws com.liferay.portal.SystemException {
198 return getPersistence().findAll(start, end);
199 }
200
201 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findAll(
202 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
203 throws com.liferay.portal.SystemException {
204 return getPersistence().findAll(start, end, obc);
205 }
206
207 public static void removeByGroupId(long groupId)
208 throws com.liferay.portal.SystemException {
209 getPersistence().removeByGroupId(groupId);
210 }
211
212 public static void removeByRoleId(long roleId)
213 throws com.liferay.portal.SystemException {
214 getPersistence().removeByRoleId(roleId);
215 }
216
217 public static void removeAll() throws com.liferay.portal.SystemException {
218 getPersistence().removeAll();
219 }
220
221 public static int countByGroupId(long groupId)
222 throws com.liferay.portal.SystemException {
223 return getPersistence().countByGroupId(groupId);
224 }
225
226 public static int countByRoleId(long roleId)
227 throws com.liferay.portal.SystemException {
228 return getPersistence().countByRoleId(roleId);
229 }
230
231 public static int countAll() throws com.liferay.portal.SystemException {
232 return getPersistence().countAll();
233 }
234
235 public static OrgGroupRolePersistence getPersistence() {
236 return _persistence;
237 }
238
239 public void setPersistence(OrgGroupRolePersistence persistence) {
240 _persistence = persistence;
241 }
242
243 private static OrgGroupRolePersistence _persistence;
244 }