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