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.SystemException,
40 com.liferay.portal.NoSuchOrgGroupRoleException {
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 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 public static com.liferay.portal.model.OrgGroupRole update(
57 com.liferay.portal.model.OrgGroupRole orgGroupRole, boolean merge)
58 throws com.liferay.portal.SystemException {
59 return getPersistence().update(orgGroupRole, merge);
60 }
61
62 public static com.liferay.portal.model.OrgGroupRole updateImpl(
63 com.liferay.portal.model.OrgGroupRole orgGroupRole, boolean merge)
64 throws com.liferay.portal.SystemException {
65 return getPersistence().updateImpl(orgGroupRole, merge);
66 }
67
68 public static com.liferay.portal.model.OrgGroupRole findByPrimaryKey(
69 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
70 throws com.liferay.portal.SystemException,
71 com.liferay.portal.NoSuchOrgGroupRoleException {
72 return getPersistence().findByPrimaryKey(orgGroupRolePK);
73 }
74
75 public static com.liferay.portal.model.OrgGroupRole fetchByPrimaryKey(
76 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
77 throws com.liferay.portal.SystemException {
78 return getPersistence().fetchByPrimaryKey(orgGroupRolePK);
79 }
80
81 public static java.util.List findByGroupId(long groupId)
82 throws com.liferay.portal.SystemException {
83 return getPersistence().findByGroupId(groupId);
84 }
85
86 public static java.util.List findByGroupId(long groupId, int begin, int end)
87 throws com.liferay.portal.SystemException {
88 return getPersistence().findByGroupId(groupId, begin, end);
89 }
90
91 public static java.util.List findByGroupId(long groupId, int begin,
92 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
93 throws com.liferay.portal.SystemException {
94 return getPersistence().findByGroupId(groupId, begin, end, obc);
95 }
96
97 public static com.liferay.portal.model.OrgGroupRole findByGroupId_First(
98 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
99 throws com.liferay.portal.SystemException,
100 com.liferay.portal.NoSuchOrgGroupRoleException {
101 return getPersistence().findByGroupId_First(groupId, obc);
102 }
103
104 public static com.liferay.portal.model.OrgGroupRole findByGroupId_Last(
105 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
106 throws com.liferay.portal.SystemException,
107 com.liferay.portal.NoSuchOrgGroupRoleException {
108 return getPersistence().findByGroupId_Last(groupId, obc);
109 }
110
111 public static com.liferay.portal.model.OrgGroupRole[] findByGroupId_PrevAndNext(
112 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK,
113 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
114 throws com.liferay.portal.SystemException,
115 com.liferay.portal.NoSuchOrgGroupRoleException {
116 return getPersistence().findByGroupId_PrevAndNext(orgGroupRolePK,
117 groupId, obc);
118 }
119
120 public static java.util.List findByRoleId(long roleId)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().findByRoleId(roleId);
123 }
124
125 public static java.util.List findByRoleId(long roleId, int begin, int end)
126 throws com.liferay.portal.SystemException {
127 return getPersistence().findByRoleId(roleId, begin, end);
128 }
129
130 public static java.util.List findByRoleId(long roleId, int begin, int end,
131 com.liferay.portal.kernel.util.OrderByComparator obc)
132 throws com.liferay.portal.SystemException {
133 return getPersistence().findByRoleId(roleId, begin, end, obc);
134 }
135
136 public static com.liferay.portal.model.OrgGroupRole findByRoleId_First(
137 long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
138 throws com.liferay.portal.SystemException,
139 com.liferay.portal.NoSuchOrgGroupRoleException {
140 return getPersistence().findByRoleId_First(roleId, obc);
141 }
142
143 public static com.liferay.portal.model.OrgGroupRole findByRoleId_Last(
144 long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
145 throws com.liferay.portal.SystemException,
146 com.liferay.portal.NoSuchOrgGroupRoleException {
147 return getPersistence().findByRoleId_Last(roleId, obc);
148 }
149
150 public static com.liferay.portal.model.OrgGroupRole[] findByRoleId_PrevAndNext(
151 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK,
152 long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
153 throws com.liferay.portal.SystemException,
154 com.liferay.portal.NoSuchOrgGroupRoleException {
155 return getPersistence().findByRoleId_PrevAndNext(orgGroupRolePK,
156 roleId, obc);
157 }
158
159 public static java.util.List findWithDynamicQuery(
160 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
161 throws com.liferay.portal.SystemException {
162 return getPersistence().findWithDynamicQuery(queryInitializer);
163 }
164
165 public static java.util.List findWithDynamicQuery(
166 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
167 int begin, int end) throws com.liferay.portal.SystemException {
168 return getPersistence().findWithDynamicQuery(queryInitializer, begin,
169 end);
170 }
171
172 public static java.util.List findAll()
173 throws com.liferay.portal.SystemException {
174 return getPersistence().findAll();
175 }
176
177 public static java.util.List findAll(int begin, int end)
178 throws com.liferay.portal.SystemException {
179 return getPersistence().findAll(begin, end);
180 }
181
182 public static java.util.List findAll(int begin, int end,
183 com.liferay.portal.kernel.util.OrderByComparator obc)
184 throws com.liferay.portal.SystemException {
185 return getPersistence().findAll(begin, end, obc);
186 }
187
188 public static void removeByGroupId(long groupId)
189 throws com.liferay.portal.SystemException {
190 getPersistence().removeByGroupId(groupId);
191 }
192
193 public static void removeByRoleId(long roleId)
194 throws com.liferay.portal.SystemException {
195 getPersistence().removeByRoleId(roleId);
196 }
197
198 public static void removeAll() throws com.liferay.portal.SystemException {
199 getPersistence().removeAll();
200 }
201
202 public static int countByGroupId(long groupId)
203 throws com.liferay.portal.SystemException {
204 return getPersistence().countByGroupId(groupId);
205 }
206
207 public static int countByRoleId(long roleId)
208 throws com.liferay.portal.SystemException {
209 return getPersistence().countByRoleId(roleId);
210 }
211
212 public static int countAll() throws com.liferay.portal.SystemException {
213 return getPersistence().countAll();
214 }
215
216 public static OrgGroupRolePersistence getPersistence() {
217 return _getUtil()._persistence;
218 }
219
220 public void setPersistence(OrgGroupRolePersistence persistence) {
221 _persistence = persistence;
222 }
223
224 private static OrgGroupRoleUtil _getUtil() {
225 if (_util == null) {
226 _util = (OrgGroupRoleUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
227 }
228
229 return _util;
230 }
231
232 private static final String _UTIL = OrgGroupRoleUtil.class.getName();
233 private static OrgGroupRoleUtil _util;
234 private OrgGroupRolePersistence _persistence;
235 }