1
22
23 package com.liferay.portal.service.persistence;
24
25
26
39 public class ResourceActionUtil {
40 public static void cacheResult(
41 com.liferay.portal.model.ResourceAction resourceAction) {
42 getPersistence().cacheResult(resourceAction);
43 }
44
45 public static void cacheResult(
46 java.util.List<com.liferay.portal.model.ResourceAction> resourceActions) {
47 getPersistence().cacheResult(resourceActions);
48 }
49
50 public static void clearCache() {
51 getPersistence().clearCache();
52 }
53
54 public static com.liferay.portal.model.ResourceAction create(
55 long resourceActionId) {
56 return getPersistence().create(resourceActionId);
57 }
58
59 public static com.liferay.portal.model.ResourceAction remove(
60 long resourceActionId)
61 throws com.liferay.portal.NoSuchResourceActionException,
62 com.liferay.portal.SystemException {
63 return getPersistence().remove(resourceActionId);
64 }
65
66 public static com.liferay.portal.model.ResourceAction remove(
67 com.liferay.portal.model.ResourceAction resourceAction)
68 throws com.liferay.portal.SystemException {
69 return getPersistence().remove(resourceAction);
70 }
71
72
75 public static com.liferay.portal.model.ResourceAction update(
76 com.liferay.portal.model.ResourceAction resourceAction)
77 throws com.liferay.portal.SystemException {
78 return getPersistence().update(resourceAction);
79 }
80
81
93 public static com.liferay.portal.model.ResourceAction update(
94 com.liferay.portal.model.ResourceAction resourceAction, boolean merge)
95 throws com.liferay.portal.SystemException {
96 return getPersistence().update(resourceAction, merge);
97 }
98
99 public static com.liferay.portal.model.ResourceAction updateImpl(
100 com.liferay.portal.model.ResourceAction resourceAction, boolean merge)
101 throws com.liferay.portal.SystemException {
102 return getPersistence().updateImpl(resourceAction, merge);
103 }
104
105 public static com.liferay.portal.model.ResourceAction findByPrimaryKey(
106 long resourceActionId)
107 throws com.liferay.portal.NoSuchResourceActionException,
108 com.liferay.portal.SystemException {
109 return getPersistence().findByPrimaryKey(resourceActionId);
110 }
111
112 public static com.liferay.portal.model.ResourceAction fetchByPrimaryKey(
113 long resourceActionId) throws com.liferay.portal.SystemException {
114 return getPersistence().fetchByPrimaryKey(resourceActionId);
115 }
116
117 public static java.util.List<com.liferay.portal.model.ResourceAction> findByName(
118 java.lang.String name) throws com.liferay.portal.SystemException {
119 return getPersistence().findByName(name);
120 }
121
122 public static java.util.List<com.liferay.portal.model.ResourceAction> findByName(
123 java.lang.String name, int start, int end)
124 throws com.liferay.portal.SystemException {
125 return getPersistence().findByName(name, start, end);
126 }
127
128 public static java.util.List<com.liferay.portal.model.ResourceAction> findByName(
129 java.lang.String name, int start, int end,
130 com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException {
132 return getPersistence().findByName(name, start, end, obc);
133 }
134
135 public static com.liferay.portal.model.ResourceAction findByName_First(
136 java.lang.String name,
137 com.liferay.portal.kernel.util.OrderByComparator obc)
138 throws com.liferay.portal.NoSuchResourceActionException,
139 com.liferay.portal.SystemException {
140 return getPersistence().findByName_First(name, obc);
141 }
142
143 public static com.liferay.portal.model.ResourceAction findByName_Last(
144 java.lang.String name,
145 com.liferay.portal.kernel.util.OrderByComparator obc)
146 throws com.liferay.portal.NoSuchResourceActionException,
147 com.liferay.portal.SystemException {
148 return getPersistence().findByName_Last(name, obc);
149 }
150
151 public static com.liferay.portal.model.ResourceAction[] findByName_PrevAndNext(
152 long resourceActionId, java.lang.String name,
153 com.liferay.portal.kernel.util.OrderByComparator obc)
154 throws com.liferay.portal.NoSuchResourceActionException,
155 com.liferay.portal.SystemException {
156 return getPersistence()
157 .findByName_PrevAndNext(resourceActionId, name, obc);
158 }
159
160 public static com.liferay.portal.model.ResourceAction findByN_A(
161 java.lang.String name, java.lang.String actionId)
162 throws com.liferay.portal.NoSuchResourceActionException,
163 com.liferay.portal.SystemException {
164 return getPersistence().findByN_A(name, actionId);
165 }
166
167 public static com.liferay.portal.model.ResourceAction fetchByN_A(
168 java.lang.String name, java.lang.String actionId)
169 throws com.liferay.portal.SystemException {
170 return getPersistence().fetchByN_A(name, actionId);
171 }
172
173 public static com.liferay.portal.model.ResourceAction fetchByN_A(
174 java.lang.String name, java.lang.String actionId,
175 boolean retrieveFromCache) throws com.liferay.portal.SystemException {
176 return getPersistence().fetchByN_A(name, actionId, retrieveFromCache);
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.ResourceAction> findAll()
192 throws com.liferay.portal.SystemException {
193 return getPersistence().findAll();
194 }
195
196 public static java.util.List<com.liferay.portal.model.ResourceAction> 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.ResourceAction> 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 removeByName(java.lang.String name)
208 throws com.liferay.portal.SystemException {
209 getPersistence().removeByName(name);
210 }
211
212 public static void removeByN_A(java.lang.String name,
213 java.lang.String actionId)
214 throws com.liferay.portal.NoSuchResourceActionException,
215 com.liferay.portal.SystemException {
216 getPersistence().removeByN_A(name, actionId);
217 }
218
219 public static void removeAll() throws com.liferay.portal.SystemException {
220 getPersistence().removeAll();
221 }
222
223 public static int countByName(java.lang.String name)
224 throws com.liferay.portal.SystemException {
225 return getPersistence().countByName(name);
226 }
227
228 public static int countByN_A(java.lang.String name,
229 java.lang.String actionId) throws com.liferay.portal.SystemException {
230 return getPersistence().countByN_A(name, actionId);
231 }
232
233 public static int countAll() throws com.liferay.portal.SystemException {
234 return getPersistence().countAll();
235 }
236
237 public static ResourceActionPersistence getPersistence() {
238 return _persistence;
239 }
240
241 public void setPersistence(ResourceActionPersistence persistence) {
242 _persistence = persistence;
243 }
244
245 private static ResourceActionPersistence _persistence;
246 }