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 orderByComparator)
72          throws com.liferay.portal.SystemException;
73  
74      public com.liferay.portal.model.LayoutSet findByGroupId_First(
75          long groupId,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.NoSuchLayoutSetException,
78              com.liferay.portal.SystemException;
79  
80      public com.liferay.portal.model.LayoutSet findByGroupId_Last(long groupId,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.NoSuchLayoutSetException,
83              com.liferay.portal.SystemException;
84  
85      public com.liferay.portal.model.LayoutSet[] findByGroupId_PrevAndNext(
86          long layoutSetId, long groupId,
87          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
88          throws com.liferay.portal.NoSuchLayoutSetException,
89              com.liferay.portal.SystemException;
90  
91      public com.liferay.portal.model.LayoutSet findByVirtualHost(
92          java.lang.String virtualHost)
93          throws com.liferay.portal.NoSuchLayoutSetException,
94              com.liferay.portal.SystemException;
95  
96      public com.liferay.portal.model.LayoutSet fetchByVirtualHost(
97          java.lang.String virtualHost) throws com.liferay.portal.SystemException;
98  
99      public com.liferay.portal.model.LayoutSet fetchByVirtualHost(
100         java.lang.String virtualHost, boolean retrieveFromCache)
101         throws com.liferay.portal.SystemException;
102 
103     public com.liferay.portal.model.LayoutSet findByG_P(long groupId,
104         boolean privateLayout)
105         throws com.liferay.portal.NoSuchLayoutSetException,
106             com.liferay.portal.SystemException;
107 
108     public com.liferay.portal.model.LayoutSet fetchByG_P(long groupId,
109         boolean privateLayout) throws com.liferay.portal.SystemException;
110 
111     public com.liferay.portal.model.LayoutSet fetchByG_P(long groupId,
112         boolean privateLayout, boolean retrieveFromCache)
113         throws com.liferay.portal.SystemException;
114 
115     public java.util.List<com.liferay.portal.model.LayoutSet> findAll()
116         throws com.liferay.portal.SystemException;
117 
118     public java.util.List<com.liferay.portal.model.LayoutSet> findAll(
119         int start, int end) throws com.liferay.portal.SystemException;
120 
121     public java.util.List<com.liferay.portal.model.LayoutSet> findAll(
122         int start, int end,
123         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
124         throws com.liferay.portal.SystemException;
125 
126     public void removeByGroupId(long groupId)
127         throws com.liferay.portal.SystemException;
128 
129     public void removeByVirtualHost(java.lang.String virtualHost)
130         throws com.liferay.portal.NoSuchLayoutSetException,
131             com.liferay.portal.SystemException;
132 
133     public void removeByG_P(long groupId, boolean privateLayout)
134         throws com.liferay.portal.NoSuchLayoutSetException,
135             com.liferay.portal.SystemException;
136 
137     public void removeAll() throws com.liferay.portal.SystemException;
138 
139     public int countByGroupId(long groupId)
140         throws com.liferay.portal.SystemException;
141 
142     public int countByVirtualHost(java.lang.String virtualHost)
143         throws com.liferay.portal.SystemException;
144 
145     public int countByG_P(long groupId, boolean privateLayout)
146         throws com.liferay.portal.SystemException;
147 
148     public int countAll() throws com.liferay.portal.SystemException;
149 }