1
19
20 package com.liferay.portal.service.persistence;
21
22
28 public class ResourceCodeUtil {
29 public static com.liferay.portal.model.ResourceCode create(long codeId) {
30 return getPersistence().create(codeId);
31 }
32
33 public static com.liferay.portal.model.ResourceCode remove(long codeId)
34 throws com.liferay.portal.NoSuchResourceCodeException,
35 com.liferay.portal.SystemException {
36 return getPersistence().remove(codeId);
37 }
38
39 public static com.liferay.portal.model.ResourceCode remove(
40 com.liferay.portal.model.ResourceCode resourceCode)
41 throws com.liferay.portal.SystemException {
42 return getPersistence().remove(resourceCode);
43 }
44
45
48 public static com.liferay.portal.model.ResourceCode update(
49 com.liferay.portal.model.ResourceCode resourceCode)
50 throws com.liferay.portal.SystemException {
51 return getPersistence().update(resourceCode);
52 }
53
54
67 public static com.liferay.portal.model.ResourceCode update(
68 com.liferay.portal.model.ResourceCode resourceCode, boolean merge)
69 throws com.liferay.portal.SystemException {
70 return getPersistence().update(resourceCode, merge);
71 }
72
73 public static com.liferay.portal.model.ResourceCode updateImpl(
74 com.liferay.portal.model.ResourceCode resourceCode, boolean merge)
75 throws com.liferay.portal.SystemException {
76 return getPersistence().updateImpl(resourceCode, merge);
77 }
78
79 public static com.liferay.portal.model.ResourceCode findByPrimaryKey(
80 long codeId)
81 throws com.liferay.portal.NoSuchResourceCodeException,
82 com.liferay.portal.SystemException {
83 return getPersistence().findByPrimaryKey(codeId);
84 }
85
86 public static com.liferay.portal.model.ResourceCode fetchByPrimaryKey(
87 long codeId) throws com.liferay.portal.SystemException {
88 return getPersistence().fetchByPrimaryKey(codeId);
89 }
90
91 public static java.util.List<com.liferay.portal.model.ResourceCode> findByCompanyId(
92 long companyId) throws com.liferay.portal.SystemException {
93 return getPersistence().findByCompanyId(companyId);
94 }
95
96 public static java.util.List<com.liferay.portal.model.ResourceCode> findByCompanyId(
97 long companyId, int start, int end)
98 throws com.liferay.portal.SystemException {
99 return getPersistence().findByCompanyId(companyId, start, end);
100 }
101
102 public static java.util.List<com.liferay.portal.model.ResourceCode> findByCompanyId(
103 long companyId, int start, int end,
104 com.liferay.portal.kernel.util.OrderByComparator obc)
105 throws com.liferay.portal.SystemException {
106 return getPersistence().findByCompanyId(companyId, start, end, obc);
107 }
108
109 public static com.liferay.portal.model.ResourceCode findByCompanyId_First(
110 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
111 throws com.liferay.portal.NoSuchResourceCodeException,
112 com.liferay.portal.SystemException {
113 return getPersistence().findByCompanyId_First(companyId, obc);
114 }
115
116 public static com.liferay.portal.model.ResourceCode findByCompanyId_Last(
117 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
118 throws com.liferay.portal.NoSuchResourceCodeException,
119 com.liferay.portal.SystemException {
120 return getPersistence().findByCompanyId_Last(companyId, obc);
121 }
122
123 public static com.liferay.portal.model.ResourceCode[] findByCompanyId_PrevAndNext(
124 long codeId, long companyId,
125 com.liferay.portal.kernel.util.OrderByComparator obc)
126 throws com.liferay.portal.NoSuchResourceCodeException,
127 com.liferay.portal.SystemException {
128 return getPersistence()
129 .findByCompanyId_PrevAndNext(codeId, companyId, obc);
130 }
131
132 public static java.util.List<com.liferay.portal.model.ResourceCode> findByName(
133 java.lang.String name) throws com.liferay.portal.SystemException {
134 return getPersistence().findByName(name);
135 }
136
137 public static java.util.List<com.liferay.portal.model.ResourceCode> findByName(
138 java.lang.String name, int start, int end)
139 throws com.liferay.portal.SystemException {
140 return getPersistence().findByName(name, start, end);
141 }
142
143 public static java.util.List<com.liferay.portal.model.ResourceCode> findByName(
144 java.lang.String name, int start, int end,
145 com.liferay.portal.kernel.util.OrderByComparator obc)
146 throws com.liferay.portal.SystemException {
147 return getPersistence().findByName(name, start, end, obc);
148 }
149
150 public static com.liferay.portal.model.ResourceCode findByName_First(
151 java.lang.String name,
152 com.liferay.portal.kernel.util.OrderByComparator obc)
153 throws com.liferay.portal.NoSuchResourceCodeException,
154 com.liferay.portal.SystemException {
155 return getPersistence().findByName_First(name, obc);
156 }
157
158 public static com.liferay.portal.model.ResourceCode findByName_Last(
159 java.lang.String name,
160 com.liferay.portal.kernel.util.OrderByComparator obc)
161 throws com.liferay.portal.NoSuchResourceCodeException,
162 com.liferay.portal.SystemException {
163 return getPersistence().findByName_Last(name, obc);
164 }
165
166 public static com.liferay.portal.model.ResourceCode[] findByName_PrevAndNext(
167 long codeId, java.lang.String name,
168 com.liferay.portal.kernel.util.OrderByComparator obc)
169 throws com.liferay.portal.NoSuchResourceCodeException,
170 com.liferay.portal.SystemException {
171 return getPersistence().findByName_PrevAndNext(codeId, name, obc);
172 }
173
174 public static com.liferay.portal.model.ResourceCode findByC_N_S(
175 long companyId, java.lang.String name, int scope)
176 throws com.liferay.portal.NoSuchResourceCodeException,
177 com.liferay.portal.SystemException {
178 return getPersistence().findByC_N_S(companyId, name, scope);
179 }
180
181 public static com.liferay.portal.model.ResourceCode fetchByC_N_S(
182 long companyId, java.lang.String name, int scope)
183 throws com.liferay.portal.SystemException {
184 return getPersistence().fetchByC_N_S(companyId, name, scope);
185 }
186
187 public static java.util.List<Object> findWithDynamicQuery(
188 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
189 throws com.liferay.portal.SystemException {
190 return getPersistence().findWithDynamicQuery(dynamicQuery);
191 }
192
193 public static java.util.List<Object> findWithDynamicQuery(
194 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
195 int end) throws com.liferay.portal.SystemException {
196 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
197 }
198
199 public static java.util.List<com.liferay.portal.model.ResourceCode> findAll()
200 throws com.liferay.portal.SystemException {
201 return getPersistence().findAll();
202 }
203
204 public static java.util.List<com.liferay.portal.model.ResourceCode> findAll(
205 int start, int end) throws com.liferay.portal.SystemException {
206 return getPersistence().findAll(start, end);
207 }
208
209 public static java.util.List<com.liferay.portal.model.ResourceCode> findAll(
210 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
211 throws com.liferay.portal.SystemException {
212 return getPersistence().findAll(start, end, obc);
213 }
214
215 public static void removeByCompanyId(long companyId)
216 throws com.liferay.portal.SystemException {
217 getPersistence().removeByCompanyId(companyId);
218 }
219
220 public static void removeByName(java.lang.String name)
221 throws com.liferay.portal.SystemException {
222 getPersistence().removeByName(name);
223 }
224
225 public static void removeByC_N_S(long companyId, java.lang.String name,
226 int scope)
227 throws com.liferay.portal.NoSuchResourceCodeException,
228 com.liferay.portal.SystemException {
229 getPersistence().removeByC_N_S(companyId, name, scope);
230 }
231
232 public static void removeAll() throws com.liferay.portal.SystemException {
233 getPersistence().removeAll();
234 }
235
236 public static int countByCompanyId(long companyId)
237 throws com.liferay.portal.SystemException {
238 return getPersistence().countByCompanyId(companyId);
239 }
240
241 public static int countByName(java.lang.String name)
242 throws com.liferay.portal.SystemException {
243 return getPersistence().countByName(name);
244 }
245
246 public static int countByC_N_S(long companyId, java.lang.String name,
247 int scope) throws com.liferay.portal.SystemException {
248 return getPersistence().countByC_N_S(companyId, name, scope);
249 }
250
251 public static int countAll() throws com.liferay.portal.SystemException {
252 return getPersistence().countAll();
253 }
254
255 public static ResourceCodePersistence getPersistence() {
256 return _persistence;
257 }
258
259 public void setPersistence(ResourceCodePersistence persistence) {
260 _persistence = persistence;
261 }
262
263 private static ResourceCodePersistence _persistence;
264 }