1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  import com.liferay.portal.SystemException;
26  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28  import com.liferay.portal.model.LayoutSet;
29  
30  import java.util.List;
31  
32  /**
33   * <a href="LayoutSetUtil.java.html"><b><i>View Source</i></b></a>
34   *
35   * <p>
36   * ServiceBuilder generated this class. Modifications in this class will be
37   * overwritten the next time is generated.
38   * </p>
39   *
40   * @author    Brian Wing Shun Chan
41   * @see       LayoutSetPersistence
42   * @see       LayoutSetPersistenceImpl
43   * @generated
44   */
45  public class LayoutSetUtil {
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
48       */
49      public static void clearCache() {
50          getPersistence().clearCache();
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
55       */
56      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
57          throws SystemException {
58          return getPersistence().findWithDynamicQuery(dynamicQuery);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
63       */
64      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
65          int start, int end) throws SystemException {
66          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
71       */
72      public static LayoutSet remove(LayoutSet layoutSet)
73          throws SystemException {
74          return getPersistence().remove(layoutSet);
75      }
76  
77      /**
78       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
79       */
80      public static LayoutSet update(LayoutSet layoutSet, boolean merge)
81          throws SystemException {
82          return getPersistence().update(layoutSet, merge);
83      }
84  
85      public static void cacheResult(com.liferay.portal.model.LayoutSet layoutSet) {
86          getPersistence().cacheResult(layoutSet);
87      }
88  
89      public static void cacheResult(
90          java.util.List<com.liferay.portal.model.LayoutSet> layoutSets) {
91          getPersistence().cacheResult(layoutSets);
92      }
93  
94      public static com.liferay.portal.model.LayoutSet create(long layoutSetId) {
95          return getPersistence().create(layoutSetId);
96      }
97  
98      public static com.liferay.portal.model.LayoutSet remove(long layoutSetId)
99          throws com.liferay.portal.NoSuchLayoutSetException,
100             com.liferay.portal.SystemException {
101         return getPersistence().remove(layoutSetId);
102     }
103 
104     /**
105      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
106      */
107     public static com.liferay.portal.model.LayoutSet update(
108         com.liferay.portal.model.LayoutSet layoutSet)
109         throws com.liferay.portal.SystemException {
110         return getPersistence().update(layoutSet);
111     }
112 
113     public static com.liferay.portal.model.LayoutSet updateImpl(
114         com.liferay.portal.model.LayoutSet layoutSet, boolean merge)
115         throws com.liferay.portal.SystemException {
116         return getPersistence().updateImpl(layoutSet, merge);
117     }
118 
119     public static com.liferay.portal.model.LayoutSet findByPrimaryKey(
120         long layoutSetId)
121         throws com.liferay.portal.NoSuchLayoutSetException,
122             com.liferay.portal.SystemException {
123         return getPersistence().findByPrimaryKey(layoutSetId);
124     }
125 
126     public static com.liferay.portal.model.LayoutSet fetchByPrimaryKey(
127         long layoutSetId) throws com.liferay.portal.SystemException {
128         return getPersistence().fetchByPrimaryKey(layoutSetId);
129     }
130 
131     public static java.util.List<com.liferay.portal.model.LayoutSet> findByGroupId(
132         long groupId) throws com.liferay.portal.SystemException {
133         return getPersistence().findByGroupId(groupId);
134     }
135 
136     public static java.util.List<com.liferay.portal.model.LayoutSet> findByGroupId(
137         long groupId, int start, int end)
138         throws com.liferay.portal.SystemException {
139         return getPersistence().findByGroupId(groupId, start, end);
140     }
141 
142     public static java.util.List<com.liferay.portal.model.LayoutSet> findByGroupId(
143         long groupId, int start, int end,
144         com.liferay.portal.kernel.util.OrderByComparator obc)
145         throws com.liferay.portal.SystemException {
146         return getPersistence().findByGroupId(groupId, start, end, obc);
147     }
148 
149     public static com.liferay.portal.model.LayoutSet findByGroupId_First(
150         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.NoSuchLayoutSetException,
152             com.liferay.portal.SystemException {
153         return getPersistence().findByGroupId_First(groupId, obc);
154     }
155 
156     public static com.liferay.portal.model.LayoutSet findByGroupId_Last(
157         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.NoSuchLayoutSetException,
159             com.liferay.portal.SystemException {
160         return getPersistence().findByGroupId_Last(groupId, obc);
161     }
162 
163     public static com.liferay.portal.model.LayoutSet[] findByGroupId_PrevAndNext(
164         long layoutSetId, long groupId,
165         com.liferay.portal.kernel.util.OrderByComparator obc)
166         throws com.liferay.portal.NoSuchLayoutSetException,
167             com.liferay.portal.SystemException {
168         return getPersistence()
169                    .findByGroupId_PrevAndNext(layoutSetId, groupId, obc);
170     }
171 
172     public static com.liferay.portal.model.LayoutSet findByVirtualHost(
173         java.lang.String virtualHost)
174         throws com.liferay.portal.NoSuchLayoutSetException,
175             com.liferay.portal.SystemException {
176         return getPersistence().findByVirtualHost(virtualHost);
177     }
178 
179     public static com.liferay.portal.model.LayoutSet fetchByVirtualHost(
180         java.lang.String virtualHost) throws com.liferay.portal.SystemException {
181         return getPersistence().fetchByVirtualHost(virtualHost);
182     }
183 
184     public static com.liferay.portal.model.LayoutSet fetchByVirtualHost(
185         java.lang.String virtualHost, boolean retrieveFromCache)
186         throws com.liferay.portal.SystemException {
187         return getPersistence()
188                    .fetchByVirtualHost(virtualHost, retrieveFromCache);
189     }
190 
191     public static com.liferay.portal.model.LayoutSet findByG_P(long groupId,
192         boolean privateLayout)
193         throws com.liferay.portal.NoSuchLayoutSetException,
194             com.liferay.portal.SystemException {
195         return getPersistence().findByG_P(groupId, privateLayout);
196     }
197 
198     public static com.liferay.portal.model.LayoutSet fetchByG_P(long groupId,
199         boolean privateLayout) throws com.liferay.portal.SystemException {
200         return getPersistence().fetchByG_P(groupId, privateLayout);
201     }
202 
203     public static com.liferay.portal.model.LayoutSet fetchByG_P(long groupId,
204         boolean privateLayout, boolean retrieveFromCache)
205         throws com.liferay.portal.SystemException {
206         return getPersistence()
207                    .fetchByG_P(groupId, privateLayout, retrieveFromCache);
208     }
209 
210     public static java.util.List<com.liferay.portal.model.LayoutSet> findAll()
211         throws com.liferay.portal.SystemException {
212         return getPersistence().findAll();
213     }
214 
215     public static java.util.List<com.liferay.portal.model.LayoutSet> findAll(
216         int start, int end) throws com.liferay.portal.SystemException {
217         return getPersistence().findAll(start, end);
218     }
219 
220     public static java.util.List<com.liferay.portal.model.LayoutSet> findAll(
221         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
222         throws com.liferay.portal.SystemException {
223         return getPersistence().findAll(start, end, obc);
224     }
225 
226     public static void removeByGroupId(long groupId)
227         throws com.liferay.portal.SystemException {
228         getPersistence().removeByGroupId(groupId);
229     }
230 
231     public static void removeByVirtualHost(java.lang.String virtualHost)
232         throws com.liferay.portal.NoSuchLayoutSetException,
233             com.liferay.portal.SystemException {
234         getPersistence().removeByVirtualHost(virtualHost);
235     }
236 
237     public static void removeByG_P(long groupId, boolean privateLayout)
238         throws com.liferay.portal.NoSuchLayoutSetException,
239             com.liferay.portal.SystemException {
240         getPersistence().removeByG_P(groupId, privateLayout);
241     }
242 
243     public static void removeAll() throws com.liferay.portal.SystemException {
244         getPersistence().removeAll();
245     }
246 
247     public static int countByGroupId(long groupId)
248         throws com.liferay.portal.SystemException {
249         return getPersistence().countByGroupId(groupId);
250     }
251 
252     public static int countByVirtualHost(java.lang.String virtualHost)
253         throws com.liferay.portal.SystemException {
254         return getPersistence().countByVirtualHost(virtualHost);
255     }
256 
257     public static int countByG_P(long groupId, boolean privateLayout)
258         throws com.liferay.portal.SystemException {
259         return getPersistence().countByG_P(groupId, privateLayout);
260     }
261 
262     public static int countAll() throws com.liferay.portal.SystemException {
263         return getPersistence().countAll();
264     }
265 
266     public static LayoutSetPersistence getPersistence() {
267         if (_persistence == null) {
268             _persistence = (LayoutSetPersistence)PortalBeanLocatorUtil.locate(LayoutSetPersistence.class.getName());
269         }
270 
271         return _persistence;
272     }
273 
274     public void setPersistence(LayoutSetPersistence persistence) {
275         _persistence = persistence;
276     }
277 
278     private static LayoutSetPersistence _persistence;
279 }