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