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 obc)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getPersistence().findByCompanyId(companyId, start, end, obc);
137     }
138 
139     public static com.liferay.portal.model.LayoutSetPrototype findByCompanyId_First(
140         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
142             com.liferay.portal.kernel.exception.SystemException {
143         return getPersistence().findByCompanyId_First(companyId, obc);
144     }
145 
146     public static com.liferay.portal.model.LayoutSetPrototype findByCompanyId_Last(
147         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
149             com.liferay.portal.kernel.exception.SystemException {
150         return getPersistence().findByCompanyId_Last(companyId, obc);
151     }
152 
153     public static com.liferay.portal.model.LayoutSetPrototype[] findByCompanyId_PrevAndNext(
154         long layoutSetPrototypeId, long companyId,
155         com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
157             com.liferay.portal.kernel.exception.SystemException {
158         return getPersistence()
159                    .findByCompanyId_PrevAndNext(layoutSetPrototypeId,
160             companyId, obc);
161     }
162 
163     public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A(
164         long companyId, boolean active)
165         throws com.liferay.portal.kernel.exception.SystemException {
166         return getPersistence().findByC_A(companyId, active);
167     }
168 
169     public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A(
170         long companyId, boolean active, int start, int end)
171         throws com.liferay.portal.kernel.exception.SystemException {
172         return getPersistence().findByC_A(companyId, active, start, end);
173     }
174 
175     public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A(
176         long companyId, boolean active, int start, int end,
177         com.liferay.portal.kernel.util.OrderByComparator obc)
178         throws com.liferay.portal.kernel.exception.SystemException {
179         return getPersistence().findByC_A(companyId, active, start, end, obc);
180     }
181 
182     public static com.liferay.portal.model.LayoutSetPrototype findByC_A_First(
183         long companyId, boolean active,
184         com.liferay.portal.kernel.util.OrderByComparator obc)
185         throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
186             com.liferay.portal.kernel.exception.SystemException {
187         return getPersistence().findByC_A_First(companyId, active, obc);
188     }
189 
190     public static com.liferay.portal.model.LayoutSetPrototype findByC_A_Last(
191         long companyId, boolean active,
192         com.liferay.portal.kernel.util.OrderByComparator obc)
193         throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
194             com.liferay.portal.kernel.exception.SystemException {
195         return getPersistence().findByC_A_Last(companyId, active, obc);
196     }
197 
198     public static com.liferay.portal.model.LayoutSetPrototype[] findByC_A_PrevAndNext(
199         long layoutSetPrototypeId, long companyId, boolean active,
200         com.liferay.portal.kernel.util.OrderByComparator obc)
201         throws com.liferay.portal.NoSuchLayoutSetPrototypeException,
202             com.liferay.portal.kernel.exception.SystemException {
203         return getPersistence()
204                    .findByC_A_PrevAndNext(layoutSetPrototypeId, companyId,
205             active, obc);
206     }
207 
208     public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll()
209         throws com.liferay.portal.kernel.exception.SystemException {
210         return getPersistence().findAll();
211     }
212 
213     public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll(
214         int start, int end)
215         throws com.liferay.portal.kernel.exception.SystemException {
216         return getPersistence().findAll(start, end);
217     }
218 
219     public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll(
220         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
221         throws com.liferay.portal.kernel.exception.SystemException {
222         return getPersistence().findAll(start, end, obc);
223     }
224 
225     public static void removeByCompanyId(long companyId)
226         throws com.liferay.portal.kernel.exception.SystemException {
227         getPersistence().removeByCompanyId(companyId);
228     }
229 
230     public static void removeByC_A(long companyId, boolean active)
231         throws com.liferay.portal.kernel.exception.SystemException {
232         getPersistence().removeByC_A(companyId, active);
233     }
234 
235     public static void removeAll()
236         throws com.liferay.portal.kernel.exception.SystemException {
237         getPersistence().removeAll();
238     }
239 
240     public static int countByCompanyId(long companyId)
241         throws com.liferay.portal.kernel.exception.SystemException {
242         return getPersistence().countByCompanyId(companyId);
243     }
244 
245     public static int countByC_A(long companyId, boolean active)
246         throws com.liferay.portal.kernel.exception.SystemException {
247         return getPersistence().countByC_A(companyId, active);
248     }
249 
250     public static int countAll()
251         throws com.liferay.portal.kernel.exception.SystemException {
252         return getPersistence().countAll();
253     }
254 
255     public static LayoutSetPrototypePersistence getPersistence() {
256         if (_persistence == null) {
257             _persistence = (LayoutSetPrototypePersistence)PortalBeanLocatorUtil.locate(LayoutSetPrototypePersistence.class.getName());
258         }
259 
260         return _persistence;
261     }
262 
263     public void setPersistence(LayoutSetPrototypePersistence persistence) {
264         _persistence = persistence;
265     }
266 
267     private static LayoutSetPrototypePersistence _persistence;
268 }