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#findWithDynamicQuery(DynamicQuery)
47       */
48      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
49          throws SystemException {
50          return getPersistence().findWithDynamicQuery(dynamicQuery);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
55       */
56      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
57          int start, int end) throws SystemException {
58          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
63       */
64      public static LayoutSetPrototype remove(
65          LayoutSetPrototype layoutSetPrototype) throws SystemException {
66          return getPersistence().remove(layoutSetPrototype);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
71       */
72      public static LayoutSetPrototype update(
73          LayoutSetPrototype layoutSetPrototype, boolean merge)
74          throws SystemException {
75          return getPersistence().update(layoutSetPrototype, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype) {
80          getPersistence().cacheResult(layoutSetPrototype);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portal.model.LayoutSetPrototype> layoutSetPrototypes) {
85          getPersistence().cacheResult(layoutSetPrototypes);
86      }
87  
88      public static com.liferay.portal.model.LayoutSetPrototype create(
89          long layoutSetPrototypeId) {
90          return getPersistence().create(layoutSetPrototypeId);
91      }
92  
93      public static com.liferay.portal.model.LayoutSetPrototype remove(
94          long layoutSetPrototypeId)
95          throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
96              com.liferay.portal.kernel.exception.SystemException {
97          return getPersistence().remove(layoutSetPrototypeId);
98      }
99  
100     public static com.liferay.portal.model.LayoutSetPrototype updateImpl(
101         com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype,
102         boolean merge)
103         throws com.liferay.portal.kernel.exception.SystemException {
104         return getPersistence().updateImpl(layoutSetPrototype, merge);
105     }
106 
107     public static com.liferay.portal.model.LayoutSetPrototype findByPrimaryKey(
108         long layoutSetPrototypeId)
109         throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
110             com.liferay.portal.kernel.exception.SystemException {
111         return getPersistence().findByPrimaryKey(layoutSetPrototypeId);
112     }
113 
114     public static com.liferay.portal.model.LayoutSetPrototype fetchByPrimaryKey(
115         long layoutSetPrototypeId)
116         throws com.liferay.portal.kernel.exception.SystemException {
117         return getPersistence().fetchByPrimaryKey(layoutSetPrototypeId);
118     }
119 
120     public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId(
121         long companyId)
122         throws com.liferay.portal.kernel.exception.SystemException {
123         return getPersistence().findByCompanyId(companyId);
124     }
125 
126     public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId(
127         long companyId, int start, int end)
128         throws com.liferay.portal.kernel.exception.SystemException {
129         return getPersistence().findByCompanyId(companyId, start, end);
130     }
131 
132     public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId(
133         long companyId, int start, int end,
134         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getPersistence()
137                    .findByCompanyId(companyId, start, end, orderByComparator);
138     }
139 
140     public static com.liferay.portal.model.LayoutSetPrototype findByCompanyId_First(
141         long companyId,
142         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143         throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
144             com.liferay.portal.kernel.exception.SystemException {
145         return getPersistence()
146                    .findByCompanyId_First(companyId, orderByComparator);
147     }
148 
149     public static com.liferay.portal.model.LayoutSetPrototype findByCompanyId_Last(
150         long companyId,
151         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152         throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
153             com.liferay.portal.kernel.exception.SystemException {
154         return getPersistence()
155                    .findByCompanyId_Last(companyId, orderByComparator);
156     }
157 
158     public static com.liferay.portal.model.LayoutSetPrototype[] findByCompanyId_PrevAndNext(
159         long layoutSetPrototypeId, long companyId,
160         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
161         throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
162             com.liferay.portal.kernel.exception.SystemException {
163         return getPersistence()
164                    .findByCompanyId_PrevAndNext(layoutSetPrototypeId,
165             companyId, orderByComparator);
166     }
167 
168     public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A(
169         long companyId, boolean active)
170         throws com.liferay.portal.kernel.exception.SystemException {
171         return getPersistence().findByC_A(companyId, active);
172     }
173 
174     public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A(
175         long companyId, boolean active, int start, int end)
176         throws com.liferay.portal.kernel.exception.SystemException {
177         return getPersistence().findByC_A(companyId, active, start, end);
178     }
179 
180     public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A(
181         long companyId, boolean active, int start, int end,
182         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
183         throws com.liferay.portal.kernel.exception.SystemException {
184         return getPersistence()
185                    .findByC_A(companyId, active, start, end, orderByComparator);
186     }
187 
188     public static com.liferay.portal.model.LayoutSetPrototype findByC_A_First(
189         long companyId, boolean active,
190         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
191         throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
192             com.liferay.portal.kernel.exception.SystemException {
193         return getPersistence()
194                    .findByC_A_First(companyId, active, orderByComparator);
195     }
196 
197     public static com.liferay.portal.model.LayoutSetPrototype findByC_A_Last(
198         long companyId, boolean active,
199         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
200         throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
201             com.liferay.portal.kernel.exception.SystemException {
202         return getPersistence()
203                    .findByC_A_Last(companyId, active, orderByComparator);
204     }
205 
206     public static com.liferay.portal.model.LayoutSetPrototype[] findByC_A_PrevAndNext(
207         long layoutSetPrototypeId, long companyId, boolean active,
208         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209         throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
210             com.liferay.portal.kernel.exception.SystemException {
211         return getPersistence()
212                    .findByC_A_PrevAndNext(layoutSetPrototypeId, companyId,
213             active, orderByComparator);
214     }
215 
216     public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll()
217         throws com.liferay.portal.kernel.exception.SystemException {
218         return getPersistence().findAll();
219     }
220 
221     public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll(
222         int start, int end)
223         throws com.liferay.portal.kernel.exception.SystemException {
224         return getPersistence().findAll(start, end);
225     }
226 
227     public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll(
228         int start, int end,
229         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
230         throws com.liferay.portal.kernel.exception.SystemException {
231         return getPersistence().findAll(start, end, orderByComparator);
232     }
233 
234     public static void removeByCompanyId(long companyId)
235         throws com.liferay.portal.kernel.exception.SystemException {
236         getPersistence().removeByCompanyId(companyId);
237     }
238 
239     public static void removeByC_A(long companyId, boolean active)
240         throws com.liferay.portal.kernel.exception.SystemException {
241         getPersistence().removeByC_A(companyId, active);
242     }
243 
244     public static void removeAll()
245         throws com.liferay.portal.kernel.exception.SystemException {
246         getPersistence().removeAll();
247     }
248 
249     public static int countByCompanyId(long companyId)
250         throws com.liferay.portal.kernel.exception.SystemException {
251         return getPersistence().countByCompanyId(companyId);
252     }
253 
254     public static int countByC_A(long companyId, boolean active)
255         throws com.liferay.portal.kernel.exception.SystemException {
256         return getPersistence().countByC_A(companyId, active);
257     }
258 
259     public static int countAll()
260         throws com.liferay.portal.kernel.exception.SystemException {
261         return getPersistence().countAll();
262     }
263 
264     public static LayoutSetPrototypePersistence getPersistence() {
265         if (_persistence == null) {
266             _persistence = (LayoutSetPrototypePersistence)PortalBeanLocatorUtil.locate(LayoutSetPrototypePersistence.class.getName());
267         }
268 
269         return _persistence;
270     }
271 
272     public void setPersistence(LayoutSetPrototypePersistence persistence) {
273         _persistence = persistence;
274     }
275 
276     private static LayoutSetPrototypePersistence _persistence;
277 }