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.model.LayoutSet;
18  
19  /**
20   * <a href="LayoutSetPersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       LayoutSetPersistenceImpl
29   * @see       LayoutSetUtil
30   * @generated
31   */
32  public interface LayoutSetPersistence extends BasePersistence<LayoutSet> {
33      public void cacheResult(com.liferay.portal.model.LayoutSet layoutSet);
34  
35      public void cacheResult(
36          java.util.List<com.liferay.portal.model.LayoutSet> layoutSets);
37  
38      public com.liferay.portal.model.LayoutSet create(long layoutSetId);
39  
40      public com.liferay.portal.model.LayoutSet remove(long layoutSetId)
41          throws com.liferay.portal.NoSuchLayoutSetException,
42              com.liferay.portal.SystemException;
43  
44      /**
45       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
46       */
47      public com.liferay.portal.model.LayoutSet update(
48          com.liferay.portal.model.LayoutSet layoutSet)
49          throws com.liferay.portal.SystemException;
50  
51      public com.liferay.portal.model.LayoutSet updateImpl(
52          com.liferay.portal.model.LayoutSet layoutSet, boolean merge)
53          throws com.liferay.portal.SystemException;
54  
55      public com.liferay.portal.model.LayoutSet findByPrimaryKey(long layoutSetId)
56          throws com.liferay.portal.NoSuchLayoutSetException,
57              com.liferay.portal.SystemException;
58  
59      public com.liferay.portal.model.LayoutSet fetchByPrimaryKey(
60          long layoutSetId) throws com.liferay.portal.SystemException;
61  
62      public java.util.List<com.liferay.portal.model.LayoutSet> findByGroupId(
63          long groupId) throws com.liferay.portal.SystemException;
64  
65      public java.util.List<com.liferay.portal.model.LayoutSet> findByGroupId(
66          long groupId, int start, int end)
67          throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portal.model.LayoutSet> findByGroupId(
70          long groupId, int start, int end,
71          com.liferay.portal.kernel.util.OrderByComparator obc)
72          throws com.liferay.portal.SystemException;
73  
74      public com.liferay.portal.model.LayoutSet findByGroupId_First(
75          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
76          throws com.liferay.portal.NoSuchLayoutSetException,
77              com.liferay.portal.SystemException;
78  
79      public com.liferay.portal.model.LayoutSet findByGroupId_Last(long groupId,
80          com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.NoSuchLayoutSetException,
82              com.liferay.portal.SystemException;
83  
84      public com.liferay.portal.model.LayoutSet[] findByGroupId_PrevAndNext(
85          long layoutSetId, long groupId,
86          com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.NoSuchLayoutSetException,
88              com.liferay.portal.SystemException;
89  
90      public com.liferay.portal.model.LayoutSet findByVirtualHost(
91          java.lang.String virtualHost)
92          throws com.liferay.portal.NoSuchLayoutSetException,
93              com.liferay.portal.SystemException;
94  
95      public com.liferay.portal.model.LayoutSet fetchByVirtualHost(
96          java.lang.String virtualHost) throws com.liferay.portal.SystemException;
97  
98      public com.liferay.portal.model.LayoutSet fetchByVirtualHost(
99          java.lang.String virtualHost, boolean retrieveFromCache)
100         throws com.liferay.portal.SystemException;
101 
102     public com.liferay.portal.model.LayoutSet findByG_P(long groupId,
103         boolean privateLayout)
104         throws com.liferay.portal.NoSuchLayoutSetException,
105             com.liferay.portal.SystemException;
106 
107     public com.liferay.portal.model.LayoutSet fetchByG_P(long groupId,
108         boolean privateLayout) throws com.liferay.portal.SystemException;
109 
110     public com.liferay.portal.model.LayoutSet fetchByG_P(long groupId,
111         boolean privateLayout, boolean retrieveFromCache)
112         throws com.liferay.portal.SystemException;
113 
114     public java.util.List<com.liferay.portal.model.LayoutSet> findAll()
115         throws com.liferay.portal.SystemException;
116 
117     public java.util.List<com.liferay.portal.model.LayoutSet> findAll(
118         int start, int end) throws com.liferay.portal.SystemException;
119 
120     public java.util.List<com.liferay.portal.model.LayoutSet> findAll(
121         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
122         throws com.liferay.portal.SystemException;
123 
124     public void removeByGroupId(long groupId)
125         throws com.liferay.portal.SystemException;
126 
127     public void removeByVirtualHost(java.lang.String virtualHost)
128         throws com.liferay.portal.NoSuchLayoutSetException,
129             com.liferay.portal.SystemException;
130 
131     public void removeByG_P(long groupId, boolean privateLayout)
132         throws com.liferay.portal.NoSuchLayoutSetException,
133             com.liferay.portal.SystemException;
134 
135     public void removeAll() throws com.liferay.portal.SystemException;
136 
137     public int countByGroupId(long groupId)
138         throws com.liferay.portal.SystemException;
139 
140     public int countByVirtualHost(java.lang.String virtualHost)
141         throws com.liferay.portal.SystemException;
142 
143     public int countByG_P(long groupId, boolean privateLayout)
144         throws com.liferay.portal.SystemException;
145 
146     public int countAll() throws com.liferay.portal.SystemException;
147 }