1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.SystemException;
18  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20  import com.liferay.portal.model.LayoutSet;
21  
22  import java.util.List;
23  
24  /**
25   * <a href="LayoutSetUtil.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       LayoutSetPersistence
34   * @see       LayoutSetPersistenceImpl
35   * @generated
36   */
37  public class LayoutSetUtil {
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 LayoutSet remove(LayoutSet layoutSet)
65          throws SystemException {
66          return getPersistence().remove(layoutSet);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
71       */
72      public static LayoutSet update(LayoutSet layoutSet, boolean merge)
73          throws SystemException {
74          return getPersistence().update(layoutSet, merge);
75      }
76  
77      public static void cacheResult(com.liferay.portal.model.LayoutSet layoutSet) {
78          getPersistence().cacheResult(layoutSet);
79      }
80  
81      public static void cacheResult(
82          java.util.List<com.liferay.portal.model.LayoutSet> layoutSets) {
83          getPersistence().cacheResult(layoutSets);
84      }
85  
86      public static com.liferay.portal.model.LayoutSet create(long layoutSetId) {
87          return getPersistence().create(layoutSetId);
88      }
89  
90      public static com.liferay.portal.model.LayoutSet remove(long layoutSetId)
91          throws com.liferay.portal.NoSuchLayoutSetException,
92              com.liferay.portal.SystemException {
93          return getPersistence().remove(layoutSetId);
94      }
95  
96      /**
97       * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
98       */
99      public static com.liferay.portal.model.LayoutSet update(
100         com.liferay.portal.model.LayoutSet layoutSet)
101         throws com.liferay.portal.SystemException {
102         return getPersistence().update(layoutSet);
103     }
104 
105     public static com.liferay.portal.model.LayoutSet updateImpl(
106         com.liferay.portal.model.LayoutSet layoutSet, boolean merge)
107         throws com.liferay.portal.SystemException {
108         return getPersistence().updateImpl(layoutSet, merge);
109     }
110 
111     public static com.liferay.portal.model.LayoutSet findByPrimaryKey(
112         long layoutSetId)
113         throws com.liferay.portal.NoSuchLayoutSetException,
114             com.liferay.portal.SystemException {
115         return getPersistence().findByPrimaryKey(layoutSetId);
116     }
117 
118     public static com.liferay.portal.model.LayoutSet fetchByPrimaryKey(
119         long layoutSetId) throws com.liferay.portal.SystemException {
120         return getPersistence().fetchByPrimaryKey(layoutSetId);
121     }
122 
123     public static java.util.List<com.liferay.portal.model.LayoutSet> findByGroupId(
124         long groupId) throws com.liferay.portal.SystemException {
125         return getPersistence().findByGroupId(groupId);
126     }
127 
128     public static java.util.List<com.liferay.portal.model.LayoutSet> findByGroupId(
129         long groupId, int start, int end)
130         throws com.liferay.portal.SystemException {
131         return getPersistence().findByGroupId(groupId, start, end);
132     }
133 
134     public static java.util.List<com.liferay.portal.model.LayoutSet> findByGroupId(
135         long groupId, int start, int end,
136         com.liferay.portal.kernel.util.OrderByComparator obc)
137         throws com.liferay.portal.SystemException {
138         return getPersistence().findByGroupId(groupId, start, end, obc);
139     }
140 
141     public static com.liferay.portal.model.LayoutSet findByGroupId_First(
142         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
143         throws com.liferay.portal.NoSuchLayoutSetException,
144             com.liferay.portal.SystemException {
145         return getPersistence().findByGroupId_First(groupId, obc);
146     }
147 
148     public static com.liferay.portal.model.LayoutSet findByGroupId_Last(
149         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
150         throws com.liferay.portal.NoSuchLayoutSetException,
151             com.liferay.portal.SystemException {
152         return getPersistence().findByGroupId_Last(groupId, obc);
153     }
154 
155     public static com.liferay.portal.model.LayoutSet[] findByGroupId_PrevAndNext(
156         long layoutSetId, long groupId,
157         com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.NoSuchLayoutSetException,
159             com.liferay.portal.SystemException {
160         return getPersistence()
161                    .findByGroupId_PrevAndNext(layoutSetId, groupId, obc);
162     }
163 
164     public static com.liferay.portal.model.LayoutSet findByVirtualHost(
165         java.lang.String virtualHost)
166         throws com.liferay.portal.NoSuchLayoutSetException,
167             com.liferay.portal.SystemException {
168         return getPersistence().findByVirtualHost(virtualHost);
169     }
170 
171     public static com.liferay.portal.model.LayoutSet fetchByVirtualHost(
172         java.lang.String virtualHost) throws com.liferay.portal.SystemException {
173         return getPersistence().fetchByVirtualHost(virtualHost);
174     }
175 
176     public static com.liferay.portal.model.LayoutSet fetchByVirtualHost(
177         java.lang.String virtualHost, boolean retrieveFromCache)
178         throws com.liferay.portal.SystemException {
179         return getPersistence()
180                    .fetchByVirtualHost(virtualHost, retrieveFromCache);
181     }
182 
183     public static com.liferay.portal.model.LayoutSet findByG_P(long groupId,
184         boolean privateLayout)
185         throws com.liferay.portal.NoSuchLayoutSetException,
186             com.liferay.portal.SystemException {
187         return getPersistence().findByG_P(groupId, privateLayout);
188     }
189 
190     public static com.liferay.portal.model.LayoutSet fetchByG_P(long groupId,
191         boolean privateLayout) throws com.liferay.portal.SystemException {
192         return getPersistence().fetchByG_P(groupId, privateLayout);
193     }
194 
195     public static com.liferay.portal.model.LayoutSet fetchByG_P(long groupId,
196         boolean privateLayout, boolean retrieveFromCache)
197         throws com.liferay.portal.SystemException {
198         return getPersistence()
199                    .fetchByG_P(groupId, privateLayout, retrieveFromCache);
200     }
201 
202     public static java.util.List<com.liferay.portal.model.LayoutSet> findAll()
203         throws com.liferay.portal.SystemException {
204         return getPersistence().findAll();
205     }
206 
207     public static java.util.List<com.liferay.portal.model.LayoutSet> findAll(
208         int start, int end) throws com.liferay.portal.SystemException {
209         return getPersistence().findAll(start, end);
210     }
211 
212     public static java.util.List<com.liferay.portal.model.LayoutSet> findAll(
213         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
214         throws com.liferay.portal.SystemException {
215         return getPersistence().findAll(start, end, obc);
216     }
217 
218     public static void removeByGroupId(long groupId)
219         throws com.liferay.portal.SystemException {
220         getPersistence().removeByGroupId(groupId);
221     }
222 
223     public static void removeByVirtualHost(java.lang.String virtualHost)
224         throws com.liferay.portal.NoSuchLayoutSetException,
225             com.liferay.portal.SystemException {
226         getPersistence().removeByVirtualHost(virtualHost);
227     }
228 
229     public static void removeByG_P(long groupId, boolean privateLayout)
230         throws com.liferay.portal.NoSuchLayoutSetException,
231             com.liferay.portal.SystemException {
232         getPersistence().removeByG_P(groupId, privateLayout);
233     }
234 
235     public static void removeAll() throws com.liferay.portal.SystemException {
236         getPersistence().removeAll();
237     }
238 
239     public static int countByGroupId(long groupId)
240         throws com.liferay.portal.SystemException {
241         return getPersistence().countByGroupId(groupId);
242     }
243 
244     public static int countByVirtualHost(java.lang.String virtualHost)
245         throws com.liferay.portal.SystemException {
246         return getPersistence().countByVirtualHost(virtualHost);
247     }
248 
249     public static int countByG_P(long groupId, boolean privateLayout)
250         throws com.liferay.portal.SystemException {
251         return getPersistence().countByG_P(groupId, privateLayout);
252     }
253 
254     public static int countAll() throws com.liferay.portal.SystemException {
255         return getPersistence().countAll();
256     }
257 
258     public static LayoutSetPersistence getPersistence() {
259         if (_persistence == null) {
260             _persistence = (LayoutSetPersistence)PortalBeanLocatorUtil.locate(LayoutSetPersistence.class.getName());
261         }
262 
263         return _persistence;
264     }
265 
266     public void setPersistence(LayoutSetPersistence persistence) {
267         _persistence = persistence;
268     }
269 
270     private static LayoutSetPersistence _persistence;
271 }