001
014
015 package com.liferay.portal.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.model.LayoutSetPrototype;
022 import com.liferay.portal.service.ServiceContext;
023
024 import java.util.List;
025
026
032 public class LayoutSetPrototypeUtil {
033
036 public static void clearCache() {
037 getPersistence().clearCache();
038 }
039
040
043 public static void clearCache(LayoutSetPrototype layoutSetPrototype) {
044 getPersistence().clearCache(layoutSetPrototype);
045 }
046
047
050 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
051 throws SystemException {
052 return getPersistence().countWithDynamicQuery(dynamicQuery);
053 }
054
055
058 public static List<LayoutSetPrototype> findWithDynamicQuery(
059 DynamicQuery dynamicQuery) throws SystemException {
060 return getPersistence().findWithDynamicQuery(dynamicQuery);
061 }
062
063
066 public static List<LayoutSetPrototype> findWithDynamicQuery(
067 DynamicQuery dynamicQuery, int start, int end)
068 throws SystemException {
069 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
070 }
071
072
075 public static List<LayoutSetPrototype> findWithDynamicQuery(
076 DynamicQuery dynamicQuery, int start, int end,
077 OrderByComparator orderByComparator) throws SystemException {
078 return getPersistence()
079 .findWithDynamicQuery(dynamicQuery, start, end,
080 orderByComparator);
081 }
082
083
086 public static LayoutSetPrototype remove(
087 LayoutSetPrototype layoutSetPrototype) throws SystemException {
088 return getPersistence().remove(layoutSetPrototype);
089 }
090
091
094 public static LayoutSetPrototype update(
095 LayoutSetPrototype layoutSetPrototype, boolean merge)
096 throws SystemException {
097 return getPersistence().update(layoutSetPrototype, merge);
098 }
099
100
103 public static LayoutSetPrototype update(
104 LayoutSetPrototype layoutSetPrototype, boolean merge,
105 ServiceContext serviceContext) throws SystemException {
106 return getPersistence().update(layoutSetPrototype, merge, serviceContext);
107 }
108
109 public static void cacheResult(
110 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype) {
111 getPersistence().cacheResult(layoutSetPrototype);
112 }
113
114 public static void cacheResult(
115 java.util.List<com.liferay.portal.model.LayoutSetPrototype> layoutSetPrototypes) {
116 getPersistence().cacheResult(layoutSetPrototypes);
117 }
118
119 public static com.liferay.portal.model.LayoutSetPrototype create(
120 long layoutSetPrototypeId) {
121 return getPersistence().create(layoutSetPrototypeId);
122 }
123
124 public static com.liferay.portal.model.LayoutSetPrototype remove(
125 long layoutSetPrototypeId)
126 throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
127 com.liferay.portal.kernel.exception.SystemException {
128 return getPersistence().remove(layoutSetPrototypeId);
129 }
130
131 public static com.liferay.portal.model.LayoutSetPrototype updateImpl(
132 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype,
133 boolean merge)
134 throws com.liferay.portal.kernel.exception.SystemException {
135 return getPersistence().updateImpl(layoutSetPrototype, merge);
136 }
137
138 public static com.liferay.portal.model.LayoutSetPrototype findByPrimaryKey(
139 long layoutSetPrototypeId)
140 throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
141 com.liferay.portal.kernel.exception.SystemException {
142 return getPersistence().findByPrimaryKey(layoutSetPrototypeId);
143 }
144
145 public static com.liferay.portal.model.LayoutSetPrototype fetchByPrimaryKey(
146 long layoutSetPrototypeId)
147 throws com.liferay.portal.kernel.exception.SystemException {
148 return getPersistence().fetchByPrimaryKey(layoutSetPrototypeId);
149 }
150
151 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId(
152 long companyId)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getPersistence().findByCompanyId(companyId);
155 }
156
157 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId(
158 long companyId, int start, int end)
159 throws com.liferay.portal.kernel.exception.SystemException {
160 return getPersistence().findByCompanyId(companyId, start, end);
161 }
162
163 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId(
164 long companyId, int start, int end,
165 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166 throws com.liferay.portal.kernel.exception.SystemException {
167 return getPersistence()
168 .findByCompanyId(companyId, start, end, orderByComparator);
169 }
170
171 public static com.liferay.portal.model.LayoutSetPrototype findByCompanyId_First(
172 long companyId,
173 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
174 throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
175 com.liferay.portal.kernel.exception.SystemException {
176 return getPersistence()
177 .findByCompanyId_First(companyId, orderByComparator);
178 }
179
180 public static com.liferay.portal.model.LayoutSetPrototype findByCompanyId_Last(
181 long companyId,
182 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
183 throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getPersistence()
186 .findByCompanyId_Last(companyId, orderByComparator);
187 }
188
189 public static com.liferay.portal.model.LayoutSetPrototype[] findByCompanyId_PrevAndNext(
190 long layoutSetPrototypeId, long companyId,
191 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
192 throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
193 com.liferay.portal.kernel.exception.SystemException {
194 return getPersistence()
195 .findByCompanyId_PrevAndNext(layoutSetPrototypeId,
196 companyId, orderByComparator);
197 }
198
199 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A(
200 long companyId, boolean active)
201 throws com.liferay.portal.kernel.exception.SystemException {
202 return getPersistence().findByC_A(companyId, active);
203 }
204
205 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A(
206 long companyId, boolean active, int start, int end)
207 throws com.liferay.portal.kernel.exception.SystemException {
208 return getPersistence().findByC_A(companyId, active, start, end);
209 }
210
211 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A(
212 long companyId, boolean active, int start, int end,
213 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214 throws com.liferay.portal.kernel.exception.SystemException {
215 return getPersistence()
216 .findByC_A(companyId, active, start, end, orderByComparator);
217 }
218
219 public static com.liferay.portal.model.LayoutSetPrototype findByC_A_First(
220 long companyId, boolean active,
221 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222 throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
223 com.liferay.portal.kernel.exception.SystemException {
224 return getPersistence()
225 .findByC_A_First(companyId, active, orderByComparator);
226 }
227
228 public static com.liferay.portal.model.LayoutSetPrototype findByC_A_Last(
229 long companyId, boolean active,
230 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
231 throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
232 com.liferay.portal.kernel.exception.SystemException {
233 return getPersistence()
234 .findByC_A_Last(companyId, active, orderByComparator);
235 }
236
237 public static com.liferay.portal.model.LayoutSetPrototype[] findByC_A_PrevAndNext(
238 long layoutSetPrototypeId, long companyId, boolean active,
239 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
240 throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
241 com.liferay.portal.kernel.exception.SystemException {
242 return getPersistence()
243 .findByC_A_PrevAndNext(layoutSetPrototypeId, companyId,
244 active, orderByComparator);
245 }
246
247 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll()
248 throws com.liferay.portal.kernel.exception.SystemException {
249 return getPersistence().findAll();
250 }
251
252 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll(
253 int start, int end)
254 throws com.liferay.portal.kernel.exception.SystemException {
255 return getPersistence().findAll(start, end);
256 }
257
258 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll(
259 int start, int end,
260 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
261 throws com.liferay.portal.kernel.exception.SystemException {
262 return getPersistence().findAll(start, end, orderByComparator);
263 }
264
265 public static void removeByCompanyId(long companyId)
266 throws com.liferay.portal.kernel.exception.SystemException {
267 getPersistence().removeByCompanyId(companyId);
268 }
269
270 public static void removeByC_A(long companyId, boolean active)
271 throws com.liferay.portal.kernel.exception.SystemException {
272 getPersistence().removeByC_A(companyId, active);
273 }
274
275 public static void removeAll()
276 throws com.liferay.portal.kernel.exception.SystemException {
277 getPersistence().removeAll();
278 }
279
280 public static int countByCompanyId(long companyId)
281 throws com.liferay.portal.kernel.exception.SystemException {
282 return getPersistence().countByCompanyId(companyId);
283 }
284
285 public static int countByC_A(long companyId, boolean active)
286 throws com.liferay.portal.kernel.exception.SystemException {
287 return getPersistence().countByC_A(companyId, active);
288 }
289
290 public static int countAll()
291 throws com.liferay.portal.kernel.exception.SystemException {
292 return getPersistence().countAll();
293 }
294
295 public static LayoutSetPrototypePersistence getPersistence() {
296 if (_persistence == null) {
297 _persistence = (LayoutSetPrototypePersistence)PortalBeanLocatorUtil.locate(LayoutSetPrototypePersistence.class.getName());
298 }
299
300 return _persistence;
301 }
302
303 public void setPersistence(LayoutSetPrototypePersistence persistence) {
304 _persistence = persistence;
305 }
306
307 private static LayoutSetPrototypePersistence _persistence;
308 }