1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  import com.liferay.portal.model.LayoutSetPrototype;
21  
22  import java.util.List;
23  
24  /**
25   * <a href="LayoutSetPrototypeUtil.java.html"><b><i>View Source</i></b></a>
26   *
27   * <p>
28   * ServiceBuilder generated this class. Modifications in this class will be
29   * overwritten the next time is generated.
30   * </p>
31   *
32   * @author    Brian Wing Shun Chan
33   * @see       LayoutSetPrototypePersistence
34   * @see       LayoutSetPrototypePersistenceImpl
35   * @generated
36   */
37  public class LayoutSetPrototypeUtil {
38      /**
39       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
40       */
41      public static void clearCache() {
42          getPersistence().clearCache();
43      }
44  
45      /**
46       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(LayoutSetPrototype)
47       */
48      public static void clearCache(LayoutSetPrototype layoutSetPrototype) {
49          getPersistence().clearCache(layoutSetPrototype);
50      }
51  
52      /**
53       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
54       */
55      public long countWithDynamicQuery(DynamicQuery dynamicQuery)
56          throws SystemException {
57          return getPersistence().countWithDynamicQuery(dynamicQuery);
58      }
59  
60      /**
61       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
62       */
63      public static List<LayoutSetPrototype> findWithDynamicQuery(
64          DynamicQuery dynamicQuery) throws SystemException {
65          return getPersistence().findWithDynamicQuery(dynamicQuery);
66      }
67  
68      /**
69       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
70       */
71      public static List<LayoutSetPrototype> findWithDynamicQuery(
72          DynamicQuery dynamicQuery, int start, int end)
73          throws SystemException {
74          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
75      }
76  
77      /**
78       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
79       */
80      public static LayoutSetPrototype remove(
81          LayoutSetPrototype layoutSetPrototype) throws SystemException {
82          return getPersistence().remove(layoutSetPrototype);
83      }
84  
85      /**
86       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
87       */
88      public static LayoutSetPrototype update(
89          LayoutSetPrototype layoutSetPrototype, boolean merge)
90          throws SystemException {
91          return getPersistence().update(layoutSetPrototype, merge);
92      }
93  
94      public static void cacheResult(
95          com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype) {
96          getPersistence().cacheResult(layoutSetPrototype);
97      }
98  
99      public static void cacheResult(
100         java.util.List<com.liferay.portal.model.LayoutSetPrototype> layoutSetPrototypes) {
101         getPersistence().cacheResult(layoutSetPrototypes);
102     }
103 
104     public static com.liferay.portal.model.LayoutSetPrototype create(
105         long layoutSetPrototypeId) {
106         return getPersistence().create(layoutSetPrototypeId);
107     }
108 
109     public static com.liferay.portal.model.LayoutSetPrototype remove(
110         long layoutSetPrototypeId)
111         throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
112             com.liferay.portal.kernel.exception.SystemException {
113         return getPersistence().remove(layoutSetPrototypeId);
114     }
115 
116     public static com.liferay.portal.model.LayoutSetPrototype updateImpl(
117         com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype,
118         boolean merge)
119         throws com.liferay.portal.kernel.exception.SystemException {
120         return getPersistence().updateImpl(layoutSetPrototype, merge);
121     }
122 
123     public static com.liferay.portal.model.LayoutSetPrototype findByPrimaryKey(
124         long layoutSetPrototypeId)
125         throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
126             com.liferay.portal.kernel.exception.SystemException {
127         return getPersistence().findByPrimaryKey(layoutSetPrototypeId);
128     }
129 
130     public static com.liferay.portal.model.LayoutSetPrototype fetchByPrimaryKey(
131         long layoutSetPrototypeId)
132         throws com.liferay.portal.kernel.exception.SystemException {
133         return getPersistence().fetchByPrimaryKey(layoutSetPrototypeId);
134     }
135 
136     public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId(
137         long companyId)
138         throws com.liferay.portal.kernel.exception.SystemException {
139         return getPersistence().findByCompanyId(companyId);
140     }
141 
142     public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId(
143         long companyId, int start, int end)
144         throws com.liferay.portal.kernel.exception.SystemException {
145         return getPersistence().findByCompanyId(companyId, start, end);
146     }
147 
148     public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId(
149         long companyId, int start, int end,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.kernel.exception.SystemException {
152         return getPersistence()
153                    .findByCompanyId(companyId, start, end, orderByComparator);
154     }
155 
156     public static com.liferay.portal.model.LayoutSetPrototype findByCompanyId_First(
157         long companyId,
158         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159         throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
160             com.liferay.portal.kernel.exception.SystemException {
161         return getPersistence()
162                    .findByCompanyId_First(companyId, orderByComparator);
163     }
164 
165     public static com.liferay.portal.model.LayoutSetPrototype findByCompanyId_Last(
166         long companyId,
167         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168         throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
169             com.liferay.portal.kernel.exception.SystemException {
170         return getPersistence()
171                    .findByCompanyId_Last(companyId, orderByComparator);
172     }
173 
174     public static com.liferay.portal.model.LayoutSetPrototype[] findByCompanyId_PrevAndNext(
175         long layoutSetPrototypeId, long companyId,
176         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177         throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
178             com.liferay.portal.kernel.exception.SystemException {
179         return getPersistence()
180                    .findByCompanyId_PrevAndNext(layoutSetPrototypeId,
181             companyId, orderByComparator);
182     }
183 
184     public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A(
185         long companyId, boolean active)
186         throws com.liferay.portal.kernel.exception.SystemException {
187         return getPersistence().findByC_A(companyId, active);
188     }
189 
190     public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A(
191         long companyId, boolean active, int start, int end)
192         throws com.liferay.portal.kernel.exception.SystemException {
193         return getPersistence().findByC_A(companyId, active, start, end);
194     }
195 
196     public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A(
197         long companyId, boolean active, int start, int end,
198         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
199         throws com.liferay.portal.kernel.exception.SystemException {
200         return getPersistence()
201                    .findByC_A(companyId, active, start, end, orderByComparator);
202     }
203 
204     public static com.liferay.portal.model.LayoutSetPrototype findByC_A_First(
205         long companyId, boolean active,
206         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207         throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
208             com.liferay.portal.kernel.exception.SystemException {
209         return getPersistence()
210                    .findByC_A_First(companyId, active, orderByComparator);
211     }
212 
213     public static com.liferay.portal.model.LayoutSetPrototype findByC_A_Last(
214         long companyId, boolean active,
215         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
216         throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
217             com.liferay.portal.kernel.exception.SystemException {
218         return getPersistence()
219                    .findByC_A_Last(companyId, active, orderByComparator);
220     }
221 
222     public static com.liferay.portal.model.LayoutSetPrototype[] findByC_A_PrevAndNext(
223         long layoutSetPrototypeId, long companyId, boolean active,
224         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
225         throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
226             com.liferay.portal.kernel.exception.SystemException {
227         return getPersistence()
228                    .findByC_A_PrevAndNext(layoutSetPrototypeId, companyId,
229             active, orderByComparator);
230     }
231 
232     public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll()
233         throws com.liferay.portal.kernel.exception.SystemException {
234         return getPersistence().findAll();
235     }
236 
237     public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll(
238         int start, int end)
239         throws com.liferay.portal.kernel.exception.SystemException {
240         return getPersistence().findAll(start, end);
241     }
242 
243     public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll(
244         int start, int end,
245         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
246         throws com.liferay.portal.kernel.exception.SystemException {
247         return getPersistence().findAll(start, end, orderByComparator);
248     }
249 
250     public static void removeByCompanyId(long companyId)
251         throws com.liferay.portal.kernel.exception.SystemException {
252         getPersistence().removeByCompanyId(companyId);
253     }
254 
255     public static void removeByC_A(long companyId, boolean active)
256         throws com.liferay.portal.kernel.exception.SystemException {
257         getPersistence().removeByC_A(companyId, active);
258     }
259 
260     public static void removeAll()
261         throws com.liferay.portal.kernel.exception.SystemException {
262         getPersistence().removeAll();
263     }
264 
265     public static int countByCompanyId(long companyId)
266         throws com.liferay.portal.kernel.exception.SystemException {
267         return getPersistence().countByCompanyId(companyId);
268     }
269 
270     public static int countByC_A(long companyId, boolean active)
271         throws com.liferay.portal.kernel.exception.SystemException {
272         return getPersistence().countByC_A(companyId, active);
273     }
274 
275     public static int countAll()
276         throws com.liferay.portal.kernel.exception.SystemException {
277         return getPersistence().countAll();
278     }
279 
280     public static LayoutSetPrototypePersistence getPersistence() {
281         if (_persistence == null) {
282             _persistence = (LayoutSetPrototypePersistence)PortalBeanLocatorUtil.locate(LayoutSetPrototypePersistence.class.getName());
283         }
284 
285         return _persistence;
286     }
287 
288     public void setPersistence(LayoutSetPrototypePersistence persistence) {
289         _persistence = persistence;
290     }
291 
292     private static LayoutSetPrototypePersistence _persistence;
293 }