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.kernel.util.ReferenceRegistry;
21 import com.liferay.portal.model.ResourceAction;
22
23 import java.util.List;
24
25
38 public class ResourceActionUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static void clearCache(ResourceAction resourceAction) {
50 getPersistence().clearCache(resourceAction);
51 }
52
53
56 public int countWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().countWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
65 throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery);
67 }
68
69
72 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
73 int start, int end) throws SystemException {
74 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
75 }
76
77
80 public static ResourceAction remove(ResourceAction resourceAction)
81 throws SystemException {
82 return getPersistence().remove(resourceAction);
83 }
84
85
88 public static ResourceAction update(ResourceAction resourceAction,
89 boolean merge) throws SystemException {
90 return getPersistence().update(resourceAction, merge);
91 }
92
93 public static void cacheResult(
94 com.liferay.portal.model.ResourceAction resourceAction) {
95 getPersistence().cacheResult(resourceAction);
96 }
97
98 public static void cacheResult(
99 java.util.List<com.liferay.portal.model.ResourceAction> resourceActions) {
100 getPersistence().cacheResult(resourceActions);
101 }
102
103 public static com.liferay.portal.model.ResourceAction create(
104 long resourceActionId) {
105 return getPersistence().create(resourceActionId);
106 }
107
108 public static com.liferay.portal.model.ResourceAction remove(
109 long resourceActionId)
110 throws com.liferay.portal.NoSuchResourceActionException,
111 com.liferay.portal.SystemException {
112 return getPersistence().remove(resourceActionId);
113 }
114
115
118 public static com.liferay.portal.model.ResourceAction update(
119 com.liferay.portal.model.ResourceAction resourceAction)
120 throws com.liferay.portal.SystemException {
121 return getPersistence().update(resourceAction);
122 }
123
124 public static com.liferay.portal.model.ResourceAction updateImpl(
125 com.liferay.portal.model.ResourceAction resourceAction, boolean merge)
126 throws com.liferay.portal.SystemException {
127 return getPersistence().updateImpl(resourceAction, merge);
128 }
129
130 public static com.liferay.portal.model.ResourceAction findByPrimaryKey(
131 long resourceActionId)
132 throws com.liferay.portal.NoSuchResourceActionException,
133 com.liferay.portal.SystemException {
134 return getPersistence().findByPrimaryKey(resourceActionId);
135 }
136
137 public static com.liferay.portal.model.ResourceAction fetchByPrimaryKey(
138 long resourceActionId) throws com.liferay.portal.SystemException {
139 return getPersistence().fetchByPrimaryKey(resourceActionId);
140 }
141
142 public static java.util.List<com.liferay.portal.model.ResourceAction> findByName(
143 java.lang.String name) throws com.liferay.portal.SystemException {
144 return getPersistence().findByName(name);
145 }
146
147 public static java.util.List<com.liferay.portal.model.ResourceAction> findByName(
148 java.lang.String name, int start, int end)
149 throws com.liferay.portal.SystemException {
150 return getPersistence().findByName(name, start, end);
151 }
152
153 public static java.util.List<com.liferay.portal.model.ResourceAction> findByName(
154 java.lang.String name, int start, int end,
155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156 throws com.liferay.portal.SystemException {
157 return getPersistence().findByName(name, start, end, orderByComparator);
158 }
159
160 public static com.liferay.portal.model.ResourceAction findByName_First(
161 java.lang.String name,
162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163 throws com.liferay.portal.NoSuchResourceActionException,
164 com.liferay.portal.SystemException {
165 return getPersistence().findByName_First(name, orderByComparator);
166 }
167
168 public static com.liferay.portal.model.ResourceAction findByName_Last(
169 java.lang.String name,
170 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171 throws com.liferay.portal.NoSuchResourceActionException,
172 com.liferay.portal.SystemException {
173 return getPersistence().findByName_Last(name, orderByComparator);
174 }
175
176 public static com.liferay.portal.model.ResourceAction[] findByName_PrevAndNext(
177 long resourceActionId, java.lang.String name,
178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179 throws com.liferay.portal.NoSuchResourceActionException,
180 com.liferay.portal.SystemException {
181 return getPersistence()
182 .findByName_PrevAndNext(resourceActionId, name,
183 orderByComparator);
184 }
185
186 public static com.liferay.portal.model.ResourceAction findByN_A(
187 java.lang.String name, java.lang.String actionId)
188 throws com.liferay.portal.NoSuchResourceActionException,
189 com.liferay.portal.SystemException {
190 return getPersistence().findByN_A(name, actionId);
191 }
192
193 public static com.liferay.portal.model.ResourceAction fetchByN_A(
194 java.lang.String name, java.lang.String actionId)
195 throws com.liferay.portal.SystemException {
196 return getPersistence().fetchByN_A(name, actionId);
197 }
198
199 public static com.liferay.portal.model.ResourceAction fetchByN_A(
200 java.lang.String name, java.lang.String actionId,
201 boolean retrieveFromCache) throws com.liferay.portal.SystemException {
202 return getPersistence().fetchByN_A(name, actionId, retrieveFromCache);
203 }
204
205 public static java.util.List<com.liferay.portal.model.ResourceAction> findAll()
206 throws com.liferay.portal.SystemException {
207 return getPersistence().findAll();
208 }
209
210 public static java.util.List<com.liferay.portal.model.ResourceAction> findAll(
211 int start, int end) throws com.liferay.portal.SystemException {
212 return getPersistence().findAll(start, end);
213 }
214
215 public static java.util.List<com.liferay.portal.model.ResourceAction> findAll(
216 int start, int end,
217 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
218 throws com.liferay.portal.SystemException {
219 return getPersistence().findAll(start, end, orderByComparator);
220 }
221
222 public static void removeByName(java.lang.String name)
223 throws com.liferay.portal.SystemException {
224 getPersistence().removeByName(name);
225 }
226
227 public static void removeByN_A(java.lang.String name,
228 java.lang.String actionId)
229 throws com.liferay.portal.NoSuchResourceActionException,
230 com.liferay.portal.SystemException {
231 getPersistence().removeByN_A(name, actionId);
232 }
233
234 public static void removeAll() throws com.liferay.portal.SystemException {
235 getPersistence().removeAll();
236 }
237
238 public static int countByName(java.lang.String name)
239 throws com.liferay.portal.SystemException {
240 return getPersistence().countByName(name);
241 }
242
243 public static int countByN_A(java.lang.String name,
244 java.lang.String actionId) throws com.liferay.portal.SystemException {
245 return getPersistence().countByN_A(name, actionId);
246 }
247
248 public static int countAll() throws com.liferay.portal.SystemException {
249 return getPersistence().countAll();
250 }
251
252 public static ResourceActionPersistence getPersistence() {
253 if (_persistence == null) {
254 _persistence = (ResourceActionPersistence)PortalBeanLocatorUtil.locate(ResourceActionPersistence.class.getName());
255
256 ReferenceRegistry.registerReference(ResourceActionUtil.class,
257 "_persistence");
258 }
259
260 return _persistence;
261 }
262
263 public void setPersistence(ResourceActionPersistence persistence) {
264 _persistence = persistence;
265
266 ReferenceRegistry.registerReference(ResourceActionUtil.class,
267 "_persistence");
268 }
269
270 private static ResourceActionPersistence _persistence;
271 }