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.model.ResourceAction;
21
22 import java.util.List;
23
24
37 public class ResourceActionUtil {
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 ResourceAction remove(ResourceAction resourceAction)
65 throws SystemException {
66 return getPersistence().remove(resourceAction);
67 }
68
69
72 public static ResourceAction update(ResourceAction resourceAction,
73 boolean merge) throws SystemException {
74 return getPersistence().update(resourceAction, merge);
75 }
76
77 public static void cacheResult(
78 com.liferay.portal.model.ResourceAction resourceAction) {
79 getPersistence().cacheResult(resourceAction);
80 }
81
82 public static void cacheResult(
83 java.util.List<com.liferay.portal.model.ResourceAction> resourceActions) {
84 getPersistence().cacheResult(resourceActions);
85 }
86
87 public static com.liferay.portal.model.ResourceAction create(
88 long resourceActionId) {
89 return getPersistence().create(resourceActionId);
90 }
91
92 public static com.liferay.portal.model.ResourceAction remove(
93 long resourceActionId)
94 throws com.liferay.portal.NoSuchResourceActionException,
95 com.liferay.portal.SystemException {
96 return getPersistence().remove(resourceActionId);
97 }
98
99
102 public static com.liferay.portal.model.ResourceAction update(
103 com.liferay.portal.model.ResourceAction resourceAction)
104 throws com.liferay.portal.SystemException {
105 return getPersistence().update(resourceAction);
106 }
107
108 public static com.liferay.portal.model.ResourceAction updateImpl(
109 com.liferay.portal.model.ResourceAction resourceAction, boolean merge)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().updateImpl(resourceAction, merge);
112 }
113
114 public static com.liferay.portal.model.ResourceAction findByPrimaryKey(
115 long resourceActionId)
116 throws com.liferay.portal.NoSuchResourceActionException,
117 com.liferay.portal.SystemException {
118 return getPersistence().findByPrimaryKey(resourceActionId);
119 }
120
121 public static com.liferay.portal.model.ResourceAction fetchByPrimaryKey(
122 long resourceActionId) throws com.liferay.portal.SystemException {
123 return getPersistence().fetchByPrimaryKey(resourceActionId);
124 }
125
126 public static java.util.List<com.liferay.portal.model.ResourceAction> findByName(
127 java.lang.String name) throws com.liferay.portal.SystemException {
128 return getPersistence().findByName(name);
129 }
130
131 public static java.util.List<com.liferay.portal.model.ResourceAction> findByName(
132 java.lang.String name, int start, int end)
133 throws com.liferay.portal.SystemException {
134 return getPersistence().findByName(name, start, end);
135 }
136
137 public static java.util.List<com.liferay.portal.model.ResourceAction> findByName(
138 java.lang.String name, int start, int end,
139 com.liferay.portal.kernel.util.OrderByComparator obc)
140 throws com.liferay.portal.SystemException {
141 return getPersistence().findByName(name, start, end, obc);
142 }
143
144 public static com.liferay.portal.model.ResourceAction findByName_First(
145 java.lang.String name,
146 com.liferay.portal.kernel.util.OrderByComparator obc)
147 throws com.liferay.portal.NoSuchResourceActionException,
148 com.liferay.portal.SystemException {
149 return getPersistence().findByName_First(name, obc);
150 }
151
152 public static com.liferay.portal.model.ResourceAction findByName_Last(
153 java.lang.String name,
154 com.liferay.portal.kernel.util.OrderByComparator obc)
155 throws com.liferay.portal.NoSuchResourceActionException,
156 com.liferay.portal.SystemException {
157 return getPersistence().findByName_Last(name, obc);
158 }
159
160 public static com.liferay.portal.model.ResourceAction[] findByName_PrevAndNext(
161 long resourceActionId, java.lang.String name,
162 com.liferay.portal.kernel.util.OrderByComparator obc)
163 throws com.liferay.portal.NoSuchResourceActionException,
164 com.liferay.portal.SystemException {
165 return getPersistence()
166 .findByName_PrevAndNext(resourceActionId, name, obc);
167 }
168
169 public static com.liferay.portal.model.ResourceAction findByN_A(
170 java.lang.String name, java.lang.String actionId)
171 throws com.liferay.portal.NoSuchResourceActionException,
172 com.liferay.portal.SystemException {
173 return getPersistence().findByN_A(name, actionId);
174 }
175
176 public static com.liferay.portal.model.ResourceAction fetchByN_A(
177 java.lang.String name, java.lang.String actionId)
178 throws com.liferay.portal.SystemException {
179 return getPersistence().fetchByN_A(name, actionId);
180 }
181
182 public static com.liferay.portal.model.ResourceAction fetchByN_A(
183 java.lang.String name, java.lang.String actionId,
184 boolean retrieveFromCache) throws com.liferay.portal.SystemException {
185 return getPersistence().fetchByN_A(name, actionId, retrieveFromCache);
186 }
187
188 public static java.util.List<com.liferay.portal.model.ResourceAction> findAll()
189 throws com.liferay.portal.SystemException {
190 return getPersistence().findAll();
191 }
192
193 public static java.util.List<com.liferay.portal.model.ResourceAction> 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.ResourceAction> 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 removeByName(java.lang.String name)
205 throws com.liferay.portal.SystemException {
206 getPersistence().removeByName(name);
207 }
208
209 public static void removeByN_A(java.lang.String name,
210 java.lang.String actionId)
211 throws com.liferay.portal.NoSuchResourceActionException,
212 com.liferay.portal.SystemException {
213 getPersistence().removeByN_A(name, actionId);
214 }
215
216 public static void removeAll() throws com.liferay.portal.SystemException {
217 getPersistence().removeAll();
218 }
219
220 public static int countByName(java.lang.String name)
221 throws com.liferay.portal.SystemException {
222 return getPersistence().countByName(name);
223 }
224
225 public static int countByN_A(java.lang.String name,
226 java.lang.String actionId) throws com.liferay.portal.SystemException {
227 return getPersistence().countByN_A(name, actionId);
228 }
229
230 public static int countAll() throws com.liferay.portal.SystemException {
231 return getPersistence().countAll();
232 }
233
234 public static ResourceActionPersistence getPersistence() {
235 if (_persistence == null) {
236 _persistence = (ResourceActionPersistence)PortalBeanLocatorUtil.locate(ResourceActionPersistence.class.getName());
237 }
238
239 return _persistence;
240 }
241
242 public void setPersistence(ResourceActionPersistence persistence) {
243 _persistence = persistence;
244 }
245
246 private static ResourceActionPersistence _persistence;
247 }